complete dual-brush implementation and ui integration

This commit is contained in:
2019-02-14 13:18:00 +01:00
parent 999723dd14
commit fa9d7a107b
10 changed files with 171 additions and 125 deletions

View File

@@ -312,9 +312,6 @@
<node dir="row">
<node width="30%" dir="col">
<!--labels-->
<node height="40" justify="center" margin="0 0 5 0">
<text text="Preset"/>
</node>
<node height="40" justify="center" margin="5 0 0 0">
<text text="Shape"/>
</node>
@@ -328,18 +325,23 @@
<text text="Size"/>
</node>
<node height="20" justify="center">
<text text="Spacing"/>
<text text="Flow"/>
</node>
<node height="20" justify="center">
<text text="Opacity"/>
</node>
<node height="20" justify="center">
<text text="Spacing"/>
</node>
<node height="20" justify="center" margin="0 0 20 0">
<text text="Scatter"/>
</node>
<node height="20" justify="center">
<text text="Rotate"/>
</node>
</node>
<node dir="col" grow="1" width="1">
<!--controls-->
<button-custom id="dual-preset-button" width="100%" height="40" margin="0 0 5 0" dir="row" pad="4">
<image id="dual-preset-thumb" path="data/thumbs/Round-Hard.png" width="32" height="100%"/>
<stroke-preview id="dual-preset-preview" width="10" grow="1" height="100%"/>
</button-custom>
<node dir="row" margin="0 0 5 0">
<button-custom id="dual-change" width="40" height="40" dir="row" pad="4">
<image id="dual-change-thumb" width="32" height="100%"/>
@@ -367,6 +369,12 @@
<node height="20" pad="1" width="100%">
<slider-h id="dual-size" value=".25"/>
</node>
<node height="20" pad="1" width="100%">
<slider-h id="dual-flow" value=".75"/>
</node>
<node height="20" pad="1" width="100%">
<slider-h id="dual-opacity" value="1"/>
</node>
<node height="20" pad="1" width="100%">
<slider-h id="dual-spacing" value=".25"/>
</node>
@@ -377,6 +385,9 @@
<text text="both axis"/>
</node>
</node>
<node height="20" pad="1" width="100%">
<slider-h id="dual-rotate" value=".25"/>
</node>
</node>
</node>