diff options
author | McCabe Maxsted | 2011-06-10 20:15:07 -0700 |
---|---|---|
committer | McCabe Maxsted | 2011-06-10 20:15:07 -0700 |
commit | 3e86e9171fe6c1dcad25f8ca0cd25b1dfa2fe85e (patch) | |
tree | ec555f027d160c2db76889dfd15d5dea33178757 /linden | |
parent | Show tooltips on profile pick tabs (lousy workaround for most names being too... (diff) | |
download | meta-impy-3e86e9171fe6c1dcad25f8ca0cd25b1dfa2fe85e.zip meta-impy-3e86e9171fe6c1dcad25f8ca0cd25b1dfa2fe85e.tar.gz meta-impy-3e86e9171fe6c1dcad25f8ca0cd25b1dfa2fe85e.tar.bz2 meta-impy-3e86e9171fe6c1dcad25f8ca0cd25b1dfa2fe85e.tar.xz |
Added AO toolbar option to preferences > advanced
Diffstat (limited to 'linden')
-rw-r--r-- | linden/indra/newview/llprefsadvanced.cpp | 11 | ||||
-rw-r--r-- | linden/indra/newview/llprefsadvanced.h | 1 | ||||
-rw-r--r-- | linden/indra/newview/skins/default/xui/en-us/panel_preferences_advanced.xml | 9 |
3 files changed, 19 insertions, 2 deletions
diff --git a/linden/indra/newview/llprefsadvanced.cpp b/linden/indra/newview/llprefsadvanced.cpp index a9500f7..087acc9 100644 --- a/linden/indra/newview/llprefsadvanced.cpp +++ b/linden/indra/newview/llprefsadvanced.cpp | |||
@@ -48,6 +48,9 @@ | |||
48 | LLPrefsAdvanced* LLPrefsAdvanced::sInstance; | 48 | LLPrefsAdvanced* LLPrefsAdvanced::sInstance; |
49 | 49 | ||
50 | LLPrefsAdvanced::LLPrefsAdvanced() | 50 | LLPrefsAdvanced::LLPrefsAdvanced() |
51 | : | ||
52 | mWLControl(FALSE), | ||
53 | mAOControl(FALSE) | ||
51 | { | 54 | { |
52 | LLUICtrlFactory::getInstance()->buildPanel(this, "panel_preferences_advanced.xml"); | 55 | LLUICtrlFactory::getInstance()->buildPanel(this, "panel_preferences_advanced.xml"); |
53 | if(sInstance)delete sInstance; | 56 | if(sInstance)delete sInstance; |
@@ -99,6 +102,10 @@ BOOL LLPrefsAdvanced::postBuild() | |||
99 | childSetValue("show_timestamps_check", gSavedSettings.getBOOL("ShowTimestamps")); | 102 | childSetValue("show_timestamps_check", gSavedSettings.getBOOL("ShowTimestamps")); |
100 | childSetValue("arrow_keys_move_avatar_check", gSavedSettings.getBOOL("ArrowKeysMoveAvatar")); | 103 | childSetValue("arrow_keys_move_avatar_check", gSavedSettings.getBOOL("ArrowKeysMoveAvatar")); |
101 | 104 | ||
105 | static BOOL *sEnableAORemote = rebind_llcontrol<BOOL>("EnableAORemote", &gSavedSettings, true); | ||
106 | childSetValue("ao_remote_check", *sEnableAORemote); | ||
107 | mAOControl = (*sEnableAORemote); | ||
108 | |||
102 | refresh(); | 109 | refresh(); |
103 | 110 | ||
104 | return TRUE; | 111 | return TRUE; |
@@ -198,6 +205,9 @@ void LLPrefsAdvanced::apply() | |||
198 | gSavedSettings.setBOOL("ArrowKeysMoveAvatar", childGetValue("arrow_keys_move_avatar_check")); | 205 | gSavedSettings.setBOOL("ArrowKeysMoveAvatar", childGetValue("arrow_keys_move_avatar_check")); |
199 | gSavedSettings.setBOOL("ScriptErrorsAsChat", childGetValue("script_errors_as_chat")); | 206 | gSavedSettings.setBOOL("ScriptErrorsAsChat", childGetValue("script_errors_as_chat")); |
200 | gSavedSettings.setBOOL("ShowTimestamps", childGetValue("show_timestamps_check")); | 207 | gSavedSettings.setBOOL("ShowTimestamps", childGetValue("show_timestamps_check")); |
208 | |||
209 | static BOOL *sEnableAORemote = rebind_llcontrol<BOOL>("EnableAORemote", &gSavedSettings, true); | ||
210 | mAOControl = *sEnableAORemote; | ||
201 | } | 211 | } |
202 | 212 | ||
203 | void LLPrefsAdvanced::cancel() | 213 | void LLPrefsAdvanced::cancel() |
@@ -208,6 +218,7 @@ void LLPrefsAdvanced::cancel() | |||
208 | // LLVOAvatar::sCloud.mPartData.mEndColor = mCloudEndColor; | 218 | // LLVOAvatar::sCloud.mPartData.mEndColor = mCloudEndColor; |
209 | 219 | ||
210 | gSavedSettings.setBOOL("EnableWindlightRemote", mWLControl); | 220 | gSavedSettings.setBOOL("EnableWindlightRemote", mWLControl); |
221 | gSavedSettings.setBOOL("EnableAORemote", mAOControl); | ||
211 | } | 222 | } |
212 | 223 | ||
213 | void LLPrefsAdvanced::refresh() | 224 | void LLPrefsAdvanced::refresh() |
diff --git a/linden/indra/newview/llprefsadvanced.h b/linden/indra/newview/llprefsadvanced.h index b863db3..9f02cbf 100644 --- a/linden/indra/newview/llprefsadvanced.h +++ b/linden/indra/newview/llprefsadvanced.h | |||
@@ -64,6 +64,7 @@ private: | |||
64 | LLColor4 mCloudEndColor; | 64 | LLColor4 mCloudEndColor; |
65 | LLUUID mCloudTextureID; | 65 | LLUUID mCloudTextureID; |
66 | BOOL mWLControl; | 66 | BOOL mWLControl; |
67 | BOOL mAOControl; | ||
67 | }; | 68 | }; |
68 | 69 | ||
69 | #endif // LLPREFSADVANCED_H | 70 | #endif // LLPREFSADVANCED_H |
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 0820297..8585a8e 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 | |||
@@ -49,11 +49,16 @@ USE left="270" FOR TABBING OPTIONS | |||
49 | label="Show WindLight toolbar" left="50" mouse_opaque="true" | 49 | label="Show WindLight toolbar" left="50" mouse_opaque="true" |
50 | name="toggle_windlight_control" radio_style="false" width="237" | 50 | name="toggle_windlight_control" radio_style="false" width="237" |
51 | control_name="EnableWindlightRemote" /> | 51 | control_name="EnableWindlightRemote" /> |
52 | <check_box bottom_delta="-18" enabled="true" | 52 | <check_box bottom_delta="0" enabled="true" |
53 | follows="left|top" font="SansSerifSmall" height="16" initial_value="false" | 53 | follows="left|top" font="SansSerifSmall" height="16" initial_value="false" |
54 | label="Use legacy pie menus" left_delta="0" | 54 | label="Use legacy pie menus" left="270" |
55 | mouse_opaque="true" name="legacy_pie_menu_checkbox" radio_style="false" | 55 | mouse_opaque="true" name="legacy_pie_menu_checkbox" radio_style="false" |
56 | width="256" /> | 56 | width="256" /> |
57 | <check_box bottom_delta="-18" enabled="true" follows="left|top" | ||
58 | font="SansSerifSmall" height="16" initial_value="false" | ||
59 | label="Show AO toolbar" left="50" mouse_opaque="true" | ||
60 | name="toggle_ao_control" radio_style="false" width="237" | ||
61 | control_name="EnableAORemote" /> | ||
57 | 62 | ||
58 | 63 | ||
59 | <view_border bevel_style="none" border_thickness="1" bottom_delta="-15" follows="left|top" | 64 | <view_border bevel_style="none" border_thickness="1" bottom_delta="-15" follows="left|top" |