aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llprefsadvanced.cpp
diff options
context:
space:
mode:
authorMcCabe Maxsted2010-04-25 20:59:01 -0700
committerMcCabe Maxsted2010-04-25 20:59:01 -0700
commit7c699c5091fc36ee79e2859686f3a15a8e8ecbae (patch)
tree63b067626ca64d8be5cff2d01cb11b55ed80e2d1 /linden/indra/newview/llprefsadvanced.cpp
parentFixed next/prev buttons in search window (diff)
downloadmeta-impy-7c699c5091fc36ee79e2859686f3a15a8e8ecbae.zip
meta-impy-7c699c5091fc36ee79e2859686f3a15a8e8ecbae.tar.gz
meta-impy-7c699c5091fc36ee79e2859686f3a15a8e8ecbae.tar.bz2
meta-impy-7c699c5091fc36ee79e2859686f3a15a8e8ecbae.tar.xz
Added checkbox for broadcasting client tag to Preferences > Advanced (and fixed the show client in name tags checkbox)
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llprefsadvanced.cpp20
1 files changed, 18 insertions, 2 deletions
diff --git a/linden/indra/newview/llprefsadvanced.cpp b/linden/indra/newview/llprefsadvanced.cpp
index 394c325..b30e55a 100644
--- a/linden/indra/newview/llprefsadvanced.cpp
+++ b/linden/indra/newview/llprefsadvanced.cpp
@@ -30,8 +30,10 @@
30 30
31#include "llviewerprecompiledheaders.h" 31#include "llviewerprecompiledheaders.h"
32 32
33#include "llagent.h"
33#include "llprefsadvanced.h" 34#include "llprefsadvanced.h"
34#include "llviewercontrol.h" 35#include "llviewercontrol.h"
36#include "llvoavatar.h"
35 37
36#include "lluictrlfactory.h" 38#include "lluictrlfactory.h"
37 39
@@ -49,7 +51,8 @@ BOOL LLPrefsAdvanced::postBuild()
49{ 51{
50 childSetValue("disable_log_screen_check", gSavedSettings.getBOOL("DisableLoginLogoutScreens")); 52 childSetValue("disable_log_screen_check", gSavedSettings.getBOOL("DisableLoginLogoutScreens"));
51 childSetValue("disable_tp_screen_check", gSavedSettings.getBOOL("DisableTeleportScreens")); 53 childSetValue("disable_tp_screen_check", gSavedSettings.getBOOL("DisableTeleportScreens"));
52 childSetValue("client_name_tag_check", gSavedSettings.getBOOL("ClothingLayerProtection")); 54 childSetValue("client_name_tag_check", gSavedSettings.getBOOL("ShowClientNameTag"));
55 childSetValue("client_name_tag_broadcast_check", gSavedSettings.getBOOL("ClothingLayerProtection"));
53 childSetValue("http_texture_check", gSavedSettings.getBOOL("ImagePipelineUseHTTP")); 56 childSetValue("http_texture_check", gSavedSettings.getBOOL("ImagePipelineUseHTTP"));
54 childSetValue("speedrez_check", gSavedSettings.getBOOL("SpeedRez")); 57 childSetValue("speedrez_check", gSavedSettings.getBOOL("SpeedRez"));
55 childSetValue("speedrez_spinner", (F32)gSavedSettings.getU32("SpeedRezInterval")); 58 childSetValue("speedrez_spinner", (F32)gSavedSettings.getU32("SpeedRezInterval"));
@@ -61,11 +64,24 @@ void LLPrefsAdvanced::apply()
61{ 64{
62 gSavedSettings.setBOOL("DisableLoginLogoutScreens", childGetValue("disable_log_screen_check")); 65 gSavedSettings.setBOOL("DisableLoginLogoutScreens", childGetValue("disable_log_screen_check"));
63 gSavedSettings.setBOOL("DisableTeleportScreens", childGetValue("disable_tp_screen_check")); 66 gSavedSettings.setBOOL("DisableTeleportScreens", childGetValue("disable_tp_screen_check"));
64 gSavedSettings.setBOOL("ClothingLayerProtection", childGetValue("client_name_tag_check")); 67 gSavedSettings.setBOOL("ShowClientNameTag", childGetValue("client_name_tag_check"));
65 gSavedSettings.setBOOL("ImagePipelineUseHTTP", childGetValue("http_texture_check")); 68 gSavedSettings.setBOOL("ImagePipelineUseHTTP", childGetValue("http_texture_check"));
66 gSavedSettings.setBOOL("SpeedRez", childGetValue("speedrez_check")); 69 gSavedSettings.setBOOL("SpeedRez", childGetValue("speedrez_check"));
67 gSavedSettings.setU32("SpeedRezInterval", childGetValue("speedrez_spinner").asReal()); 70 gSavedSettings.setU32("SpeedRezInterval", childGetValue("speedrez_spinner").asReal());
68 71
72 // Need to force a rebake when ClothingLayerProtection toggled for it take effect -- MC
73 if (gSavedSettings.getBOOL("ClothingLayerProtection") != (BOOL)childGetValue("client_name_tag_broadcast_check"))
74 {
75 LLVOAvatar* avatar = gAgent.getAvatarObject();
76 if (avatar)
77 {
78 // Slam pending upload count to "unstick" things
79 bool slam_for_debug = true;
80 avatar->forceBakeAllTextures(slam_for_debug);
81 }
82 }
83 gSavedSettings.setBOOL("ClothingLayerProtection", childGetValue("client_name_tag_broadcast_check"));
84
69 // This is bad bad BAD UI from Emerald, I know. 85 // This is bad bad BAD UI from Emerald, I know.
70 // If anyone wants to do this better, please do -- MC 86 // If anyone wants to do this better, please do -- MC
71 if ( childGetValue("shadows_check").asBoolean() ) 87 if ( childGetValue("shadows_check").asBoolean() )