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/indra/newview/llprefsadvanced.cpp | |
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/indra/newview/llprefsadvanced.cpp')
-rw-r--r-- | linden/indra/newview/llprefsadvanced.cpp | 11 |
1 files changed, 11 insertions, 0 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() |