diff options
author | McCabe Maxsted | 2010-06-09 08:35:27 -0700 |
---|---|---|
committer | Jacek Antonelli | 2010-06-19 02:43:34 -0500 |
commit | baf40492a49d3b2da1632204a819015710f9925e (patch) | |
tree | 4e498f509a72600830a70fec6f76e48bbef5ee44 /linden | |
parent | Moved 'Mute wind' into Preferences > Audio, rearranged the audio preferences ... (diff) | |
download | meta-impy-baf40492a49d3b2da1632204a819015710f9925e.zip meta-impy-baf40492a49d3b2da1632204a819015710f9925e.tar.gz meta-impy-baf40492a49d3b2da1632204a819015710f9925e.tar.bz2 meta-impy-baf40492a49d3b2da1632204a819015710f9925e.tar.xz |
Moved 'Legacy pie menus' into Preferences > Advanced
Diffstat (limited to 'linden')
4 files changed, 16 insertions, 22 deletions
diff --git a/linden/indra/newview/llpanelgeneral.cpp b/linden/indra/newview/llpanelgeneral.cpp index ecfe6a5..c0b65ce 100644 --- a/linden/indra/newview/llpanelgeneral.cpp +++ b/linden/indra/newview/llpanelgeneral.cpp | |||
@@ -44,7 +44,6 @@ | |||
44 | 44 | ||
45 | #include "llagent.h" | 45 | #include "llagent.h" |
46 | #include "llviewerregion.h" | 46 | #include "llviewerregion.h" |
47 | #include "llviewermenu.h" | ||
48 | 47 | ||
49 | LLPanelGeneral::LLPanelGeneral() | 48 | LLPanelGeneral::LLPanelGeneral() |
50 | { | 49 | { |
@@ -106,8 +105,6 @@ BOOL LLPanelGeneral::postBuild() | |||
106 | 105 | ||
107 | childSetVisible("maturity_desired_combobox", can_choose); | 106 | childSetVisible("maturity_desired_combobox", can_choose); |
108 | childSetVisible("maturity_desired_textbox", !can_choose); | 107 | childSetVisible("maturity_desired_textbox", !can_choose); |
109 | |||
110 | childSetValue("legacy_pie_menu_checkbox", gSavedSettings.getBOOL("LegacyPieEnabled")); | ||
111 | 108 | ||
112 | return TRUE; | 109 | return TRUE; |
113 | } | 110 | } |
@@ -159,12 +156,6 @@ void LLPanelGeneral::apply() | |||
159 | } | 156 | } |
160 | } | 157 | } |
161 | 158 | ||
162 | if (gSavedSettings.getBOOL("LegacyPieEnabled") == !((BOOL)childGetValue("legacy_pie_menu_checkbox"))) | ||
163 | { | ||
164 | gSavedSettings.setBOOL("LegacyPieEnabled", childGetValue("legacy_pie_menu_checkbox")); | ||
165 | build_pie_menus(); | ||
166 | } | ||
167 | |||
168 | // Keep gAllowIdleAFK around for performance reasons -- MC | 159 | // Keep gAllowIdleAFK around for performance reasons -- MC |
169 | if (gAllowIdleAFK != (BOOL)childGetValue("afk_timeout_checkbox")) | 160 | if (gAllowIdleAFK != (BOOL)childGetValue("afk_timeout_checkbox")) |
170 | { | 161 | { |
diff --git a/linden/indra/newview/llprefsadvanced.cpp b/linden/indra/newview/llprefsadvanced.cpp index d96f97e..22dcbf1 100644 --- a/linden/indra/newview/llprefsadvanced.cpp +++ b/linden/indra/newview/llprefsadvanced.cpp | |||
@@ -33,6 +33,7 @@ | |||
33 | #include "llagent.h" | 33 | #include "llagent.h" |
34 | #include "llprefsadvanced.h" | 34 | #include "llprefsadvanced.h" |
35 | #include "llviewercontrol.h" | 35 | #include "llviewercontrol.h" |
36 | #include "llviewermenu.h" | ||
36 | #include "llvoavatar.h" | 37 | #include "llvoavatar.h" |
37 | 38 | ||
38 | #include "lluictrlfactory.h" | 39 | #include "lluictrlfactory.h" |
@@ -61,6 +62,7 @@ BOOL LLPrefsAdvanced::postBuild() | |||
61 | childSetValue("speed_rez_check", gSavedSettings.getBOOL("SpeedRez")); | 62 | childSetValue("speed_rez_check", gSavedSettings.getBOOL("SpeedRez")); |
62 | childSetValue("speed_rez_interval_spinner", (F32)gSavedSettings.getU32("SpeedRezInterval")); | 63 | childSetValue("speed_rez_interval_spinner", (F32)gSavedSettings.getU32("SpeedRezInterval")); |
63 | childSetValue("appearance_anim_check", gSavedSettings.getBOOL("AppearanceAnimate")); | 64 | childSetValue("appearance_anim_check", gSavedSettings.getBOOL("AppearanceAnimate")); |
65 | childSetValue("legacy_pie_menu_checkbox", gSavedSettings.getBOOL("LegacyPieEnabled")); | ||
64 | 66 | ||
65 | refresh(); | 67 | refresh(); |
66 | 68 | ||
@@ -121,6 +123,12 @@ void LLPrefsAdvanced::apply() | |||
121 | } | 123 | } |
122 | } | 124 | } |
123 | gSavedSettings.setBOOL("ShadowsEnabled", childGetValue("shadows_check").asBoolean()); | 125 | gSavedSettings.setBOOL("ShadowsEnabled", childGetValue("shadows_check").asBoolean()); |
126 | |||
127 | if (gSavedSettings.getBOOL("LegacyPieEnabled") == !((BOOL)childGetValue("legacy_pie_menu_checkbox"))) | ||
128 | { | ||
129 | gSavedSettings.setBOOL("LegacyPieEnabled", childGetValue("legacy_pie_menu_checkbox")); | ||
130 | build_pie_menus(); | ||
131 | } | ||
124 | } | 132 | } |
125 | 133 | ||
126 | void LLPrefsAdvanced::cancel() | 134 | void LLPrefsAdvanced::cancel() |
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 6766cf3..0507a74 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 | |||
@@ -52,6 +52,11 @@ | |||
52 | tool_tip="Toggle editing animation and standing up when entering appearance mode" | 52 | tool_tip="Toggle editing animation and standing up when entering appearance mode" |
53 | label="Animate avatar when editing appearance" left="12" mouse_opaque="true" | 53 | label="Animate avatar when editing appearance" left="12" mouse_opaque="true" |
54 | name="appearance_anim_check" radio_style="false" width="217" /> | 54 | name="appearance_anim_check" radio_style="false" width="217" /> |
55 | <check_box bottom_delta="-25" enabled="true" | ||
56 | follows="left|top" font="SansSerifSmall" height="16" initial_value="false" | ||
57 | label="Use legacy pie menus" left="12" | ||
58 | mouse_opaque="true" name="legacy_pie_menu_checkbox" radio_style="false" | ||
59 | width="256" /> | ||
55 | 60 | ||
56 | <button bottom="5" follows="left|top" font="SansSerifSmall" height="20" width="250" | 61 | <button bottom="5" follows="left|top" font="SansSerifSmall" height="20" width="250" |
57 | label="Reset All Preferences To Default" name="reset_btn" left="12" | 62 | label="Reset All Preferences To Default" name="reset_btn" left="12" |
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 119772d..0ca7b31 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 | |||
@@ -50,21 +50,11 @@ | |||
50 | font="SansSerifSmall" height="16" initial_value="false" | 50 | font="SansSerifSmall" height="16" initial_value="false" |
51 | label="Hide my group title" left="151" name="show_my_title_checkbox" | 51 | label="Hide my group title" left="151" name="show_my_title_checkbox" |
52 | radio_style="false" width="256" /> | 52 | radio_style="false" width="256" /> |
53 | <text type="string" length="1" bottom_delta="-24" follows="left|top" font="SansSerifSmall" h_pad="0" | ||
54 | halign="left" height="16" left="10" name="group_titles_textbox" v_pad="0" | ||
55 | width="394"> | ||
56 | Pie Menus: | ||
57 | </text> | ||
58 | <check_box bottom_delta="0" enabled="true" | ||
59 | follows="left|top" font="SansSerifSmall" height="16" initial_value="false" | ||
60 | label="Use legacy pie menus" left="151" | ||
61 | mouse_opaque="true" name="legacy_pie_menu_checkbox" radio_style="false" | ||
62 | width="256" /> | ||
63 | <color_swatch border_color="0.45098 0.517647 0.607843 1" bottom="-210" | 53 | <color_swatch border_color="0.45098 0.517647 0.607843 1" bottom="-210" |
64 | can_apply_immediately="false" color="1 1 1 1" | 54 | can_apply_immediately="false" color="1 1 1 1" |
65 | enabled="true" follows="left|top" height="48" label="" left="153" | 55 | enabled="true" follows="left|top" height="65" label="" left="153" |
66 | mouse_opaque="true" name="effect_color_swatch" | 56 | mouse_opaque="true" name="effect_color_swatch" |
67 | tool_tip="Click to open Color Picker" width="32" /> | 57 | tool_tip="Click to open Color Picker" width="55" /> |
68 | <text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false" | 58 | <text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false" |
69 | bottom="-215" drop_shadow_visible="true" enabled="true" follows="left|top" | 59 | bottom="-215" drop_shadow_visible="true" enabled="true" follows="left|top" |
70 | font="SansSerifSmall" h_pad="0" halign="left" height="12" left="10" | 60 | font="SansSerifSmall" h_pad="0" halign="left" height="12" left="10" |
@@ -150,7 +140,7 @@ | |||
150 | Nametags: | 140 | Nametags: |
151 | </text> | 141 | </text> |
152 | <text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false" | 142 | <text type="string" length="1" bg_visible="false" border_drop_shadow_visible="false" border_visible="false" |
153 | bottom="-184" drop_shadow_visible="true" enabled="true" follows="left|top" | 143 | bottom="-155" drop_shadow_visible="true" enabled="true" follows="left|top" |
154 | font="SansSerifSmall" h_pad="0" halign="left" height="10" left="10" | 144 | font="SansSerifSmall" h_pad="0" halign="left" height="10" left="10" |
155 | mouse_opaque="true" name="effects_color_textbox" v_pad="0" width="394"> | 145 | mouse_opaque="true" name="effects_color_textbox" v_pad="0" width="394"> |
156 | Selection Beam Color: | 146 | Selection Beam Color: |