Skip to content
Snippets Groups Projects
Commit 663102b5 authored by Vadim ProductEngine's avatar Vadim ProductEngine
Browse files

STORM-1305 WIP UI changes in the Edit Water Preset floater.

- Made the floater smaller.
- Removed the "Control Help" label.
- Removed the view border, added a horizontal separator.
- Fixed the color swatch to only handle mouse within the color box.
parent c7bca460
No related branches found
No related tags found
No related merge requests found
<?xml version="1.0" encoding="utf-8" standalone="yes" ?> <?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<floater <floater
legacy_header_height="18" legacy_header_height="18"
height="450" height="375"
layout="topleft" layout="topleft"
name="Edit Water Preset" name="Edit Water Preset"
help_topic="water_preset" help_topic="water_preset"
save_rect="true" save_rect="true"
title="Edit Water Preset" title="Edit Water Preset"
width="900"> width="725">
<string name="title_new">Create a New Water Preset</string> <string name="title_new">Create a New Water Preset</string>
<string name="title_edit">Edit a Water Preset</string> <string name="title_edit">Edit a Water Preset</string>
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
left="30" left="30"
name="hint" name="hint"
top="25" top="25"
width="700"> width="680">
To edit your preset, adjust the controls then click "Save" To edit your preset, adjust the controls then click "Save"
</text> </text>
...@@ -62,49 +62,40 @@ ...@@ -62,49 +62,40 @@
left_pad="10" left_pad="10"
name="note" name="note"
top_delta="0" top_delta="0"
width="405" width="340"
wrap="true"> wrap="true">
Note: if you change the name of your preset, you will be creating a new preset and the existing preset will not be changed. Note: if you change the name of your preset, you will be creating a new preset and the existing preset will not be changed.
</text> </text>
<!--======== Controls panel ========--> <!--======== Controls panel ========-->
<panel <panel
border="true" border="false"
bevel_style="none" bevel_style="none"
follows="top|left" follows="top|left"
height="300" height="230"
layout="topleft" layout="topleft"
left="25" left="10"
name="panel_water_preset" name="panel_water_preset"
top="100" top="100"
width="850"> width="700">
<text
follows="top|left|right"
layout="topleft"
name="water_preset_help"
right="870"
top_pad="4"
width="100">
Control Help
</text>
<!--======== I conlumn of controls ========--> <!--======== I conlumn of controls ========-->
<text <text
follows="left|top|right" follows="left|top|right"
height="10" height="10"
font="SansSerif" font="SansSerif"
layout="topleft" layout="topleft"
left="40" left="10"
name="water_color_label" name="water_color_label"
top="25" top="5"
width="200"> width="215">
Water Fog Color Water Fog Color
</text> </text>
<color_swatch <color_swatch
can_apply_immediately="true" can_apply_immediately="true"
follows="left|top" follows="left|top"
height="60" height="37"
label_height="0"
layout="topleft" layout="topleft"
left_delta="15" left_delta="15"
name="WaterFogColor" name="WaterFogColor"
...@@ -117,9 +108,9 @@ ...@@ -117,9 +108,9 @@
font="SansSerif" font="SansSerif"
layout="topleft" layout="topleft"
left_delta="-15" left_delta="-15"
top_pad="0" top_pad="10"
name="water_fog_density_label" name="water_fog_density_label"
width="200"> width="215">
Fog Density Exponent Fog Density Exponent
</text> </text>
<slider <slider
...@@ -142,7 +133,7 @@ ...@@ -142,7 +133,7 @@
left_delta="-15" left_delta="-15"
top_pad="15" top_pad="15"
name="underwater_fog_modifier_label" name="underwater_fog_modifier_label"
width="200"> width="215">
Underwater Fog Modifier Underwater Fog Modifier
</text> </text>
<slider <slider
...@@ -165,7 +156,7 @@ ...@@ -165,7 +156,7 @@
left_delta="-15" left_delta="-15"
name="BHText" name="BHText"
top_pad="15" top_pad="15"
width="200"> width="215">
Big Wave Direction Big Wave Direction
</text> </text>
<slider <slider
...@@ -202,10 +193,10 @@ ...@@ -202,10 +193,10 @@
font="SansSerif" font="SansSerif"
height="10" height="10"
layout="topleft" layout="topleft"
left_pad="55" left_pad="20"
name="BDensText" name="BDensText"
top="25" top="5"
width="200"> width="215">
Reflection Wavelet Scale Reflection Wavelet Scale
</text> </text>
<slider <slider
...@@ -248,7 +239,7 @@ ...@@ -248,7 +239,7 @@
left_delta="-15" left_delta="-15"
name="HDText" name="HDText"
top_pad="16" top_pad="16"
width="200"> width="215">
Fresnel Scale Fresnel Scale
</text> </text>
<slider <slider
...@@ -270,7 +261,7 @@ ...@@ -270,7 +261,7 @@
left_delta="-15" left_delta="-15"
name="FresnelOffsetText" name="FresnelOffsetText"
top_pad="15" top_pad="15"
width="200"> width="215">
Fresnel Offset Fresnel Offset
</text> </text>
<slider <slider
...@@ -293,7 +284,7 @@ ...@@ -293,7 +284,7 @@
left_delta="-15" left_delta="-15"
name="BHText2" name="BHText2"
top_pad="15" top_pad="15"
width="200"> width="215">
Little Wave Direction Little Wave Direction
</text> </text>
<slider <slider
...@@ -328,12 +319,12 @@ ...@@ -328,12 +319,12 @@
<text <text
follows="left|top|right" follows="left|top|right"
font="SansSerif" font="SansSerif"
height="10" height="16"
layout="topleft" layout="topleft"
left_pad="55" left_pad="20"
name="DensMultText" name="DensMultText"
top="25" top="5"
width="200"> width="215">
Refract Scale Above Refract Scale Above
</text> </text>
<slider <slider
...@@ -345,7 +336,7 @@ ...@@ -345,7 +336,7 @@
layout="topleft" layout="topleft"
left_delta="15" left_delta="15"
name="WaterScaleAbove" name="WaterScaleAbove"
top_pad="10" top_pad="5"
width="200" /> width="200" />
<text <text
...@@ -358,7 +349,7 @@ ...@@ -358,7 +349,7 @@
left_delta="-15" left_delta="-15"
name="WaterScaleBelowText" name="WaterScaleBelowText"
top_pad="15" top_pad="15"
width="200"> width="215">
Refract Scale Below Refract Scale Below
</text> </text>
<slider <slider
...@@ -371,7 +362,7 @@ ...@@ -371,7 +362,7 @@
layout="topleft" layout="topleft"
left_delta="15" left_delta="15"
name="WaterScaleBelow" name="WaterScaleBelow"
top_pad="10" top_pad="5"
width="200"/> width="200"/>
<text <text
...@@ -382,7 +373,7 @@ ...@@ -382,7 +373,7 @@
left_delta="-15" left_delta="-15"
name="MaxAltText" name="MaxAltText"
top_pad="15" top_pad="15"
width="200"> width="215">
Blur Multiplier Blur Multiplier
</text> </text>
<slider <slider
...@@ -395,39 +386,48 @@ ...@@ -395,39 +386,48 @@
left_delta="15" left_delta="15"
max_val="0.16" max_val="0.16"
name="WaterBlurMult" name="WaterBlurMult"
top_pad="10" top_pad="5"
width="200"/> width="200"/>
<text <text
follows="left|top|right" follows="left|top|right"
font="SansSerif" font="SansSerif"
height="10" height="16"
layout="topleft" layout="topleft"
left_delta="-15" left_delta="-15"
name="BHText3" name="BHText3"
top_pad="15" top_pad="15"
width="200"> width="215">
Normal Map Normal Map
</text> </text>
<texture_picker <texture_picker
height="100" height="80"
layout="topleft" layout="topleft"
left_delta="15" left_delta="15"
name="WaterNormalMap" name="WaterNormalMap"
top_delta="22" top_pad="5"
width="100" /> width="100" />
</panel> </panel>
<!--======== End of Controls panel ========--> <!--======== End of Controls panel ========-->
<view_border
bevel_style="none"
follows="top|left"
height="0"
layout="topleft"
left="10"
name="horiz_separator"
top_pad="5"
width="700"/>
<check_box <check_box
follows="top|left" follows="top|left"
height="10" height="10"
label="Make this preset my new water setting" label="Make this preset my new water setting"
layout="topleft" layout="topleft"
left="430" left="275"
name="make_default_cb" name="make_default_cb"
top_pad="30" top_pad="20"
width="280"/> width="280"/>
<button <button
follows="bottom|right" follows="bottom|right"
height="23" height="23"
......
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