diff options
author | McCabe Maxsted | 2011-04-19 16:46:30 -0700 |
---|---|---|
committer | McCabe Maxsted | 2011-04-19 16:46:30 -0700 |
commit | e7ab172b762bbbb87ca78889fdaecfda39a71233 (patch) | |
tree | dd60b2481b33454d0d7eaddd195f41fd5b7f261d /linden/indra/newview/llprefsadvanced.cpp | |
parent | Fixed bug in moving reset prefs to the main prefs window (didn't show the not... (diff) | |
download | meta-impy-e7ab172b762bbbb87ca78889fdaecfda39a71233.zip meta-impy-e7ab172b762bbbb87ca78889fdaecfda39a71233.tar.gz meta-impy-e7ab172b762bbbb87ca78889fdaecfda39a71233.tar.bz2 meta-impy-e7ab172b762bbbb87ca78889fdaecfda39a71233.tar.xz |
Added custom nametag coloring for Imprudence tags (local only)
Diffstat (limited to 'linden/indra/newview/llprefsadvanced.cpp')
-rw-r--r-- | linden/indra/newview/llprefsadvanced.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/linden/indra/newview/llprefsadvanced.cpp b/linden/indra/newview/llprefsadvanced.cpp index 89dc0b2..c3a9c0b 100644 --- a/linden/indra/newview/llprefsadvanced.cpp +++ b/linden/indra/newview/llprefsadvanced.cpp | |||
@@ -82,12 +82,16 @@ BOOL LLPrefsAdvanced::postBuild() | |||
82 | { | 82 | { |
83 | childSetValue("disable_log_screen_check", gSavedSettings.getBOOL("DisableLoginLogoutScreens")); | 83 | childSetValue("disable_log_screen_check", gSavedSettings.getBOOL("DisableLoginLogoutScreens")); |
84 | childSetValue("disable_tp_screen_check", gSavedSettings.getBOOL("DisableTeleportScreens")); | 84 | childSetValue("disable_tp_screen_check", gSavedSettings.getBOOL("DisableTeleportScreens")); |
85 | |||
85 | static BOOL* sShowClientNameTag = rebind_llcontrol<BOOL>("ShowClientNameTag", &gSavedSettings, true); | 86 | static BOOL* sShowClientNameTag = rebind_llcontrol<BOOL>("ShowClientNameTag", &gSavedSettings, true); |
86 | childSetValue("client_name_tag_check", (*sShowClientNameTag)); | 87 | childSetValue("client_name_tag_check", (*sShowClientNameTag)); |
87 | static BOOL* sShowClientColor = rebind_llcontrol<BOOL>("ShowClientColor", &gSavedSettings, true); | 88 | static BOOL* sShowClientColor = rebind_llcontrol<BOOL>("ShowClientColor", &gSavedSettings, true); |
88 | childSetValue("client_name_color_check", (*sShowClientColor)); | 89 | childSetValue("client_name_color_check", (*sShowClientColor)); |
89 | childSetValue("client_name_hover_check", gSavedSettings.getBOOL("ShowClientNameHoverTip")); | 90 | childSetValue("client_name_hover_check", gSavedSettings.getBOOL("ShowClientNameHoverTip")); |
90 | childSetValue("client_name_tag_broadcast_check", gSavedSettings.getBOOL("ShowMyClientTagToOthers")); | 91 | childSetValue("client_name_tag_broadcast_check", gSavedSettings.getBOOL("ShowMyClientTagToOthers")); |
92 | getChild<LLColorSwatchCtrl>("client_tag_color")->set(gSavedSettings.getColor4("ImprudenceTagColor")); | ||
93 | mClientTagColor = gSavedSettings.getColor4("ImprudenceTagColor"); | ||
94 | |||
91 | childSetValue("http_texture_check", gSavedSettings.getBOOL("ImagePipelineUseHTTP")); | 95 | childSetValue("http_texture_check", gSavedSettings.getBOOL("ImagePipelineUseHTTP")); |
92 | childSetValue("speed_rez_check", gSavedSettings.getBOOL("SpeedRez")); | 96 | childSetValue("speed_rez_check", gSavedSettings.getBOOL("SpeedRez")); |
93 | childSetValue("speed_rez_interval_spinner", (F32)gSavedSettings.getU32("SpeedRezInterval")); | 97 | childSetValue("speed_rez_interval_spinner", (F32)gSavedSettings.getU32("SpeedRezInterval")); |
@@ -127,6 +131,9 @@ void LLPrefsAdvanced::apply() | |||
127 | gSavedSettings.setBOOL("ShowClientNameTag", childGetValue("client_name_tag_check")); | 131 | gSavedSettings.setBOOL("ShowClientNameTag", childGetValue("client_name_tag_check")); |
128 | gSavedSettings.setBOOL("ShowClientColor", childGetValue("client_name_color_check")); | 132 | gSavedSettings.setBOOL("ShowClientColor", childGetValue("client_name_color_check")); |
129 | gSavedSettings.setBOOL("ShowClientNameHoverTip", childGetValue("client_name_hover_check")); | 133 | gSavedSettings.setBOOL("ShowClientNameHoverTip", childGetValue("client_name_hover_check")); |
134 | gSavedSettings.setColor4("ImprudenceTagColor", getChild<LLColorSwatchCtrl>("client_tag_color")->get()); | ||
135 | mClientTagColor = getChild<LLColorSwatchCtrl>("client_tag_color")->get(); | ||
136 | |||
130 | gSavedSettings.setBOOL("ImagePipelineUseHTTP", childGetValue("http_texture_check")); | 137 | gSavedSettings.setBOOL("ImagePipelineUseHTTP", childGetValue("http_texture_check")); |
131 | gSavedSettings.setBOOL("SpeedRez", childGetValue("speed_rez_check")); | 138 | gSavedSettings.setBOOL("SpeedRez", childGetValue("speed_rez_check")); |
132 | gSavedSettings.setU32("SpeedRezInterval", childGetValue("speed_rez_interval_spinner").asReal()); | 139 | gSavedSettings.setU32("SpeedRezInterval", childGetValue("speed_rez_interval_spinner").asReal()); |
@@ -205,6 +212,7 @@ void LLPrefsAdvanced::apply() | |||
205 | 212 | ||
206 | void LLPrefsAdvanced::cancel() | 213 | void LLPrefsAdvanced::cancel() |
207 | { | 214 | { |
215 | gSavedSettings.setColor4("ImprudenceTagColor", mClientTagColor); | ||
208 | } | 216 | } |
209 | 217 | ||
210 | void LLPrefsAdvanced::refresh() | 218 | void LLPrefsAdvanced::refresh() |