aboutsummaryrefslogtreecommitdiff
path: root/game/src/GameMenu.tscn
diff options
context:
space:
mode:
author George L. Albany <Megacake1234@gmail.com>2023-02-12 16:09:17 +0100
committer GitHub <noreply@github.com>2023-02-12 16:09:17 +0100
commitc0d8a4ac3723021c95da9674c3bc0eea511ee3a0 (patch)
tree4ca4a0835cb833fbba1983f0e8de5fa66227b86e /game/src/GameMenu.tscn
parent537938683b748dbf5fcd78276aa823f168f715f1 (diff)
parent3798205c740e7e2faf2594866cb497260012508c (diff)
Merge pull request #7 from Spartan322/feature/usable-ui
Diffstat (limited to 'game/src/GameMenu.tscn')
-rw-r--r--game/src/GameMenu.tscn41
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"]