mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-19 01:29:49 +00:00
Minor UI changes
This commit is contained in:
parent
79b37a95b3
commit
18592ed7c0
|
@ -156,6 +156,7 @@ func set_button_size(button_size : int) -> void:
|
||||||
t.get_node("BackgroundLeft").rect_size.x = 12
|
t.get_node("BackgroundLeft").rect_size.x = 12
|
||||||
t.get_node("BackgroundRight").rect_size.x = 12
|
t.get_node("BackgroundRight").rect_size.x = 12
|
||||||
t.get_node("BackgroundRight").rect_position = Vector2(24, 24)
|
t.get_node("BackgroundRight").rect_position = Vector2(24, 24)
|
||||||
|
_tool_buttons.get_parent().rect_position.x = 9
|
||||||
else:
|
else:
|
||||||
for t in _tool_buttons.get_children():
|
for t in _tool_buttons.get_children():
|
||||||
t.rect_min_size = Vector2(32, 32)
|
t.rect_min_size = Vector2(32, 32)
|
||||||
|
@ -163,6 +164,7 @@ func set_button_size(button_size : int) -> void:
|
||||||
t.get_node("BackgroundLeft").rect_size.x = 16
|
t.get_node("BackgroundLeft").rect_size.x = 16
|
||||||
t.get_node("BackgroundRight").rect_size.x = 16
|
t.get_node("BackgroundRight").rect_size.x = 16
|
||||||
t.get_node("BackgroundRight").rect_position = Vector2(32, 32)
|
t.get_node("BackgroundRight").rect_position = Vector2(32, 32)
|
||||||
|
_tool_buttons.get_parent().rect_position.x = 6
|
||||||
|
|
||||||
# It doesn't actually set the size to zero, it just resets it
|
# It doesn't actually set the size to zero, it just resets it
|
||||||
_tool_buttons.get_parent().rect_size = Vector2.ZERO
|
_tool_buttons.get_parent().rect_size = Vector2.ZERO
|
||||||
|
|
|
@ -13,6 +13,7 @@ margin_right = 324.0
|
||||||
margin_bottom = 319.0
|
margin_bottom = 319.0
|
||||||
rect_min_size = Vector2( 300, 0 )
|
rect_min_size = Vector2( 300, 0 )
|
||||||
size_flags_horizontal = 4
|
size_flags_horizontal = 4
|
||||||
|
size_flags_vertical = 0
|
||||||
script = ExtResource( 8 )
|
script = ExtResource( 8 )
|
||||||
__meta__ = {
|
__meta__ = {
|
||||||
"_edit_use_anchors_": false
|
"_edit_use_anchors_": false
|
||||||
|
|
|
@ -85,7 +85,9 @@ rect_min_size = Vector2( 48, 0 )
|
||||||
size_flags_vertical = 3
|
size_flags_vertical = 3
|
||||||
|
|
||||||
[node name="PanelContainer" type="PanelContainer" parent="ToolsAndCanvas/ToolPanel"]
|
[node name="PanelContainer" type="PanelContainer" parent="ToolsAndCanvas/ToolPanel"]
|
||||||
margin_left = 6.0
|
margin_left = 9.0
|
||||||
|
margin_right = 47.0
|
||||||
|
margin_bottom = 486.0
|
||||||
size_flags_horizontal = 0
|
size_flags_horizontal = 0
|
||||||
size_flags_vertical = 0
|
size_flags_vertical = 0
|
||||||
__meta__ = {
|
__meta__ = {
|
||||||
|
|
Loading…
Reference in a new issue