aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpaneldisplay.cpp
diff options
context:
space:
mode:
authorMcCabe Maxsted2009-09-10 21:43:11 -0700
committerMcCabe Maxsted2009-09-10 21:43:11 -0700
commitf332eaa4a69a4546e0b9b2ba3719e3c038731fd3 (patch)
tree69a2c79196b7a7cffa49b861329e65b2c5ba7ddf /linden/indra/newview/llpaneldisplay.cpp
parentAdmin options now only show for other people's profiles (diff)
downloadmeta-impy-f332eaa4a69a4546e0b9b2ba3719e3c038731fd3.zip
meta-impy-f332eaa4a69a4546e0b9b2ba3719e3c038731fd3.tar.gz
meta-impy-f332eaa4a69a4546e0b9b2ba3719e3c038731fd3.tar.bz2
meta-impy-f332eaa4a69a4546e0b9b2ba3719e3c038731fd3.tar.xz
Created new toolbar control for windlight presets and options
Diffstat (limited to 'linden/indra/newview/llpaneldisplay.cpp')
-rw-r--r--linden/indra/newview/llpaneldisplay.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/linden/indra/newview/llpaneldisplay.cpp b/linden/indra/newview/llpaneldisplay.cpp
index d510775..308f3df 100644
--- a/linden/indra/newview/llpaneldisplay.cpp
+++ b/linden/indra/newview/llpaneldisplay.cpp
@@ -318,6 +318,9 @@ BOOL LLPanelDisplay::postBuild()
318 mLightingText = getChild<LLTextBox>("LightingDetailText"); 318 mLightingText = getChild<LLTextBox>("LightingDetailText");
319 mMeshDetailText = getChild<LLTextBox>("MeshDetailText"); 319 mMeshDetailText = getChild<LLTextBox>("MeshDetailText");
320 320
321 childSetValue("toggle_windlight_control", gSavedSettings.getBOOL("EnableWindlightRemote"));
322 mWLControl = gSavedSettings.getBOOL("EnableWindlightRemote");
323
321 refresh(); 324 refresh();
322 325
323 return TRUE; 326 return TRUE;
@@ -690,6 +693,8 @@ void LLPanelDisplay::cancel()
690 gSavedSettings.setU32("WLSkyDetail", mSkyLOD); 693 gSavedSettings.setU32("WLSkyDetail", mSkyLOD);
691 gSavedSettings.setS32("RenderMaxPartCount", mParticleCount); 694 gSavedSettings.setS32("RenderMaxPartCount", mParticleCount);
692 gSavedSettings.setS32("RenderGlowResolutionPow", mPostProcess); 695 gSavedSettings.setS32("RenderGlowResolutionPow", mPostProcess);
696
697 gSavedSettings.setBOOL("EnableWindlightRemote", mWLControl);
693} 698}
694 699
695void LLPanelDisplay::apply() 700void LLPanelDisplay::apply()
@@ -701,6 +706,8 @@ void LLPanelDisplay::apply()
701 { 706 {
702 applyWindowSize(); 707 applyWindowSize();
703 } 708 }
709
710 gSavedSettings.setBOOL("EnableWindlightRemote", childGetValue("toggle_windlight_control").asBoolean());
704} 711}
705 712
706void LLPanelDisplay::onChangeQuality(LLUICtrl *ctrl, void *data) 713void LLPanelDisplay::onChangeQuality(LLUICtrl *ctrl, void *data)