diff --git a/src/Autoload/Tools.gd b/src/Autoload/Tools.gd index cdee18e72..9201d7122 100644 --- a/src/Autoload/Tools.gd +++ b/src/Autoload/Tools.gd @@ -156,6 +156,7 @@ func set_button_size(button_size : int) -> void: t.get_node("BackgroundLeft").rect_size.x = 12 t.get_node("BackgroundRight").rect_size.x = 12 t.get_node("BackgroundRight").rect_position = Vector2(24, 24) + _tool_buttons.get_parent().rect_position.x = 9 else: for t in _tool_buttons.get_children(): 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("BackgroundRight").rect_size.x = 16 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 _tool_buttons.get_parent().rect_size = Vector2.ZERO diff --git a/src/Palette/PalettePanel.tscn b/src/Palette/PalettePanel.tscn index a6b52584d..f957fa872 100644 --- a/src/Palette/PalettePanel.tscn +++ b/src/Palette/PalettePanel.tscn @@ -13,6 +13,7 @@ margin_right = 324.0 margin_bottom = 319.0 rect_min_size = Vector2( 300, 0 ) size_flags_horizontal = 4 +size_flags_vertical = 0 script = ExtResource( 8 ) __meta__ = { "_edit_use_anchors_": false diff --git a/src/UI/UI.tscn b/src/UI/UI.tscn index c3fc0dfc2..235e4000c 100644 --- a/src/UI/UI.tscn +++ b/src/UI/UI.tscn @@ -85,7 +85,9 @@ rect_min_size = Vector2( 48, 0 ) size_flags_vertical = 3 [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_vertical = 0 __meta__ = {