diff options
author | Armin Weatherwax | 2010-07-29 16:13:19 +0200 |
---|---|---|
committer | Jacek Antonelli | 2010-08-01 15:59:32 -0500 |
commit | 08c29aea25645dbfe76a04de9e703f49cf7ada85 (patch) | |
tree | 2fbcee3903b06c4f957eef845ffc9d013253d872 /linden/indra/newview/llviewermenu.cpp | |
parent | revamp a) privatelookattarget + b) privatepointattarget (diff) | |
download | meta-impy-08c29aea25645dbfe76a04de9e703f49cf7ada85.zip meta-impy-08c29aea25645dbfe76a04de9e703f49cf7ada85.tar.gz meta-impy-08c29aea25645dbfe76a04de9e703f49cf7ada85.tar.bz2 meta-impy-08c29aea25645dbfe76a04de9e703f49cf7ada85.tar.xz |
some more HUDEffect revamp
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llviewermenu.cpp | 43 |
1 files changed, 33 insertions, 10 deletions
diff --git a/linden/indra/newview/llviewermenu.cpp b/linden/indra/newview/llviewermenu.cpp index 6a7a818..4012505 100644 --- a/linden/indra/newview/llviewermenu.cpp +++ b/linden/indra/newview/llviewermenu.cpp | |||
@@ -10143,15 +10143,28 @@ class LLAdvancedTogglePrivateLookPointAt : public view_listener_t | |||
10143 | { | 10143 | { |
10144 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | 10144 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) |
10145 | { | 10145 | { |
10146 | // Noate: PrivateLookAtTarget also hides point at -- MC | 10146 | std::string command = userdata.asString(); |
10147 | bool new_value = !gSavedSettings.getBOOL("PrivateLookAtTarget"); | 10147 | if ("Look" == command) |
10148 | if (new_value) | 10148 | { |
10149 | bool new_value = !gSavedSettings.getBOOL("PrivateLookAtTarget"); | ||
10150 | if (new_value) | ||
10151 | { | ||
10152 | // Disable show look at and show point at if you make yours private. It's only fair, after all -- MC | ||
10153 | LLHUDEffectLookAt::sDebugLookAt = FALSE; | ||
10154 | LLHUDEffectPointAt::sDebugPointAt = FALSE; | ||
10155 | } | ||
10156 | gSavedSettings.setBOOL("PrivateLookAtTarget", new_value); | ||
10157 | } | ||
10158 | else if ("Point" == command) | ||
10149 | { | 10159 | { |
10150 | // Disable show look at and show point at if you make yours private. It's only fair, after all -- MC | 10160 | bool new_value = !gSavedSettings.getBOOL("PrivatePointAtTarget"); |
10151 | LLHUDEffectLookAt::sDebugLookAt = FALSE; | 10161 | |
10152 | LLHUDEffectPointAt::sDebugPointAt = FALSE; | 10162 | // do not disable show look at and show point at if you make yours private, |
10163 | // since this only hides the arm motion while editing -- AW | ||
10164 | |||
10165 | gSavedSettings.setBOOL("PrivatePointAtTarget", new_value); | ||
10153 | } | 10166 | } |
10154 | gSavedSettings.setBOOL("PrivateLookAtTarget", new_value); | 10167 | |
10155 | return true; | 10168 | return true; |
10156 | } | 10169 | } |
10157 | }; | 10170 | }; |
@@ -10160,9 +10173,19 @@ class LLAdvancedCheckPrivateLookPointAt : public view_listener_t | |||
10160 | { | 10173 | { |
10161 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | 10174 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) |
10162 | { | 10175 | { |
10163 | bool new_value = gSavedSettings.getBOOL("PrivateLookAtTarget"); | 10176 | std::string command = userdata["data"].asString(); |
10164 | std::string control_name = userdata["control"].asString(); | 10177 | if ("Look" == command) |
10165 | gMenuHolder->findControl(control_name)->setValue(new_value); | 10178 | { |
10179 | bool new_value = gSavedSettings.getBOOL("PrivateLookAtTarget"); | ||
10180 | std::string control_name = userdata["control"].asString(); | ||
10181 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
10182 | } | ||
10183 | else if ("Point" == command) | ||
10184 | { | ||
10185 | bool new_value = gSavedSettings.getBOOL("PrivatePointAtTarget"); | ||
10186 | std::string control_name = userdata["control"].asString(); | ||
10187 | gMenuHolder->findControl(control_name)->setValue(new_value); | ||
10188 | } | ||
10166 | return true; | 10189 | return true; |
10167 | } | 10190 | } |
10168 | }; | 10191 | }; |