From 2f0c7fe9595a81735323017f23e0b3f45aa6ee76 Mon Sep 17 00:00:00 2001 From: Jan Heemstra Date: Tue, 30 Nov 2021 23:05:29 +0100 Subject: [PATCH] Fixed menu width to 250 pixels --- Game/Assets/UI/GUI.tscn | 11 +++++------ Game/Assets/UI/Menu.tscn | 6 ++---- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/Game/Assets/UI/GUI.tscn b/Game/Assets/UI/GUI.tscn index f7ace87..bdef54a 100644 --- a/Game/Assets/UI/GUI.tscn +++ b/Game/Assets/UI/GUI.tscn @@ -28,17 +28,16 @@ __meta__ = { } [node name="Menu" parent="." instance=ExtResource( "2" )] -offset_left = 412.0 +offset_left = 387.0 offset_top = 236.0 -offset_right = 612.0 +offset_right = 637.0 offset_bottom = 364.0 -rect_min_size = Vector2(200, 0) [node name="Play" parent="Menu" instance=ExtResource( "1" )] anchor_right = 0.0 anchor_bottom = 0.0 offset_top = 33.0 -offset_right = 200.0 +offset_right = 250.0 offset_bottom = 62.0 text = "play " @@ -48,7 +47,7 @@ label = "play" anchor_right = 0.0 anchor_bottom = 0.0 offset_top = 66.0 -offset_right = 200.0 +offset_right = 250.0 offset_bottom = 95.0 text = "options" label = "options" @@ -57,7 +56,7 @@ label = "options" anchor_right = 0.0 anchor_bottom = 0.0 offset_top = 99.0 -offset_right = 200.0 +offset_right = 250.0 offset_bottom = 128.0 text = "quit" label = "quit" diff --git a/Game/Assets/UI/Menu.tscn b/Game/Assets/UI/Menu.tscn index b027262..920f7f7 100644 --- a/Game/Assets/UI/Menu.tscn +++ b/Game/Assets/UI/Menu.tscn @@ -9,25 +9,23 @@ offset_left = 475.0 offset_top = 269.0 offset_right = 548.0 offset_bottom = 331.0 +rect_min_size = Vector2(250, 0) script = ExtResource( "1" ) __meta__ = { "_edit_use_anchors_": false } [node name="Back" type="Button" parent="."] -offset_right = 73.0 +offset_right = 250.0 offset_bottom = 29.0 text = "back " -script = null [node name="ClickSound" type="AudioStreamPlayer" parent="Back"] stream = ExtResource( "2_nkrit" ) -script = null [node name="HoverSound" type="AudioStreamPlayer" parent="Back"] stream = ExtResource( "3_qqhse" ) -script = null [connection signal="mouse_entered" from="Back" to="." method="_on_Back_mouse_entered"] [connection signal="pressed" from="Back" to="." method="go_back"]