diff options
| author | Sophia Pearson <codergal89@gmail.com> | 2022-10-04 16:15:28 +0200 |
|---|---|---|
| committer | Sophia Pearson <codergal89@gmail.com> | 2022-10-04 22:18:24 +0200 |
| commit | 7635be3a0d92ec2746145ec8c31d53ec246d4914 (patch) | |
| tree | 7f5bcf702d81ab5326980245d67e614171ab64fa /Scenes | |
| parent | 6248648eff7dda1088bb196ee4f3fce3b5fc260a (diff) | |
| download | texty-7635be3a0d92ec2746145ec8c31d53ec246d4914.tar.xz texty-7635be3a0d92ec2746145ec8c31d53ec246d4914.zip | |
menus: fix main menu sizing
Diffstat (limited to 'Scenes')
| -rw-r--r-- | Scenes/Menus/MainMenu.tscn | 16 | ||||
| -rw-r--r-- | Scenes/Menus/MainMenuButtons.tscn | 31 |
2 files changed, 30 insertions, 17 deletions
diff --git a/Scenes/Menus/MainMenu.tscn b/Scenes/Menus/MainMenu.tscn index 5cb37c1..a262cbd 100644 --- a/Scenes/Menus/MainMenu.tscn +++ b/Scenes/Menus/MainMenu.tscn @@ -15,36 +15,44 @@ grow_vertical = 2 Title = "TITLE_MAIN_MENU" [node name="ScreenContainer" parent="MenuScreen" index="0"] +layout_mode = 1 anchors_preset = 15 grow_horizontal = 2 grow_vertical = 2 [node name="TopBar" parent="MenuScreen/ScreenContainer" index="0"] +layout_mode = 2 offset_right = 1152.0 -offset_bottom = 17.0 +offset_bottom = 25.0 theme_type_variation = &"InvertedPanelContainer" [node name="TitleArea" parent="MenuScreen/ScreenContainer/TopBar" index="0"] +layout_mode = 2 offset_right = 1144.0 -offset_bottom = 17.0 +offset_bottom = 25.0 Title = "[center]TITLE_MAIN_MENU[/center]" [node name="Content" parent="MenuScreen/ScreenContainer" index="1"] -offset_top = 21.0 +layout_mode = 2 +offset_top = 29.0 offset_right = 1152.0 offset_bottom = 644.0 [node name="Buttons" parent="MenuScreen/ScreenContainer/Content" index="0" instance=ExtResource("2")] +layout_mode = 2 anchors_preset = 0 +anchor_top = 0.0 anchor_right = 0.0 anchor_bottom = 0.0 offset_left = 8.0 +offset_top = 0.0 offset_right = 1144.0 -offset_bottom = 623.0 +offset_bottom = 615.0 grow_horizontal = 1 grow_vertical = 1 [node name="BottomBar" parent="MenuScreen/ScreenContainer" index="2"] +layout_mode = 2 offset_top = 648.0 offset_right = 1152.0 offset_bottom = 648.0 diff --git a/Scenes/Menus/MainMenuButtons.tscn b/Scenes/Menus/MainMenuButtons.tscn index 9759861..e2652b4 100644 --- a/Scenes/Menus/MainMenuButtons.tscn +++ b/Scenes/Menus/MainMenuButtons.tscn @@ -4,34 +4,39 @@ [ext_resource type="Script" path="res://Scripts/Menus/MainMenuButtons.cs" id="2"] [node name="MainMenuButtons" instance=ExtResource("1")] -anchors_preset = 15 +anchors_preset = 14 +anchor_top = 0.5 +anchor_bottom = 0.5 +offset_top = -41.5 +offset_bottom = 41.5 grow_horizontal = 2 grow_vertical = 2 +theme_override_constants/margin_left = 400 +theme_override_constants/margin_right = 400 script = ExtResource("2") [node name="Buttons" parent="." index="0"] layout_mode = 2 -offset_left = 0.0 -offset_right = 1152.0 -offset_bottom = 648.0 +offset_left = 400.0 +offset_right = 752.0 +offset_bottom = 83.0 [node name="StartButton" type="Button" parent="Buttons" index="0"] layout_mode = 2 -offset_top = 282.0 -offset_right = 1152.0 -offset_bottom = 307.0 +offset_right = 352.0 +offset_bottom = 25.0 text = "BUTTON_START_GAME" [node name="CreditsButton" type="Button" parent="Buttons" index="1"] layout_mode = 2 -offset_top = 311.0 -offset_right = 1152.0 -offset_bottom = 336.0 +offset_top = 29.0 +offset_right = 352.0 +offset_bottom = 54.0 text = "BUTTON_CREDITS" [node name="QuitButton" type="Button" parent="Buttons" index="2"] layout_mode = 2 -offset_top = 340.0 -offset_right = 1152.0 -offset_bottom = 365.0 +offset_top = 58.0 +offset_right = 352.0 +offset_bottom = 83.0 text = "BUTTON_QUIT_GAME" |
