diff --git a/indra/newview/llfloaterpreference.cpp b/indra/newview/llfloaterpreference.cpp index 1f3da545d4..55d0e20ddd 100644 --- a/indra/newview/llfloaterpreference.cpp +++ b/indra/newview/llfloaterpreference.cpp @@ -1943,6 +1943,10 @@ void LLFloaterPreference::refreshEnabledState() ctrl_shadow->setEnabled(enabled); + // Options for Chalice Yao's simple avatar shadows via Marine Kelley + LLComboBox* ctrl_avatar_shadow = getChild("AvatarShadowDetail"); + ctrl_avatar_shadow->setEnabled(enabled && ctrl_shadow->getValue().asInteger() > 0); + // // now turn off any features that are unavailable disableUnavailableSettings(); @@ -1968,6 +1972,8 @@ void LLFloaterPreference::disableUnavailableSettings() LLComboBox* ctrl_shadows = getChild("ShadowDetail"); LLCheckBoxCtrl* ctrl_ssao = getChild("UseSSAO"); LLCheckBoxCtrl* ctrl_dof = getChild("UseDoF"); + // Options for Chalice Yao's simple avatar shadows via Marine Kelley + LLComboBox* ctrl_avatar_shadow = getChild("AvatarShadowDetail"); // if vertex shaders off, disable all shader related products if (!LLFeatureManager::getInstance()->isFeatureAvailable("VertexShaderEnable")) @@ -1989,7 +1995,12 @@ void LLFloaterPreference::disableUnavailableSettings() ctrl_shadows->setEnabled(FALSE); ctrl_shadows->setValue(0); - + + // Options for Chalice Yao's simple avatar shadows via Marine Kelley + ctrl_avatar_shadow->setEnabled(FALSE); + ctrl_avatar_shadow->setValue(0); + // + ctrl_ssao->setEnabled(FALSE); ctrl_ssao->setValue(FALSE); @@ -2012,6 +2023,11 @@ void LLFloaterPreference::disableUnavailableSettings() //deferred needs windlight, disable deferred ctrl_shadows->setEnabled(FALSE); ctrl_shadows->setValue(0); + + // Options for Chalice Yao's simple avatar shadows via Marine Kelley + ctrl_avatar_shadow->setEnabled(FALSE); + ctrl_avatar_shadow->setValue(0); + // ctrl_ssao->setEnabled(FALSE); ctrl_ssao->setValue(FALSE); @@ -2032,7 +2048,12 @@ void LLFloaterPreference::disableUnavailableSettings() { ctrl_shadows->setEnabled(FALSE); ctrl_shadows->setValue(0); - + + // Options for Chalice Yao's simple avatar shadows via Marine Kelley + ctrl_avatar_shadow->setEnabled(FALSE); + ctrl_avatar_shadow->setValue(0); + // + ctrl_ssao->setEnabled(FALSE); ctrl_ssao->setValue(FALSE); @@ -2058,6 +2079,11 @@ void LLFloaterPreference::disableUnavailableSettings() { ctrl_shadows->setEnabled(FALSE); ctrl_shadows->setValue(0); + + // Options for Chalice Yao's simple avatar shadows via Marine Kelley + ctrl_avatar_shadow->setEnabled(FALSE); + ctrl_avatar_shadow->setValue(0); + // } // disabled reflections @@ -2079,6 +2105,11 @@ void LLFloaterPreference::disableUnavailableSettings() //deferred needs AvatarVP, disable deferred ctrl_shadows->setEnabled(FALSE); ctrl_shadows->setValue(0); + + // Options for Chalice Yao's simple avatar shadows via Marine Kelley + ctrl_avatar_shadow->setEnabled(FALSE); + ctrl_avatar_shadow->setValue(0); + // ctrl_ssao->setEnabled(FALSE); ctrl_ssao->setValue(FALSE); diff --git a/indra/newview/quickprefs.cpp b/indra/newview/quickprefs.cpp index 1109cd1020..83b8290f6b 100644 --- a/indra/newview/quickprefs.cpp +++ b/indra/newview/quickprefs.cpp @@ -335,6 +335,7 @@ BOOL FloaterQuickPrefs::postBuild() mCtrlUseSSAO = getChild("UseSSAO"); mCtrlUseDoF = getChild("UseDepthofField"); mCtrlShadowDetail = getChild("ShadowDetail"); + mCtrlAvatarShadowDetail = getChild("AvatarShadowDetail"); mCtrlReflectionDetail = getChild("Reflections"); // FIRE-9630 - Vignette UI controls mSpinnerVignetteX = getChild("VignetteSpinnerX"); @@ -768,6 +769,7 @@ void FloaterQuickPrefs::refreshSettings() mCtrlShadowDetail->setEnabled(enabled); + mCtrlAvatarShadowDetail->setEnabled(enabled && mCtrlShadowDetail->getValue().asInteger() > 0); // if vertex shaders off, disable all shader related products if (!LLFeatureManager::getInstance()->isFeatureAvailable("VertexShaderEnable")) @@ -783,6 +785,9 @@ void FloaterQuickPrefs::refreshSettings() mCtrlShadowDetail->setEnabled(FALSE); mCtrlShadowDetail->setValue(0); + + mCtrlAvatarShadowDetail->setEnabled(FALSE); + mCtrlAvatarShadowDetail->setValue(0); mCtrlUseSSAO->setEnabled(FALSE); mCtrlUseSSAO->setValue(FALSE); @@ -804,6 +809,9 @@ void FloaterQuickPrefs::refreshSettings() mCtrlShadowDetail->setEnabled(FALSE); mCtrlShadowDetail->setValue(0); + mCtrlAvatarShadowDetail->setEnabled(FALSE); + mCtrlAvatarShadowDetail->setValue(0); + mCtrlUseSSAO->setEnabled(FALSE); mCtrlUseSSAO->setValue(FALSE); @@ -820,7 +828,10 @@ void FloaterQuickPrefs::refreshSettings() { mCtrlShadowDetail->setEnabled(FALSE); mCtrlShadowDetail->setValue(0); - + + mCtrlAvatarShadowDetail->setEnabled(FALSE); + mCtrlAvatarShadowDetail->setValue(0); + mCtrlUseSSAO->setEnabled(FALSE); mCtrlUseSSAO->setValue(FALSE); @@ -843,6 +854,9 @@ void FloaterQuickPrefs::refreshSettings() { mCtrlShadowDetail->setEnabled(FALSE); mCtrlShadowDetail->setValue(0); + + mCtrlAvatarShadowDetail->setEnabled(FALSE); + mCtrlAvatarShadowDetail->setValue(0); } // disabled reflections @@ -858,6 +872,10 @@ void FloaterQuickPrefs::refreshSettings() //deferred needs AvatarVP, disable deferred mCtrlShadowDetail->setEnabled(FALSE); mCtrlShadowDetail->setValue(0); + + mCtrlAvatarShadowDetail->setEnabled(FALSE); + mCtrlAvatarShadowDetail->setValue(0); + mCtrlUseSSAO->setEnabled(FALSE); mCtrlUseSSAO->setValue(FALSE); diff --git a/indra/newview/quickprefs.h b/indra/newview/quickprefs.h index 186e219c86..9374c14d0c 100644 --- a/indra/newview/quickprefs.h +++ b/indra/newview/quickprefs.h @@ -127,6 +127,7 @@ private: LLCheckBoxCtrl* mCtrlUseSSAO; LLCheckBoxCtrl* mCtrlUseDoF; LLComboBox* mCtrlShadowDetail; + LLComboBox* mCtrlAvatarShadowDetail; LLComboBox* mCtrlReflectionDetail; // FIRE-9630 Vignette UI controls diff --git a/indra/newview/skins/default/xui/de/floater_phototools.xml b/indra/newview/skins/default/xui/de/floater_phototools.xml index 7ce8fcd87d..39b425eda6 100644 --- a/indra/newview/skins/default/xui/de/floater_phototools.xml +++ b/indra/newview/skins/default/xui/de/floater_phototools.xml @@ -112,7 +112,16 @@ - + + Avatar-Schatten: + + + + + + + + diff --git a/indra/newview/skins/default/xui/de/panel_preferences_graphics1.xml b/indra/newview/skins/default/xui/de/panel_preferences_graphics1.xml index 3a9168b4fc..e36b7e657d 100755 --- a/indra/newview/skins/default/xui/de/panel_preferences_graphics1.xml +++ b/indra/newview/skins/default/xui/de/panel_preferences_graphics1.xml @@ -42,6 +42,15 @@ + + Avatar-Schatten: + + + + + + + Wasserreflexionen: diff --git a/indra/newview/skins/default/xui/en/floater_phototools.xml b/indra/newview/skins/default/xui/en/floater_phototools.xml index 57ff8b1128..7efe5b8fed 100644 --- a/indra/newview/skins/default/xui/en/floater_phototools.xml +++ b/indra/newview/skins/default/xui/en/floater_phototools.xml @@ -679,7 +679,7 @@ top_pad="5" left="4" width="275" - height="90" + height="60" border_visible="true" background_visible="true"> @@ -703,13 +703,13 @@ left="5" name="LocalLights" tool_tip="This will turn on all in-world lights. If you disable this feature, light from Sun and Moon will still appear. Useful when you wish to eliminate SIM lighting and use only the Sun and Moon light." - top_pad="5" + top_pad="2" width="240"/> - + + Avatar Shadows: + + + + + + + + + Avatar Shadows: + + + + + + + + + - + + Avatar Shadows: + + + + + + + + - + + Avatar Shadows: + + + + + + + +