diff options
author | David Walter Seikel | 2011-12-03 19:51:22 +1000 |
---|---|---|
committer | David Walter Seikel | 2011-12-03 19:51:22 +1000 |
commit | f5d6cacd6eab92c05071215f54878d8a1ca4f71f (patch) | |
tree | ca02c1bfd09c58d899750c9ec45b26a86ad3714b /linden | |
parent | Merge branch 'next' of git://github.com/imprudence/imprudence into next (diff) | |
download | meta-impy-f5d6cacd6eab92c05071215f54878d8a1ca4f71f.zip meta-impy-f5d6cacd6eab92c05071215f54878d8a1ca4f71f.tar.gz meta-impy-f5d6cacd6eab92c05071215f54878d8a1ca4f71f.tar.bz2 meta-impy-f5d6cacd6eab92c05071215f54878d8a1ca4f71f.tar.xz |
Remove more of the "set your own tag colour" stuff.
I think this is right.
Diffstat (limited to 'linden')
-rw-r--r-- | linden/indra/newview/app_settings/settings.xml | 11 | ||||
-rw-r--r-- | linden/indra/newview/llprefsadvanced.cpp | 4 | ||||
-rw-r--r-- | linden/indra/newview/llprefscolors.cpp | 16 | ||||
-rw-r--r-- | linden/indra/newview/llvoavatar.cpp | 4 | ||||
-rw-r--r-- | linden/indra/newview/skins/default/xui/en-us/panel_preferences_colors.xml | 25 |
5 files changed, 7 insertions, 53 deletions
diff --git a/linden/indra/newview/app_settings/settings.xml b/linden/indra/newview/app_settings/settings.xml index e7de3b0..0ac7841 100644 --- a/linden/indra/newview/app_settings/settings.xml +++ b/linden/indra/newview/app_settings/settings.xml | |||
@@ -1815,17 +1815,6 @@ | |||
1815 | 1815 | ||
1816 | <!-- Begin: Client Name Tag --> | 1816 | <!-- Begin: Client Name Tag --> |
1817 | 1817 | ||
1818 | <key>ShowClientColor</key> | ||
1819 | <map> | ||
1820 | <key>Comment</key> | ||
1821 | <string>Show *others* clients specific color in the name tag</string> | ||
1822 | <key>Persist</key> | ||
1823 | <integer>1</integer> | ||
1824 | <key>Type</key> | ||
1825 | <string>Boolean</string> | ||
1826 | <key>Value</key> | ||
1827 | <integer>1</integer> | ||
1828 | </map> | ||
1829 | <key>ShowClientNameHoverTip</key> | 1818 | <key>ShowClientNameHoverTip</key> |
1830 | <map> | 1819 | <map> |
1831 | <key>Comment</key> | 1820 | <key>Comment</key> |
diff --git a/linden/indra/newview/llprefsadvanced.cpp b/linden/indra/newview/llprefsadvanced.cpp index 2311896..7cf6f91 100644 --- a/linden/indra/newview/llprefsadvanced.cpp +++ b/linden/indra/newview/llprefsadvanced.cpp | |||
@@ -73,7 +73,7 @@ BOOL LLPrefsAdvanced::postBuild() | |||
73 | static BOOL* sShowClientNameTag = rebind_llcontrol<BOOL>("ShowClientNameTag", &gSavedSettings, true); | 73 | static BOOL* sShowClientNameTag = rebind_llcontrol<BOOL>("ShowClientNameTag", &gSavedSettings, true); |
74 | childSetValue("client_name_tag_check", (*sShowClientNameTag)); | 74 | childSetValue("client_name_tag_check", (*sShowClientNameTag)); |
75 | childSetValue("client_name_hover_check", gSavedSettings.getBOOL("ShowClientNameHoverTip")); | 75 | childSetValue("client_name_hover_check", gSavedSettings.getBOOL("ShowClientNameHoverTip")); |
76 | childSetValue("client_colors_check", gSavedSettings.getBOOL("ShowClientColor")); | 76 | // childSetValue("client_colors_check", gSavedSettings.getBOOL("ShowClientColor")); |
77 | childSetValue("client_name_tag_broadcast_check", gSavedSettings.getBOOL("ShowMyClientTagToOthers")); | 77 | childSetValue("client_name_tag_broadcast_check", gSavedSettings.getBOOL("ShowMyClientTagToOthers")); |
78 | 78 | ||
79 | childSetValue("appearance_anim_check", gSavedSettings.getBOOL("AppearanceAnimate")); | 79 | childSetValue("appearance_anim_check", gSavedSettings.getBOOL("AppearanceAnimate")); |
@@ -118,7 +118,7 @@ void LLPrefsAdvanced::apply() | |||
118 | gSavedSettings.setBOOL("DisableTeleportScreens", childGetValue("disable_tp_screen_check")); | 118 | gSavedSettings.setBOOL("DisableTeleportScreens", childGetValue("disable_tp_screen_check")); |
119 | gSavedSettings.setBOOL("ShowClientNameTag", childGetValue("client_name_tag_check")); | 119 | gSavedSettings.setBOOL("ShowClientNameTag", childGetValue("client_name_tag_check")); |
120 | gSavedSettings.setBOOL("ShowClientNameHoverTip", childGetValue("client_name_hover_check")); | 120 | gSavedSettings.setBOOL("ShowClientNameHoverTip", childGetValue("client_name_hover_check")); |
121 | gSavedSettings.setBOOL("ShowClientColor", childGetValue("client_colors_check")); | 121 | // gSavedSettings.setBOOL("ShowClientColor", childGetValue("client_colors_check")); |
122 | 122 | ||
123 | gSavedSettings.setBOOL("AppearanceAnimate", childGetValue("appearance_anim_check")); | 123 | gSavedSettings.setBOOL("AppearanceAnimate", childGetValue("appearance_anim_check")); |
124 | gSavedSettings.setBOOL("LanguageIsPublic", childGetValue("language_is_public")); | 124 | gSavedSettings.setBOOL("LanguageIsPublic", childGetValue("language_is_public")); |
diff --git a/linden/indra/newview/llprefscolors.cpp b/linden/indra/newview/llprefscolors.cpp index 9486077..ea105e7 100644 --- a/linden/indra/newview/llprefscolors.cpp +++ b/linden/indra/newview/llprefscolors.cpp | |||
@@ -82,9 +82,6 @@ BOOL LLPrefsColors::postBuild() | |||
82 | 82 | ||
83 | getChild<LLColorSwatchCtrl>("effect_color_swatch")->set(gSavedSettings.getColor4("EffectColor")); | 83 | getChild<LLColorSwatchCtrl>("effect_color_swatch")->set(gSavedSettings.getColor4("EffectColor")); |
84 | 84 | ||
85 | static BOOL* sShowClientColor = rebind_llcontrol<BOOL>("ShowClientColor", &gSavedSettings, true); | ||
86 | childSetValue("client_name_color_check", (*sShowClientColor)); | ||
87 | |||
88 | return TRUE; | 85 | return TRUE; |
89 | } | 86 | } |
90 | 87 | ||
@@ -133,17 +130,6 @@ void LLPrefsColors::updateFriendsCheck() | |||
133 | getChild<LLColorSwatchCtrl>("FriendsChatColor")->setEnabled(childGetValue("HighlightFriendsChat")); | 130 | getChild<LLColorSwatchCtrl>("FriendsChatColor")->setEnabled(childGetValue("HighlightFriendsChat")); |
134 | } | 131 | } |
135 | 132 | ||
136 | // static | ||
137 | void LLPrefsColors::onCommitCheckClient(LLUICtrl* ctrl, void* userdata) | ||
138 | { | ||
139 | LLPrefsColors* self = (LLPrefsColors*)userdata; | ||
140 | self->updateClientCheck(); | ||
141 | } | ||
142 | |||
143 | void LLPrefsColors::updateClientCheck() | ||
144 | { | ||
145 | getChild<LLColorSwatchCtrl>("client_tag_color")->setEnabled(childGetValue("client_name_color_checkt")); | ||
146 | } | ||
147 | 133 | ||
148 | void LLPrefsColors::cancel() | 134 | void LLPrefsColors::cancel() |
149 | { | 135 | { |
@@ -195,7 +181,5 @@ void LLPrefsColors::apply() | |||
195 | 181 | ||
196 | gSavedSettings.setColor4("EffectColor", childGetValue("effect_color_swatch")); | 182 | gSavedSettings.setColor4("EffectColor", childGetValue("effect_color_swatch")); |
197 | 183 | ||
198 | gSavedSettings.setBOOL("ShowClientColor", childGetValue("client_name_color_check")); | ||
199 | |||
200 | refreshColors(); // member values become the official values and cancel becomes a no-op. | 184 | refreshColors(); // member values become the official values and cancel becomes a no-op. |
201 | } | 185 | } |
diff --git a/linden/indra/newview/llvoavatar.cpp b/linden/indra/newview/llvoavatar.cpp index 3f378d4..54f4942 100644 --- a/linden/indra/newview/llvoavatar.cpp +++ b/linden/indra/newview/llvoavatar.cpp | |||
@@ -3627,9 +3627,9 @@ void LLVOAvatar::idleUpdateNameTag(const LLVector3& root_pos_last) | |||
3627 | client_color = LLColor4(0.5f,0.5f,1.0f); | 3627 | client_color = LLColor4(0.5f,0.5f,1.0f); |
3628 | } | 3628 | } |
3629 | 3629 | ||
3630 | static BOOL* sShowClientColor = rebind_llcontrol<BOOL>("ShowClientColor", &gSavedSettings, true); | 3630 | // static BOOL* sShowClientColor = rebind_llcontrol<BOOL>("ShowClientColor", &gSavedSettings, true); |
3631 | static BOOL* sShowClientNameTag = rebind_llcontrol<BOOL>("ShowClientNameTag", &gSavedSettings, true); | 3631 | static BOOL* sShowClientNameTag = rebind_llcontrol<BOOL>("ShowClientNameTag", &gSavedSettings, true); |
3632 | if (*sShowClientColor) | 3632 | // if (*sShowClientColor) |
3633 | { | 3633 | { |
3634 | avatar_name_color = client_color; | 3634 | avatar_name_color = client_color; |
3635 | } | 3635 | } |
diff --git a/linden/indra/newview/skins/default/xui/en-us/panel_preferences_colors.xml b/linden/indra/newview/skins/default/xui/en-us/panel_preferences_colors.xml index 9b55822..79b35ba 100644 --- a/linden/indra/newview/skins/default/xui/en-us/panel_preferences_colors.xml +++ b/linden/indra/newview/skins/default/xui/en-us/panel_preferences_colors.xml | |||
@@ -31,29 +31,10 @@ USE left="270" FOR TABBING OPTIONS | |||
31 | enabled="true" follows="left|top" height="65" label="" left="50" | 31 | enabled="true" follows="left|top" height="65" label="" left="50" |
32 | mouse_opaque="true" name="effect_color_swatch" | 32 | mouse_opaque="true" name="effect_color_swatch" |
33 | tool_tip="Click to open Color Picker" width="65" /> | 33 | tool_tip="Click to open Color Picker" width="65" /> |
34 | 34 | ||
35 | 35 | <view_border bevel_style="none" border_thickness="1" bottom_delta="0" follows="left|top" | |
36 | <text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false" | ||
37 | bottom="-20" drop_shadow_visible="true" enabled="true" follows="left|top" font-style="BOLD|SHADOW" | ||
38 | font="SansSerifSmall" h_pad="0" halign="left" height="10" left="270" | ||
39 | mouse_opaque="true" name="client_tag_color_textbox" v_pad="0" width="394"> | ||
40 | Client Tag Color: | ||
41 | </text> | ||
42 | <color_swatch border_color="0.45098 0.517647 0.607843 1" bottom_delta="-80" | ||
43 | can_apply_immediately="true" color="0.79 0.44 0.88 1" | ||
44 | enabled="true" follows="left|top" | ||
45 | height="65" label="Imprudence" left_delta="30" mouse_opaque="true" | ||
46 | name="client_tag_color" width="65" /> | ||
47 | <check_box bottom_delta="45" enabled="true" follows="left|top" | ||
48 | font="SansSerifSmall" height="16" initial_value="false" | ||
49 | label="Color client tags" left_delta="76" mouse_opaque="true" | ||
50 | name="client_name_color_check" radio_style="false" width="160" /> | ||
51 | |||
52 | |||
53 | <view_border bevel_style="none" border_thickness="1" bottom_delta="-60" follows="left|top" | ||
54 | height="1" left="55" name="border" width="380" /> | 36 | height="1" left="55" name="border" width="380" /> |
55 | 37 | ||
56 | |||
57 | <text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false" | 38 | <text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false" |
58 | bottom_delta="-20" drop_shadow_visible="true" enabled="true" follows="left|top" font-style="BOLD|SHADOW" | 39 | bottom_delta="-20" drop_shadow_visible="true" enabled="true" follows="left|top" font-style="BOLD|SHADOW" |
59 | font="SansSerifSmall" h_pad="0" halign="left" height="10" left="20" | 40 | font="SansSerifSmall" h_pad="0" halign="left" height="10" left="20" |