mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-06-25 15:44:42 -04:00
Added two new tools, Paint all pixels of same color and lighten/darken
- Paint all pixels of same color tool added. Does what it says. - Lighten/darken tool. It lightens by default, darkens when user is pressing Ctrl. - Removed tool variables from main - stored everything in an array instead.
This commit is contained in:
parent
e18389d8c4
commit
c64c3408e8
4 changed files with 87 additions and 32 deletions
31
Main.tscn
31
Main.tscn
|
@ -34,7 +34,6 @@ size_flags_horizontal = 3
|
|||
size_flags_vertical = 3
|
||||
|
||||
[node name="MenusAndTools" type="VBoxContainer" parent="UI/ToolPanel/Tools"]
|
||||
editor/display_folded = true
|
||||
margin_right = 230.0
|
||||
margin_bottom = 266.0
|
||||
size_flags_vertical = 3
|
||||
|
@ -117,12 +116,38 @@ mouse_default_cursor_shape = 2
|
|||
button_mask = 3
|
||||
text = "Bucket"
|
||||
|
||||
[node name="SelectionToolsContainer" type="HBoxContainer" parent="UI/ToolPanel/Tools/MenusAndTools"]
|
||||
[node name="ColorToolsContainer" type="HBoxContainer" parent="UI/ToolPanel/Tools/MenusAndTools"]
|
||||
margin_top = 48.0
|
||||
margin_right = 230.0
|
||||
margin_bottom = 68.0
|
||||
|
||||
[node name="RectSelect" type="Button" parent="UI/ToolPanel/Tools/MenusAndTools/SelectionToolsContainer"]
|
||||
[node name="PaintAllPixelsSameColor" type="Button" parent="UI/ToolPanel/Tools/MenusAndTools/ColorToolsContainer"]
|
||||
margin_right = 112.0
|
||||
margin_bottom = 20.0
|
||||
hint_tooltip = "Paint all pixels of the same color
|
||||
A for left mouse button
|
||||
Alt + A for right mouse button"
|
||||
mouse_default_cursor_shape = 2
|
||||
button_mask = 3
|
||||
text = "PaintSameColor"
|
||||
|
||||
[node name="LightenDarken" type="Button" parent="UI/ToolPanel/Tools/MenusAndTools/ColorToolsContainer"]
|
||||
margin_left = 116.0
|
||||
margin_right = 225.0
|
||||
margin_bottom = 20.0
|
||||
hint_tooltip = "U for left mouse button
|
||||
Alt + U for right mouse button
|
||||
Ctrl to Darken"
|
||||
mouse_default_cursor_shape = 2
|
||||
button_mask = 3
|
||||
text = "Lighten/Darken"
|
||||
|
||||
[node name="SelectionToolsContainer2" type="HBoxContainer" parent="UI/ToolPanel/Tools/MenusAndTools"]
|
||||
margin_top = 72.0
|
||||
margin_right = 230.0
|
||||
margin_bottom = 92.0
|
||||
|
||||
[node name="RectSelect" type="Button" parent="UI/ToolPanel/Tools/MenusAndTools/SelectionToolsContainer2"]
|
||||
margin_right = 79.0
|
||||
margin_bottom = 20.0
|
||||
hint_tooltip = "R for left mouse button
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue