diff options
author | Graham Linden <graham@lindenlab.com> | 2018-08-22 00:56:27 +0100 |
---|---|---|
committer | Graham Linden <graham@lindenlab.com> | 2018-08-22 00:56:27 +0100 |
commit | a27501d21626e0026a184aaf9bc24a22d0f636bb (patch) | |
tree | c4e205489126a3d8cc8aa5ffd97fd80e82e6131c /indra/newview/llpaneleditsky.cpp | |
parent | ab1c7087e944ea9ded217770176e3444c8c39c0d (diff) | |
parent | 93342e3201cfd83b4cda0a194e900999d3753f46 (diff) |
Merge 5.1.9
Diffstat (limited to 'indra/newview/llpaneleditsky.cpp')
-rw-r--r-- | indra/newview/llpaneleditsky.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/indra/newview/llpaneleditsky.cpp b/indra/newview/llpaneleditsky.cpp index f84fdbb897..dfb803a0a3 100644 --- a/indra/newview/llpaneleditsky.cpp +++ b/indra/newview/llpaneleditsky.cpp @@ -68,8 +68,10 @@ namespace const std::string FIELD_SKY_STAR_BRIGHTNESS("star_brightness"); const std::string FIELD_SKY_SUN_ROTATION("sun_rotation"); const std::string FIELD_SKY_SUN_IMAGE("sun_image"); + const std::string FIELD_SKY_SUN_SCALE("sun_scale"); const std::string FIELD_SKY_MOON_ROTATION("moon_rotation"); const std::string FIELD_SKY_MOON_IMAGE("moon_image"); + const std::string FIELD_SKY_MOON_SCALE("moon_scale"); const F32 SLIDER_SCALE_SUN_AMBIENT(3.0f); const F32 SLIDER_SCALE_BLUE_HORIZON_DENSITY(2.0f); @@ -422,6 +424,12 @@ void LLPanelSettingsSkySunMoonTab::onSunRotationChanged() mSkySettings->update(); } +void LLPanelSettingsSkySunMoonTab::onSunScaleChanged() +{ + mSkySettings->setSunScale((getChild<LLUICtrl>(FIELD_SKY_SUN_SCALE)->getValue().asReal())); + mSkySettings->update(); +} + void LLPanelSettingsSkySunMoonTab::onSunImageChanged() { mSkySettings->setSunTextureId(getChild<LLTextureCtrl>(FIELD_SKY_SUN_IMAGE)->getValue().asUUID()); @@ -439,6 +447,13 @@ void LLPanelSettingsSkySunMoonTab::onMoonImageChanged() mSkySettings->setMoonTextureId(getChild<LLTextureCtrl>(FIELD_SKY_MOON_IMAGE)->getValue().asUUID()); mSkySettings->update(); } + +void LLPanelSettingsSkySunMoonTab::onMoonScaleChanged() +{ + mSkySettings->setMoonScale((getChild<LLUICtrl>(FIELD_SKY_MOON_SCALE)->getValue().asReal())); + mSkySettings->update(); +} + LLPanelSettingsDensityTab::LLPanelSettingsDensityTab() { |