aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra
diff options
context:
space:
mode:
authorMcCabe Maxsted2009-09-29 23:18:29 -0700
committerMcCabe Maxsted2009-09-29 23:22:36 -0700
commit3160877cbec672f0bc819afb111173c67a8c612b (patch)
tree6ce1ed3e725a5a721c25b52ea372631a6117a067 /linden/indra
parentRenamed preferences checkbox to 'show WindLight toolbar,' removed reference t... (diff)
downloadmeta-impy-3160877cbec672f0bc819afb111173c67a8c612b.zip
meta-impy-3160877cbec672f0bc819afb111173c67a8c612b.tar.gz
meta-impy-3160877cbec672f0bc819afb111173c67a8c612b.tar.bz2
meta-impy-3160877cbec672f0bc819afb111173c67a8c612b.tar.xz
Fixed reset UI size to default button missing from preferences > general (regression). Changed incremets to 0.001 to be more Liberation Sans-friendly
Diffstat (limited to 'linden/indra')
-rw-r--r--linden/indra/newview/llpanelgeneral.cpp9
-rw-r--r--linden/indra/newview/llpanelgeneral.h3
-rw-r--r--linden/indra/newview/skins/default/xui/en-us/panel_preferences_general.xml8
3 files changed, 18 insertions, 2 deletions
diff --git a/linden/indra/newview/llpanelgeneral.cpp b/linden/indra/newview/llpanelgeneral.cpp
index 490e40d..e416401 100644
--- a/linden/indra/newview/llpanelgeneral.cpp
+++ b/linden/indra/newview/llpanelgeneral.cpp
@@ -74,6 +74,8 @@ BOOL LLPanelGeneral::postBuild()
74 74
75 childSetValue("language_combobox", gSavedSettings.getString("Language")); 75 childSetValue("language_combobox", gSavedSettings.getString("Language"));
76 76
77 childSetAction("reset_ui_size", onClickResetUISize, this);
78
77 return TRUE; 79 return TRUE;
78} 80}
79 81
@@ -112,3 +114,10 @@ void LLPanelGeneral::apply()
112void LLPanelGeneral::cancel() 114void LLPanelGeneral::cancel()
113{ 115{
114} 116}
117
118// static
119void LLPanelGeneral::onClickResetUISize(void* user_data)
120{
121 LLPanelGeneral* self = (LLPanelGeneral*)user_data;
122 self->childSetValue("ui_scale_slider", 1.0f);
123}
diff --git a/linden/indra/newview/llpanelgeneral.h b/linden/indra/newview/llpanelgeneral.h
index 6fd10ff..73f6ee5 100644
--- a/linden/indra/newview/llpanelgeneral.h
+++ b/linden/indra/newview/llpanelgeneral.h
@@ -45,6 +45,9 @@ public:
45 45
46 void apply(); 46 void apply();
47 void cancel(); 47 void cancel();
48
49private:
50 static void onClickResetUISize(void*);
48}; 51};
49 52
50#endif 53#endif
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 e8a2625..bb1c5ee 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
@@ -62,9 +62,13 @@
62 UI Size: 62 UI Size:
63 </text> 63 </text>
64 <slider bottom="-217" can_edit_text="true" 64 <slider bottom="-217" can_edit_text="true"
65 decimal_digits="3" enabled="true" height="16" increment="0.025" 65 decimal_digits="3" enabled="true" height="16" increment="0.001"
66 initial_val="1" left="148" max_val="1.4" min_val="0.75" mouse_opaque="true" 66 initial_val="1" left="148" max_val="1.4" min_val="0.75" mouse_opaque="true"
67 name="ui_scale_slider" show_text="true" value="1" width="256" /> 67 name="ui_scale_slider" show_text="true" value="1" width="220" />
68 <button bottom="-221" enabled="true" follows="left|top"
69 font="SansSerif" halign="center" height="22" label="Reset"
70 label_selected="Reset" left_delta="226" mouse_opaque="true"
71 name="reset_ui_size" scale_image="true" width="80" />
68 <check_box bottom="-236" enabled="true" follows="left|top" 72 <check_box bottom="-236" enabled="true" follows="left|top"
69 font="SansSerifSmall" height="16" initial_value="false" 73 font="SansSerifSmall" height="16" initial_value="false"
70 label="Use resolution independent scale" left="151" mouse_opaque="true" 74 label="Use resolution independent scale" left="151" mouse_opaque="true"