diff options
author | McCabe Maxsted | 2010-05-25 01:12:00 -0700 |
---|---|---|
committer | Jacek Antonelli | 2010-06-19 02:43:00 -0500 |
commit | 76d3248d34c605141ddd0b5e0463e636f8ba7bac (patch) | |
tree | a3bf99419e970d35e06ba61295009e6d2b130e5f /linden/indra/newview | |
parent | Show names above the "look at" beacons. Ported from Emerald, full credit to t... (diff) | |
download | meta-impy-76d3248d34c605141ddd0b5e0463e636f8ba7bac.zip meta-impy-76d3248d34c605141ddd0b5e0463e636f8ba7bac.tar.gz meta-impy-76d3248d34c605141ddd0b5e0463e636f8ba7bac.tar.bz2 meta-impy-76d3248d34c605141ddd0b5e0463e636f8ba7bac.tar.xz |
Cleaned up the Emerald showlookat patch
Diffstat (limited to 'linden/indra/newview')
-rw-r--r-- | linden/indra/newview/app_settings/settings.xml | 44 | ||||
-rw-r--r-- | linden/indra/newview/llappviewer.cpp | 3 | ||||
-rw-r--r-- | linden/indra/newview/llhudeffectlookat.cpp | 2 | ||||
-rw-r--r-- | linden/indra/newview/llviewermenu.cpp | 1 | ||||
-rw-r--r-- | linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml | 6 |
5 files changed, 30 insertions, 26 deletions
diff --git a/linden/indra/newview/app_settings/settings.xml b/linden/indra/newview/app_settings/settings.xml index d8051a0..da9cdc6 100644 --- a/linden/indra/newview/app_settings/settings.xml +++ b/linden/indra/newview/app_settings/settings.xml | |||
@@ -327,6 +327,17 @@ | |||
327 | <key>Value</key> | 327 | <key>Value</key> |
328 | <integer>1</integer> | 328 | <integer>1</integer> |
329 | </map> | 329 | </map> |
330 | <key>PersistShowLookAt</key> | ||
331 | <map> | ||
332 | <key>Comment</key> | ||
333 | <string>Whether or not to show look at info</string> | ||
334 | <key>Persist</key> | ||
335 | <integer>1</integer> | ||
336 | <key>Type</key> | ||
337 | <string>Boolean</string> | ||
338 | <key>Value</key> | ||
339 | <integer>0</integer> | ||
340 | </map> | ||
330 | <key>PrivateLookAtTarget</key> | 341 | <key>PrivateLookAtTarget</key> |
331 | <map> | 342 | <map> |
332 | <key>Comment</key> | 343 | <key>Comment</key> |
@@ -349,6 +360,17 @@ | |||
349 | <key>Value</key> | 360 | <key>Value</key> |
350 | <real>0.0</real> | 361 | <real>0.0</real> |
351 | </map> | 362 | </map> |
363 | <key>ShowLookAtNames</key> | ||
364 | <map> | ||
365 | <key>Comment</key> | ||
366 | <string>Whether or not to show names over who looks at you</string> | ||
367 | <key>Persist</key> | ||
368 | <integer>1</integer> | ||
369 | <key>Type</key> | ||
370 | <string>Boolean</string> | ||
371 | <key>Value</key> | ||
372 | <integer>1</integer> | ||
373 | </map> | ||
352 | <key>SpeedRez</key> | 374 | <key>SpeedRez</key> |
353 | <map> | 375 | <map> |
354 | <key>Comment</key> | 376 | <key>Comment</key> |
@@ -12996,27 +13018,5 @@ | |||
12996 | <key>Value</key> | 13018 | <key>Value</key> |
12997 | <integer>0</integer> | 13019 | <integer>0</integer> |
12998 | </map> | 13020 | </map> |
12999 | <key>PersistShowLookAt</key> | ||
13000 | <map> | ||
13001 | <key>Comment</key> | ||
13002 | <string>Whether or not to show look at info</string> | ||
13003 | <key>Persist</key> | ||
13004 | <integer>1</integer> | ||
13005 | <key>Type</key> | ||
13006 | <string>Boolean</string> | ||
13007 | <key>Value</key> | ||
13008 | <integer>0</integer> | ||
13009 | </map> | ||
13010 | <key>ShowLookAtNames</key> | ||
13011 | <map> | ||
13012 | <key>Comment</key> | ||
13013 | <string>Whether or not to show names over who looks at you</string> | ||
13014 | <key>Persist</key> | ||
13015 | <integer>1</integer> | ||
13016 | <key>Type</key> | ||
13017 | <string>Boolean</string> | ||
13018 | <key>Value</key> | ||
13019 | <integer>1</integer> | ||
13020 | </map> | ||
13021 | </map> | 13021 | </map> |
13022 | </llsd> | 13022 | </llsd> |
diff --git a/linden/indra/newview/llappviewer.cpp b/linden/indra/newview/llappviewer.cpp index 22b18ce..44693c2 100644 --- a/linden/indra/newview/llappviewer.cpp +++ b/linden/indra/newview/llappviewer.cpp | |||
@@ -127,6 +127,7 @@ | |||
127 | 127 | ||
128 | #include "llworld.h" | 128 | #include "llworld.h" |
129 | #include "llhudeffecttrail.h" | 129 | #include "llhudeffecttrail.h" |
130 | #include "llhudeffectlookat.h" | ||
130 | #include "llvectorperfoptions.h" | 131 | #include "llvectorperfoptions.h" |
131 | #include "llurlsimstring.h" | 132 | #include "llurlsimstring.h" |
132 | #include "llwatchdog.h" | 133 | #include "llwatchdog.h" |
@@ -429,6 +430,8 @@ static void settings_to_globals() | |||
429 | LLCubeMap::sUseCubeMaps = LLFeatureManager::getInstance()->isFeatureAvailable("RenderCubeMap"); | 430 | LLCubeMap::sUseCubeMaps = LLFeatureManager::getInstance()->isFeatureAvailable("RenderCubeMap"); |
430 | 431 | ||
431 | LLSlider::setScrollWheelMultiplier( gSavedSettings.getS32("SliderScrollWheelMultiplier") ); | 432 | LLSlider::setScrollWheelMultiplier( gSavedSettings.getS32("SliderScrollWheelMultiplier") ); |
433 | |||
434 | LLHUDEffectLookAt::sDebugLookAt = gSavedSettings.getBOOL("PersistShowLookAt"); | ||
432 | } | 435 | } |
433 | 436 | ||
434 | static void settings_modify() | 437 | static void settings_modify() |
diff --git a/linden/indra/newview/llhudeffectlookat.cpp b/linden/indra/newview/llhudeffectlookat.cpp index 99328f1..7de5f14 100644 --- a/linden/indra/newview/llhudeffectlookat.cpp +++ b/linden/indra/newview/llhudeffectlookat.cpp | |||
@@ -587,8 +587,6 @@ void LLHUDEffectLookAt::render() | |||
587 | //----------------------------------------------------------------------------- | 587 | //----------------------------------------------------------------------------- |
588 | void LLHUDEffectLookAt::update() | 588 | void LLHUDEffectLookAt::update() |
589 | { | 589 | { |
590 | LLHUDEffectLookAt::sDebugLookAt = gSavedSettings.getBOOL("PersistShowLookAt"); | ||
591 | |||
592 | // If the target object is dead, set the target object to NULL | 590 | // If the target object is dead, set the target object to NULL |
593 | if (!mTargetObject.isNull() && mTargetObject->isDead()) | 591 | if (!mTargetObject.isNull() && mTargetObject->isDead()) |
594 | { | 592 | { |
diff --git a/linden/indra/newview/llviewermenu.cpp b/linden/indra/newview/llviewermenu.cpp index 4acc71c..5172072 100644 --- a/linden/indra/newview/llviewermenu.cpp +++ b/linden/indra/newview/llviewermenu.cpp | |||
@@ -10072,6 +10072,7 @@ class LLAdvancedToggleShowLookAt : public view_listener_t | |||
10072 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | 10072 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) |
10073 | { | 10073 | { |
10074 | LLHUDEffectLookAt::sDebugLookAt = !(LLHUDEffectLookAt::sDebugLookAt); | 10074 | LLHUDEffectLookAt::sDebugLookAt = !(LLHUDEffectLookAt::sDebugLookAt); |
10075 | gSavedSettings.setBOOL("PersistShowLookAt", LLHUDEffectLookAt::sDebugLookAt); | ||
10075 | return true; | 10076 | return true; |
10076 | } | 10077 | } |
10077 | }; | 10078 | }; |
diff --git a/linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml b/linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml index 919f888..d5d21fb 100644 --- a/linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml +++ b/linden/indra/newview/skins/default/xui/en-us/menu_viewer.xml | |||
@@ -1861,8 +1861,10 @@ | |||
1861 | 1861 | ||
1862 | <menu_item_check name="Show Look At" | 1862 | <menu_item_check name="Show Look At" |
1863 | label="Show Look At"> | 1863 | label="Show Look At"> |
1864 | <on_click function="ToggleControl" userdata="PersistShowLookAt" /> | 1864 | <on_click function="Advanced.ToggleShowLookAt" |
1865 | <on_check control="PersistShowLookAt" /> | 1865 | userdata="" /> |
1866 | <on_check function="Advanced.CheckShowLookAt" | ||
1867 | userdata="" /> | ||
1866 | </menu_item_check> | 1868 | </menu_item_check> |
1867 | <menu_item_check name="Show Point At" | 1869 | <menu_item_check name="Show Point At" |
1868 | label="Show Point At"> | 1870 | label="Show Point At"> |