aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llwindlightremotectrl.cpp
diff options
context:
space:
mode:
authorMcCabe Maxsted2009-10-11 07:53:03 -0700
committerMcCabe Maxsted2009-10-11 07:53:03 -0700
commitf7fa0b1afa99596df47f68511d0fddf7522448fc (patch)
tree7a7bc9226961bfb1d6bc7f8c80cd33eb0153cbb0 /linden/indra/newview/llwindlightremotectrl.cpp
parentAdded next/prev buttons to windlight water window (diff)
downloadmeta-impy-f7fa0b1afa99596df47f68511d0fddf7522448fc.zip
meta-impy-f7fa0b1afa99596df47f68511d0fddf7522448fc.tar.gz
meta-impy-f7fa0b1afa99596df47f68511d0fddf7522448fc.tar.bz2
meta-impy-f7fa0b1afa99596df47f68511d0fddf7522448fc.tar.xz
Added advanced water and windlight sky tabs to sky presets pulldown
Diffstat (limited to 'linden/indra/newview/llwindlightremotectrl.cpp')
-rw-r--r--linden/indra/newview/llwindlightremotectrl.cpp36
1 files changed, 35 insertions, 1 deletions
diff --git a/linden/indra/newview/llwindlightremotectrl.cpp b/linden/indra/newview/llwindlightremotectrl.cpp
index ae9a90a..f805763 100644
--- a/linden/indra/newview/llwindlightremotectrl.cpp
+++ b/linden/indra/newview/llwindlightremotectrl.cpp
@@ -35,6 +35,7 @@
35#include "llbutton.h" 35#include "llbutton.h"
36#include "llcombobox.h" 36#include "llcombobox.h"
37#include "llfloaterenvsettings.h" 37#include "llfloaterenvsettings.h"
38#include "llfloaterwater.h"
38#include "llfloaterwindlight.h" 39#include "llfloaterwindlight.h"
39#include "lloverlaybar.h" 40#include "lloverlaybar.h"
40#include "lluictrlfactory.h" 41#include "lluictrlfactory.h"
@@ -154,6 +155,11 @@ void LLWindlightRemoteCtrl::refreshPresets()
154 155
155 // insert separator and add World menu options 156 // insert separator and add World menu options
156 mPresetsCombo->addSeparator(ADD_BOTTOM); 157 mPresetsCombo->addSeparator(ADD_BOTTOM);
158 mPresetsCombo->addSimpleElement(getString("atmosphere"), ADD_BOTTOM);
159 mPresetsCombo->addSimpleElement(getString("lighting"), ADD_BOTTOM);
160 mPresetsCombo->addSimpleElement(getString("clouds"), ADD_BOTTOM);
161 mPresetsCombo->addSimpleElement(getString("advanced_water"), ADD_BOTTOM);
162 mPresetsCombo->addSeparator(ADD_BOTTOM);
157 mPresetsCombo->addSimpleElement(getString("sunrise"), ADD_BOTTOM); 163 mPresetsCombo->addSimpleElement(getString("sunrise"), ADD_BOTTOM);
158 mPresetsCombo->addSimpleElement(getString("noon"), ADD_BOTTOM); 164 mPresetsCombo->addSimpleElement(getString("noon"), ADD_BOTTOM);
159 mPresetsCombo->addSimpleElement(getString("sunset"), ADD_BOTTOM); 165 mPresetsCombo->addSimpleElement(getString("sunset"), ADD_BOTTOM);
@@ -191,7 +197,35 @@ void LLWindlightRemoteCtrl::onCommitPreset(LLUICtrl* ctrl, void* data)
191 // check for World menu options; if none, apply preset 197 // check for World menu options; if none, apply preset
192 std::string selected = self->mPresetsCombo->getSelectedValue().asString(); 198 std::string selected = self->mPresetsCombo->getSelectedValue().asString();
193 199
194 if (selected == self->getString("sunrise")) 200 if (selected == self->getString("atmosphere"))
201 {
202 if (!LLFloaterWindLight::instance()->getVisible())
203 {
204 LLFloaterWindLight::show();
205 }
206 LLFloaterWindLight::instance()->selectTab("Atmosphere");
207 }
208 else if (selected == self->getString("lighting"))
209 {
210 if (!LLFloaterWindLight::instance()->getVisible())
211 {
212 LLFloaterWindLight::show();
213 }
214 LLFloaterWindLight::instance()->selectTab("Lighting");
215 }
216 else if (selected == self->getString("clouds"))
217 {
218 if (!LLFloaterWindLight::instance()->getVisible())
219 {
220 LLFloaterWindLight::show();
221 }
222 LLFloaterWindLight::instance()->selectTab("Clouds");
223 }
224 else if (selected == self->getString("advanced_water"))
225 {
226 LLFloaterWater::show();
227 }
228 else if (selected == self->getString("sunrise"))
195 { 229 {
196 // set the value, turn off animation 230 // set the value, turn off animation
197 LLWLParamManager::instance()->mAnimator.setDayTime(0.25); 231 LLWLParamManager::instance()->mAnimator.setDayTime(0.25);