diff options
author | McCabe Maxsted | 2010-10-08 23:04:22 -0700 |
---|---|---|
committer | McCabe Maxsted | 2010-10-08 23:04:22 -0700 |
commit | e1ecd0c7428c65afd920a37eb61c70773b8d85fc (patch) | |
tree | b6d9e23d5cc652c2e1f98d52e85418a179be7500 /linden/indra | |
parent | Merge remote branch 'thickbrick/weekly' into weekly (diff) | |
parent | Implemented friends tags highlighting, including preferences->general checkbo... (diff) | |
download | meta-impy-e1ecd0c7428c65afd920a37eb61c70773b8d85fc.zip meta-impy-e1ecd0c7428c65afd920a37eb61c70773b8d85fc.tar.gz meta-impy-e1ecd0c7428c65afd920a37eb61c70773b8d85fc.tar.bz2 meta-impy-e1ecd0c7428c65afd920a37eb61c70773b8d85fc.tar.xz |
Merge remote branch 'elektra/weekly' into weekly
Diffstat (limited to 'linden/indra')
-rw-r--r-- | linden/indra/newview/app_settings/settings.xml | 11 | ||||
-rw-r--r-- | linden/indra/newview/llpanelgeneral.cpp | 2 | ||||
-rw-r--r-- | linden/indra/newview/llvoavatar.cpp | 17 | ||||
-rw-r--r-- | linden/indra/newview/skins/default/xui/en-us/panel_preferences_general.xml | 38 |
4 files changed, 45 insertions, 23 deletions
diff --git a/linden/indra/newview/app_settings/settings.xml b/linden/indra/newview/app_settings/settings.xml index b38bf9a..d33285d 100644 --- a/linden/indra/newview/app_settings/settings.xml +++ b/linden/indra/newview/app_settings/settings.xml | |||
@@ -10926,6 +10926,17 @@ | |||
10926 | <key>Value</key> | 10926 | <key>Value</key> |
10927 | <integer>1</integer> | 10927 | <integer>1</integer> |
10928 | </map> | 10928 | </map> |
10929 | <key>HighlightFriends</key> | ||
10930 | <map> | ||
10931 | <key>Comment</key> | ||
10932 | <string>Display avatar name text in bold if is a friend</string> | ||
10933 | <key>Persist</key> | ||
10934 | <integer>1</integer> | ||
10935 | <key>Type</key> | ||
10936 | <string>Boolean</string> | ||
10937 | <key>Value</key> | ||
10938 | <integer>1</integer> | ||
10939 | </map> | ||
10929 | <key>SnapEnabled</key> | 10940 | <key>SnapEnabled</key> |
10930 | <map> | 10941 | <map> |
10931 | <key>Comment</key> | 10942 | <key>Comment</key> |
diff --git a/linden/indra/newview/llpanelgeneral.cpp b/linden/indra/newview/llpanelgeneral.cpp index a2cba4c..fc6073a 100644 --- a/linden/indra/newview/llpanelgeneral.cpp +++ b/linden/indra/newview/llpanelgeneral.cpp | |||
@@ -91,6 +91,7 @@ BOOL LLPanelGeneral::postBuild() | |||
91 | childSetValue("show_all_title_checkbox", gSavedSettings.getBOOL("RenderHideGroupTitleAll")); | 91 | childSetValue("show_all_title_checkbox", gSavedSettings.getBOOL("RenderHideGroupTitleAll")); |
92 | childSetValue("show_my_name_checkbox", gSavedSettings.getBOOL("RenderNameHideSelf")); | 92 | childSetValue("show_my_name_checkbox", gSavedSettings.getBOOL("RenderNameHideSelf")); |
93 | childSetValue("small_avatar_names_checkbox", gSavedSettings.getBOOL("SmallAvatarNames")); | 93 | childSetValue("small_avatar_names_checkbox", gSavedSettings.getBOOL("SmallAvatarNames")); |
94 | childSetValue("highlight_friends_checkbox", gSavedSettings.getBOOL("HighlightFriends")); | ||
94 | childSetValue("show_my_title_checkbox", gSavedSettings.getBOOL("RenderHideGroupTitle")); | 95 | childSetValue("show_my_title_checkbox", gSavedSettings.getBOOL("RenderHideGroupTitle")); |
95 | childSetValue("afk_timeout_spinner", gSavedSettings.getF32("AFKTimeout")); | 96 | childSetValue("afk_timeout_spinner", gSavedSettings.getF32("AFKTimeout")); |
96 | childSetValue("afk_timeout_checkbox", gSavedSettings.getBOOL("AllowIdleAFK")); | 97 | childSetValue("afk_timeout_checkbox", gSavedSettings.getBOOL("AllowIdleAFK")); |
@@ -163,6 +164,7 @@ void LLPanelGeneral::apply() | |||
163 | gSavedSettings.setBOOL("RenderHideGroupTitleAll", childGetValue("show_all_title_checkbox")); | 164 | gSavedSettings.setBOOL("RenderHideGroupTitleAll", childGetValue("show_all_title_checkbox")); |
164 | gSavedSettings.setBOOL("RenderNameHideSelf", childGetValue("show_my_name_checkbox")); | 165 | gSavedSettings.setBOOL("RenderNameHideSelf", childGetValue("show_my_name_checkbox")); |
165 | gSavedSettings.setBOOL("SmallAvatarNames", childGetValue("small_avatar_names_checkbox")); | 166 | gSavedSettings.setBOOL("SmallAvatarNames", childGetValue("small_avatar_names_checkbox")); |
167 | gSavedSettings.setBOOL("HighlightFriends", childGetValue("highlight_friends_checkbox")); | ||
166 | gSavedSettings.setBOOL("RenderHideGroupTitle", childGetValue("show_my_title_checkbox")); | 168 | gSavedSettings.setBOOL("RenderHideGroupTitle", childGetValue("show_my_title_checkbox")); |
167 | gSavedSettings.setF32("AFKTimeout", childGetValue("afk_timeout_spinner").asReal()); | 169 | gSavedSettings.setF32("AFKTimeout", childGetValue("afk_timeout_spinner").asReal()); |
168 | gSavedSettings.setBOOL("AllowIdleAFK", childGetValue("afk_timeout_checkbox")); | 170 | gSavedSettings.setBOOL("AllowIdleAFK", childGetValue("afk_timeout_checkbox")); |
diff --git a/linden/indra/newview/llvoavatar.cpp b/linden/indra/newview/llvoavatar.cpp index 6e16ea3..422b22f 100644 --- a/linden/indra/newview/llvoavatar.cpp +++ b/linden/indra/newview/llvoavatar.cpp | |||
@@ -3801,15 +3801,20 @@ void LLVOAvatar::idleUpdateNameTag(const LLVector3& root_pos_last) | |||
3801 | } | 3801 | } |
3802 | else | 3802 | else |
3803 | { | 3803 | { |
3804 | static BOOL* sSmallAvatarNames = rebind_llcontrol<BOOL>("SmallAvatarNames", &gSavedSettings, true); | 3804 | S32 style = LLFontGL::NORMAL; |
3805 | if (*sSmallAvatarNames) | 3805 | |
3806 | if (!mIsSelf && gSavedSettings.getBOOL("HighlightFriends")) | ||
3806 | { | 3807 | { |
3807 | mNameText->setFont(LLFontGL::getFontSansSerif()); | 3808 | if (is_agent_friend(this->getID())) // Ele: bold for friends |
3809 | style |= LLFontGL::BOLD; | ||
3808 | } | 3810 | } |
3811 | |||
3812 | static BOOL* sSmallAvatarNames = rebind_llcontrol<BOOL>("SmallAvatarNames", &gSavedSettings, true); | ||
3813 | if (*sSmallAvatarNames) | ||
3814 | mNameText->setFont(LLFontGL::getFont(LLFontDescriptor("SansSerif","Medium",style))); | ||
3809 | else | 3815 | else |
3810 | { | 3816 | mNameText->setFont(LLFontGL::getFont(LLFontDescriptor("SansSerif","Large",style))); |
3811 | mNameText->setFont(LLFontGL::getFontSansSerifBig()); | 3817 | |
3812 | } | ||
3813 | mNameText->setTextAlignment(LLHUDText::ALIGN_TEXT_CENTER); | 3818 | mNameText->setTextAlignment(LLHUDText::ALIGN_TEXT_CENTER); |
3814 | mNameText->setFadeDistance(CHAT_NORMAL_RADIUS, 5.f); | 3819 | mNameText->setFadeDistance(CHAT_NORMAL_RADIUS, 5.f); |
3815 | mNameText->setVisibleOffScreen(FALSE); | 3820 | mNameText->setVisibleOffScreen(FALSE); |
diff --git a/linden/indra/newview/skins/default/xui/en-us/panel_preferences_general.xml b/linden/indra/newview/skins/default/xui/en-us/panel_preferences_general.xml index 7b4b809..badd2b4 100644 --- a/linden/indra/newview/skins/default/xui/en-us/panel_preferences_general.xml +++ b/linden/indra/newview/skins/default/xui/en-us/panel_preferences_general.xml | |||
@@ -44,6 +44,10 @@ | |||
44 | font="SansSerifSmall" height="16" initial_value="false" | 44 | font="SansSerifSmall" height="16" initial_value="false" |
45 | label="Hide my name on my screen" left="151" name="show_my_name_checkbox" | 45 | label="Hide my name on my screen" left="151" name="show_my_name_checkbox" |
46 | width="200" /> | 46 | width="200" /> |
47 | <check_box bottom_delta="-20" follows="left|top" | ||
48 | font="SansSerifSmall" height="16" initial_value="false" | ||
49 | label="Highlight friends tags" left="151" name="highlight_friends_checkbox" | ||
50 | width="200" /> | ||
47 | <text type="string" length="1" bottom_delta="-24" follows="left|top" font="SansSerifSmall" h_pad="0" | 51 | <text type="string" length="1" bottom_delta="-24" follows="left|top" font="SansSerifSmall" h_pad="0" |
48 | halign="left" height="16" left="10" name="group_titles_textbox" v_pad="0" | 52 | halign="left" height="16" left="10" name="group_titles_textbox" v_pad="0" |
49 | width="394"> | 53 | width="394"> |
@@ -57,34 +61,34 @@ | |||
57 | font="SansSerifSmall" height="16" initial_value="false" | 61 | font="SansSerifSmall" height="16" initial_value="false" |
58 | label="Hide my group title" left="151" name="show_my_title_checkbox" | 62 | label="Hide my group title" left="151" name="show_my_title_checkbox" |
59 | radio_style="false" width="256" /> | 63 | radio_style="false" width="256" /> |
60 | <color_swatch border_color="0.45098 0.517647 0.607843 1" bottom="-210" | 64 | <color_swatch border_color="0.45098 0.517647 0.607843 1" bottom="-230" |
61 | can_apply_immediately="false" color="1 1 1 1" | 65 | can_apply_immediately="false" color="1 1 1 1" |
62 | enabled="true" follows="left|top" height="65" label="" left="153" | 66 | enabled="true" follows="left|top" height="65" label="" left="153" |
63 | mouse_opaque="true" name="effect_color_swatch" | 67 | mouse_opaque="true" name="effect_color_swatch" |
64 | tool_tip="Click to open Color Picker" width="55" /> | 68 | tool_tip="Click to open Color Picker" width="55" /> |
65 | <text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false" | 69 | <text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false" |
66 | bottom="-215" drop_shadow_visible="true" enabled="true" follows="left|top" | 70 | bottom="-235" drop_shadow_visible="true" enabled="true" follows="left|top" |
67 | font="SansSerifSmall" h_pad="0" halign="left" height="12" left="10" | 71 | font="SansSerifSmall" h_pad="0" halign="left" height="12" left="10" |
68 | mouse_opaque="true" name="UI Size:" v_pad="0" width="128"> | 72 | mouse_opaque="true" name="UI Size:" v_pad="0" width="128"> |
69 | UI Size: | 73 | UI Size: |
70 | </text> | 74 | </text> |
71 | <slider bottom="-217" can_edit_text="true" | 75 | <slider bottom="-237" can_edit_text="true" |
72 | decimal_digits="3" enabled="true" height="16" increment="0.001" | 76 | decimal_digits="3" enabled="true" height="16" increment="0.001" |
73 | initial_val="1" left="148" max_val="1.4" min_val="0.75" mouse_opaque="true" | 77 | initial_val="1" left="148" max_val="1.4" min_val="0.75" mouse_opaque="true" |
74 | name="ui_scale_slider" show_text="true" value="1" width="220" /> | 78 | name="ui_scale_slider" show_text="true" value="1" width="220" /> |
75 | <button bottom="-221" enabled="true" follows="left|top" | 79 | <button bottom="-241" enabled="true" follows="left|top" |
76 | font="SansSerif" halign="center" height="22" label="Reset" | 80 | font="SansSerif" halign="center" height="22" label="Reset" |
77 | label_selected="Reset" left_delta="226" mouse_opaque="true" | 81 | label_selected="Reset" left_delta="226" mouse_opaque="true" |
78 | name="reset_ui_size" scale_image="true" width="80" /> | 82 | name="reset_ui_size" scale_image="true" width="80" /> |
79 | <check_box bottom="-236" enabled="true" follows="left|top" | 83 | <check_box bottom="-256" enabled="true" follows="left|top" |
80 | font="SansSerifSmall" height="16" initial_value="false" | 84 | font="SansSerifSmall" height="16" initial_value="false" |
81 | label="Use resolution independent scale" left="151" mouse_opaque="true" | 85 | label="Use resolution independent scale" left="151" mouse_opaque="true" |
82 | name="ui_auto_scale" radio_style="false" width="256" /> | 86 | name="ui_auto_scale" radio_style="false" width="256" /> |
83 | <check_box bottom="-260" enabled="true" follows="left|top" | 87 | <check_box bottom="-280" enabled="true" follows="left|top" |
84 | font="SansSerifSmall" height="16" initial_value="false" | 88 | font="SansSerifSmall" height="16" initial_value="false" |
85 | label="Go Away/AFK when idle" left="330" mouse_opaque="true" | 89 | label="Go Away/AFK when idle" left="330" mouse_opaque="true" |
86 | name="afk_timeout_checkbox" radio_style="false" width="256" /> | 90 | name="afk_timeout_checkbox" radio_style="false" width="256" /> |
87 | <spinner bottom="-260" decimal_digits="0" enabled="true" | 91 | <spinner bottom="-280" decimal_digits="0" enabled="true" |
88 | follows="left|top" height="16" increment="1" initial_val="300" | 92 | follows="left|top" height="16" increment="1" initial_val="300" |
89 | label="Away Timeout:" label_width="141" left="10" max_val="600" | 93 | label="Away Timeout:" label_width="141" left="10" max_val="600" |
90 | min_val="30" mouse_opaque="true" name="afk_timeout_spinner" width="202" /> | 94 | min_val="30" mouse_opaque="true" name="afk_timeout_spinner" width="202" /> |
@@ -105,18 +109,18 @@ | |||
105 | mouse_opaque="true" name="mini_map_notify_sim" radio_style="false" | 109 | mouse_opaque="true" name="mini_map_notify_sim" radio_style="false" |
106 | width="256" /> | 110 | width="256" /> |
107 | <text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false" | 111 | <text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false" |
108 | bottom="-312" drop_shadow_visible="true" enabled="true" follows="left|top" | 112 | bottom="-332" drop_shadow_visible="true" enabled="true" follows="left|top" |
109 | font="SansSerifSmall" h_pad="0" halign="left" height="10" left="10" | 113 | font="SansSerifSmall" h_pad="0" halign="left" height="10" left="10" |
110 | mouse_opaque="true" name="maturity_desired_label" v_pad="0" width="394"> | 114 | mouse_opaque="true" name="maturity_desired_label" v_pad="0" width="394"> |
111 | Rating: | 115 | Rating: |
112 | </text> | 116 | </text> |
113 | <text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false" | 117 | <text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false" |
114 | bottom="-312" drop_shadow_visible="true" enabled="true" follows="left|top" | 118 | bottom="-332" drop_shadow_visible="true" enabled="true" follows="left|top" |
115 | font="SansSerifSmall" h_pad="0" halign="left" height="10" left="151" | 119 | font="SansSerifSmall" h_pad="0" halign="left" height="10" left="151" |
116 | mouse_opaque="true" name="maturity_desired_prompt" v_pad="0" width="394"> | 120 | mouse_opaque="true" name="maturity_desired_prompt" v_pad="0" width="394"> |
117 | I want to access content rated: | 121 | I want to access content rated: |
118 | </text> | 122 | </text> |
119 | <combo_box bottom="-318" follows="left|top" height="18" left="315" | 123 | <combo_box bottom="-338" follows="left|top" height="18" left="315" |
120 | mouse_opaque="true" name="maturity_desired_combobox" width="150"> | 124 | mouse_opaque="true" name="maturity_desired_combobox" width="150"> |
121 | <combo_item name="Desired_Adult" value="42"> | 125 | <combo_item name="Desired_Adult" value="42"> |
122 | PG, Mature and Adult | 126 | PG, Mature and Adult |
@@ -129,7 +133,7 @@ | |||
129 | </combo_item> | 133 | </combo_item> |
130 | </combo_box> | 134 | </combo_box> |
131 | <text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false" | 135 | <text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false" |
132 | bottom="-312" drop_shadow_visible="true" enabled="true" follows="left|top" | 136 | bottom="-332" drop_shadow_visible="true" enabled="true" follows="left|top" |
133 | font="SansSerifSmall" h_pad="0" halign="left" height="10" left="315" | 137 | font="SansSerifSmall" h_pad="0" halign="left" height="10" left="315" |
134 | mouse_opaque="true" name="maturity_desired_textbox" v_pad="0" width="150"> | 138 | mouse_opaque="true" name="maturity_desired_textbox" v_pad="0" width="150"> |
135 | PG only | 139 | PG only |
@@ -147,25 +151,25 @@ | |||
147 | Nametags: | 151 | Nametags: |
148 | </text> | 152 | </text> |
149 | <text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false" | 153 | <text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false" |
150 | bottom="-155" drop_shadow_visible="true" enabled="true" follows="left|top" | 154 | bottom="-175" drop_shadow_visible="true" enabled="true" follows="left|top" |
151 | font="SansSerifSmall" h_pad="0" halign="left" height="10" left="10" | 155 | font="SansSerifSmall" h_pad="0" halign="left" height="10" left="10" |
152 | mouse_opaque="true" name="effects_color_textbox" v_pad="0" width="394"> | 156 | mouse_opaque="true" name="effects_color_textbox" v_pad="0" width="394"> |
153 | Selection Beam Color: | 157 | Selection Beam Color: |
154 | </text> | 158 | </text> |
155 | <text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false" | 159 | <text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false" |
156 | bottom="-254" drop_shadow_visible="true" enabled="true" follows="left|top" | 160 | bottom="-274" drop_shadow_visible="true" enabled="true" follows="left|top" |
157 | font="SansSerifSmall" h_pad="0" halign="left" height="10" left="220" | 161 | font="SansSerifSmall" h_pad="0" halign="left" height="10" left="220" |
158 | mouse_opaque="true" name="seconds_textbox" v_pad="0" width="128"> | 162 | mouse_opaque="true" name="seconds_textbox" v_pad="0" width="128"> |
159 | seconds | 163 | seconds |
160 | </text> | 164 | </text> |
161 | <text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false" | 165 | <text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false" |
162 | bottom="-352" drop_shadow_visible="true" enabled="true" follows="left|top" | 166 | bottom="-372" drop_shadow_visible="true" enabled="true" follows="left|top" |
163 | font="SansSerifSmall" h_pad="0" halign="left" height="18" left="10" | 167 | font="SansSerifSmall" h_pad="0" halign="left" height="18" left="10" |
164 | mouse_opaque="true" name="time_textbox" v_pad="0" width="394"> | 168 | mouse_opaque="true" name="time_textbox" v_pad="0" width="394"> |
165 | Clock: | 169 | Clock: |
166 | </text> | 170 | </text> |
167 | <text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false" | 171 | <text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false" |
168 | bottom="-384" drop_shadow_visible="true" enabled="true" follows="left|top" | 172 | bottom="-404" drop_shadow_visible="true" enabled="true" follows="left|top" |
169 | font="SansSerifSmall" h_pad="0" halign="left" height="18" left="10" | 173 | font="SansSerifSmall" h_pad="0" halign="left" height="18" left="10" |
170 | mouse_opaque="true" name="language_textbox" v_pad="0" width="394"> | 174 | mouse_opaque="true" name="language_textbox" v_pad="0" width="394"> |
171 | Language: | 175 | Language: |
@@ -180,7 +184,7 @@ | |||
180 | <string name="region_name_prompt"> | 184 | <string name="region_name_prompt"> |
181 | <Type region name> | 185 | <Type region name> |
182 | </string> | 186 | </string> |
183 | <combo_box allow_text_entry="false" bottom="-352" enabled="true" follows="left|top" | 187 | <combo_box allow_text_entry="false" bottom="-372" enabled="true" follows="left|top" |
184 | height="18" left="153" max_chars="20" mouse_opaque="true" | 188 | height="18" left="153" max_chars="20" mouse_opaque="true" |
185 | name="time_combobox" width="146"> | 189 | name="time_combobox" width="146"> |
186 | <combo_item type="string" name="12HourTime" value="PST 12"> | 190 | <combo_item type="string" name="12HourTime" value="PST 12"> |
@@ -193,7 +197,7 @@ | |||
193 | UTC | 197 | UTC |
194 | </combo_item> | 198 | </combo_item> |
195 | </combo_box> | 199 | </combo_box> |
196 | <combo_box allow_text_entry="true" bottom="-382" enabled="true" | 200 | <combo_box allow_text_entry="true" bottom="-402" enabled="true" |
197 | follows="left|top" height="16" left="153" max_chars="135" | 201 | follows="left|top" height="16" left="153" max_chars="135" |
198 | mouse_opaque="true" name="language_combobox" width="146"> | 202 | mouse_opaque="true" name="language_combobox" width="146"> |
199 | <combo_item type="string" length="1" enabled="true" name="System Default Language" value="default"> | 203 | <combo_item type="string" length="1" enabled="true" name="System Default Language" value="default"> |