diff options
author | Spartan322 <Megacake1234@gmail.com> | 2023-02-10 10:18:46 +0100 |
---|---|---|
committer | Spartan322 <Megacake1234@gmail.com> | 2023-02-10 10:31:28 +0100 |
commit | 3798205c740e7e2faf2594866cb497260012508c (patch) | |
tree | 4ca4a0835cb833fbba1983f0e8de5fa66227b86e /game/src/GameMenu.tscn | |
parent | 6525b89a37a31eaf88182b11410bd46b6658e297 (diff) |
Implement a usable settings UI, should fulfill:
SS-58, SS-61, SS-6, SS-9, SS-10, SS-11, SS-13
UI-11, UI-12, UI-19, UI-44, UI-47, UI-22
Diffstat (limited to 'game/src/GameMenu.tscn')
-rw-r--r-- | game/src/GameMenu.tscn | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/game/src/GameMenu.tscn b/game/src/GameMenu.tscn new file mode 100644 index 0000000..24f1c6c --- /dev/null +++ b/game/src/GameMenu.tscn @@ -0,0 +1,41 @@ +[gd_scene load_steps=5 format=3 uid="uid://b4pg2y2ivib8f"] + +[ext_resource type="Script" path="res://src/GameMenu.gd" id="1_cafwe"] +[ext_resource type="PackedScene" uid="uid://dvoin538iby54" path="res://src/MainMenu.tscn" id="1_y4m2a"] +[ext_resource type="PackedScene" uid="uid://cnbfxjy1m6wja" path="res://src/OptionMenu/OptionsMenu.tscn" id="3_111lv"] +[ext_resource type="PackedScene" uid="uid://b7oncobnacxmt" path="res://src/LocaleButton.tscn" id="4_jno35"] + +[node name="GameMenu" type="Control"] +layout_mode = 3 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +script = ExtResource("1_cafwe") + +[node name="MainMenu" parent="." instance=ExtResource("1_y4m2a")] +layout_mode = 1 + +[node name="OptionsMenu" parent="." instance=ExtResource("3_111lv")] +visible = false +layout_mode = 1 + +[node name="HBox" type="HBoxContainer" parent="."] +layout_mode = 1 +anchors_preset = 3 +anchor_left = 1.0 +anchor_top = 1.0 +anchor_right = 1.0 +anchor_bottom = 1.0 +offset_left = -150.0 +offset_top = -20.0 +grow_horizontal = 0 +grow_vertical = 0 +alignment = 2 + +[node name="LocaleButton" parent="HBox" instance=ExtResource("4_jno35")] +layout_mode = 2 + +[connection signal="options_button_pressed" from="MainMenu" to="." method="_on_main_menu_options_button_pressed"] +[connection signal="back_button_pressed" from="OptionsMenu" to="." method="_on_options_menu_back_button_pressed"] |