aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/app_settings/settings.xml18
-rw-r--r--linden/indra/newview/llprefsadvanced.cpp8
-rw-r--r--linden/indra/newview/llprefsadvanced.h2
-rw-r--r--linden/indra/newview/llvoavatar.cpp5
-rw-r--r--linden/indra/newview/skins/default/xui/en-us/panel_preferences_advanced.xml13
5 files changed, 39 insertions, 7 deletions
diff --git a/linden/indra/newview/app_settings/settings.xml b/linden/indra/newview/app_settings/settings.xml
index 79519fa..a4c9f98 100644
--- a/linden/indra/newview/app_settings/settings.xml
+++ b/linden/indra/newview/app_settings/settings.xml
@@ -1692,7 +1692,23 @@
1692 </map> 1692 </map>
1693 1693
1694 <!-- Begin: Client Name Tag --> 1694 <!-- Begin: Client Name Tag -->
1695 1695
1696 <key>ImprudenceTagColor</key>
1697 <map>
1698 <key>Comment</key>
1699 <string>Color of Imprudence tags (displayed only locally)</string>
1700 <key>Persist</key>
1701 <integer>1</integer>
1702 <key>Type</key>
1703 <string>Color4</string>
1704 <key>Value</key>
1705 <array>
1706 <real>0.79</real>
1707 <real>0.44</real>
1708 <real>0.88</real>
1709 <real>1</real>
1710 </array>
1711 </map>
1696 <key>ShowClientColor</key> 1712 <key>ShowClientColor</key>
1697 <map> 1713 <map>
1698 <key>Comment</key> 1714 <key>Comment</key>
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
206void LLPrefsAdvanced::cancel() 213void LLPrefsAdvanced::cancel()
207{ 214{
215 gSavedSettings.setColor4("ImprudenceTagColor", mClientTagColor);
208} 216}
209 217
210void LLPrefsAdvanced::refresh() 218void LLPrefsAdvanced::refresh()
diff --git a/linden/indra/newview/llprefsadvanced.h b/linden/indra/newview/llprefsadvanced.h
index d76e602..22236ce 100644
--- a/linden/indra/newview/llprefsadvanced.h
+++ b/linden/indra/newview/llprefsadvanced.h
@@ -59,6 +59,8 @@ private:
59 static void onSpellBaseComboBoxCommit(LLUICtrl* ctrl, void* userdata); 59 static void onSpellBaseComboBoxCommit(LLUICtrl* ctrl, void* userdata);
60 static void onAutoCorrectButton(void * data); 60 static void onAutoCorrectButton(void * data);
61 61
62 LLColor4 mClientTagColor;
63
62protected: 64protected:
63 void initHelpBtn(const std::string& name, const std::string& xml_alert); 65 void initHelpBtn(const std::string& name, const std::string& xml_alert);
64 static void onClickHelp(void* data); 66 static void onClickHelp(void* data);
diff --git a/linden/indra/newview/llvoavatar.cpp b/linden/indra/newview/llvoavatar.cpp
index c0ddac5..9c6d646 100644
--- a/linden/indra/newview/llvoavatar.cpp
+++ b/linden/indra/newview/llvoavatar.cpp
@@ -3243,7 +3243,8 @@ void LLVOAvatar::resolveClient(LLColor4& avatar_name_color, std::string& client,
3243 3243
3244 if(idx == LLUUID("cc7a030f-282f-c165-44d2-b5ee572e72bf")) 3244 if(idx == LLUUID("cc7a030f-282f-c165-44d2-b5ee572e72bf"))
3245 { 3245 {
3246 avatar_name_color = LLColor4(0.79f,0.44f,0.88f);//Imprudence 3246 // defaults to LLColor4(0.79f,0.44f,0.88f)
3247 avatar_name_color = gSavedSettings.getColor4("ImprudenceTagColor"); //Imprudence
3247 client = "Imprudence"; 3248 client = "Imprudence";
3248 3249
3249 }else if(idx == LLUUID("2a9a406c-f448-68f2-4e38-878f8c46c190") || 3250 }else if(idx == LLUUID("2a9a406c-f448-68f2-4e38-878f8c46c190") ||
@@ -3567,7 +3568,7 @@ void LLVOAvatar::idleUpdateNameTag(const LLVector3& root_pos_last)
3567 else 3568 else
3568 { 3569 {
3569 // Set your own name to the Imprudence color -- MC 3570 // Set your own name to the Imprudence color -- MC
3570 client_color = LLColor4(0.79f,0.44f,0.88f); 3571 client_color = gSavedSettings.getColor4("ImprudenceTagColor");
3571 } 3572 }
3572 3573
3573 static BOOL* sShowClientColor = rebind_llcontrol<BOOL>("ShowClientColor", &gSavedSettings, true); 3574 static BOOL* sShowClientColor = rebind_llcontrol<BOOL>("ShowClientColor", &gSavedSettings, true);
diff --git a/linden/indra/newview/skins/default/xui/en-us/panel_preferences_advanced.xml b/linden/indra/newview/skins/default/xui/en-us/panel_preferences_advanced.xml
index b8f6e7d..ab9c834 100644
--- a/linden/indra/newview/skins/default/xui/en-us/panel_preferences_advanced.xml
+++ b/linden/indra/newview/skins/default/xui/en-us/panel_preferences_advanced.xml
@@ -24,16 +24,21 @@
24 name="client_name_tag_check" radio_style="false" width="160" /> 24 name="client_name_tag_check" radio_style="false" width="160" />
25 <check_box bottom_delta="-18" enabled="true" follows="left|top" 25 <check_box bottom_delta="-18" enabled="true" follows="left|top"
26 font="SansSerifSmall" height="16" initial_value="false" 26 font="SansSerifSmall" height="16" initial_value="false"
27 label="Show client names with color" left_delta="0" mouse_opaque="true"
28 name="client_name_color_check" radio_style="false" width="160" />
29 <check_box bottom_delta="-18" enabled="true" follows="left|top"
30 font="SansSerifSmall" height="16" initial_value="false"
31 label="Show client names in hovertip" left_delta="0" mouse_opaque="true" 27 label="Show client names in hovertip" left_delta="0" mouse_opaque="true"
32 name="client_name_hover_check" radio_style="false" width="160" /> 28 name="client_name_hover_check" radio_style="false" width="160" />
33 <check_box bottom_delta="-18" enabled="true" follows="left|top" 29 <check_box bottom_delta="-18" enabled="true" follows="left|top"
34 font="SansSerifSmall" height="16" initial_value="false" 30 font="SansSerifSmall" height="16" initial_value="false"
35 label="Show your client name to others" left_delta="0" mouse_opaque="true" 31 label="Show your client name to others" left_delta="0" mouse_opaque="true"
36 name="client_name_tag_broadcast_check" radio_style="false" width="217" /> 32 name="client_name_tag_broadcast_check" radio_style="false" width="217" />
33 <color_swatch border_color="0.45098 0.517647 0.607843 1" bottom="-122"
34 can_apply_immediately="true" color="0.79 0.44 0.88 1"
35 enabled="true" follows="left|top"
36 height="65" label="Imprudence" left="250" mouse_opaque="true"
37 name="client_tag_color" width="65" />
38 <check_box bottom_delta="-18" enabled="true" follows="left|top"
39 font="SansSerifSmall" height="16" initial_value="false"
40 label="Show client names with color" left_delta="0" mouse_opaque="true"
41 name="client_name_color_check" radio_style="false" width="160" />
37 <check_box bottom_delta="-25" enabled="true" follows="left|top" 42 <check_box bottom_delta="-25" enabled="true" follows="left|top"
38 font="SansSerifSmall" height="16" initial_value="false" 43 font="SansSerifSmall" height="16" initial_value="false"
39 label="Enable shadows (WARNING: unstable and requires Ultra graphics)" left="12" mouse_opaque="true" 44 label="Enable shadows (WARNING: unstable and requires Ultra graphics)" left="12" mouse_opaque="true"