Skip to content
Snippets Groups Projects
Commit a95ad7aa authored by Andrey Kleshchev's avatar Andrey Kleshchev Committed by akleshchev
Browse files

SL-20337 Add tooltips for HDR Scale and Reflection Probe Ambience environment sliders

parent a4c2eab9
No related branches found
No related tags found
2 merge requests!3Update to main branch,!2Rebase onto current main branch
...@@ -495,10 +495,12 @@ void LLFloaterEnvironmentAdjust::updateGammaLabel() ...@@ -495,10 +495,12 @@ void LLFloaterEnvironmentAdjust::updateGammaLabel()
if (ambiance != 0.f) if (ambiance != 0.f)
{ {
childSetValue("scene_gamma_label", getString("hdr_string")); childSetValue("scene_gamma_label", getString("hdr_string"));
getChild<LLUICtrl>(FIELD_SKY_SCENE_GAMMA)->setToolTip(getString("hdr_tooltip"));
} }
else else
{ {
childSetValue("scene_gamma_label", getString("brightness_string")); childSetValue("scene_gamma_label", getString("brightness_string"));
getChild<LLUICtrl>(FIELD_SKY_SCENE_GAMMA)->setToolTip(std::string());
} }
} }
......
...@@ -342,10 +342,12 @@ void LLPanelSettingsSkyAtmosTab::updateGammaLabel(bool auto_adjust) ...@@ -342,10 +342,12 @@ void LLPanelSettingsSkyAtmosTab::updateGammaLabel(bool auto_adjust)
if (ambiance != 0.f) if (ambiance != 0.f)
{ {
childSetValue("scene_gamma_label", getString("hdr_string")); childSetValue("scene_gamma_label", getString("hdr_string"));
getChild<LLUICtrl>(FIELD_SKY_SCENE_GAMMA)->setToolTip(getString("hdr_tooltip"));
} }
else else
{ {
childSetValue("scene_gamma_label", getString("brightness_string")); childSetValue("scene_gamma_label", getString("brightness_string"));
getChild<LLUICtrl>(FIELD_SKY_SCENE_GAMMA)->setToolTip(std::string());
} }
} }
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
can_resize="false"> can_resize="false">
<string name="hdr_string">HDR Scale:</string> <string name="hdr_string">HDR Scale:</string>
<string name="brightness_string">Brightness:</string> <string name="brightness_string">Brightness:</string>
<string name="hdr_tooltip">Intensity of lightning effects such as realistically bright skies and dynamic exposure. 1.0 is the default, 0 is off, values between 0 and 1 are mixing Ambient with HDR.</string>
<layout_stack name="outer_stack" <layout_stack name="outer_stack"
width="845" width="845"
height="275" height="275"
...@@ -263,6 +264,7 @@ ...@@ -263,6 +264,7 @@
min_val="0" min_val="0"
max_val="10" max_val="10"
name="probe_ambiance" name="probe_ambiance"
tool_tip="Intensity of environment based indirect lighting. At zero HDR scale becomes Brightness"
top_pad="5" top_pad="5"
width="185" width="185"
can_edit_text="true"/> can_edit_text="true"/>
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
top="0"> top="0">
<string name="hdr_string">HDR Scale:</string> <string name="hdr_string">HDR Scale:</string>
<string name="brightness_string">Brightness:</string> <string name="brightness_string">Brightness:</string>
<string name="hdr_tooltip">Intensity of lightning effects such as realistically bright skies and dynamic exposure. 1.0 is the default, 0 is off, values between 0 and 1 are mixing Ambient with HDR.</string>
<layout_stack <layout_stack
name="main_ls" name="main_ls"
follows="all" follows="all"
...@@ -332,6 +333,7 @@ ...@@ -332,6 +333,7 @@
min_val="0" min_val="0"
max_val="10" max_val="10"
name="probe_ambiance" name="probe_ambiance"
tool_tip="Intensity of environment based indirect lighting. At zero HDR scale becomes Brightness"
top_delta="20" top_delta="20"
width="219" width="219"
can_edit_text="true"/> can_edit_text="true"/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment