aboutsummaryrefslogtreecommitdiff
path: root/game/src/MainMenu.tscn
diff options
context:
space:
mode:
author ClarkeCode <33846391+ClarkeCode@users.noreply.github.com>2023-02-08 16:00:53 +0100
committer GitHub <noreply@github.com>2023-02-08 16:00:53 +0100
commit233d8896093cd1fef145c0b8483c50cf6d068721 (patch)
treef72ebd20ff1854ff298270ac3707f3465226520c /game/src/MainMenu.tscn
parent2c0ef462ac500d089ea107f2bc00b0905606d070 (diff)
parentf998d1b539f572a87cea81843e8d76ceb6960b8c (diff)
Merge pull request #5 from ClarkeCode/basic-ui
Exploration of UI and rudimentary scene switching.
Diffstat (limited to 'game/src/MainMenu.tscn')
-rw-r--r--game/src/MainMenu.tscn58
1 files changed, 58 insertions, 0 deletions
diff --git a/game/src/MainMenu.tscn b/game/src/MainMenu.tscn
new file mode 100644
index 0000000..5a2cb8a
--- /dev/null
+++ b/game/src/MainMenu.tscn
@@ -0,0 +1,58 @@
+[gd_scene load_steps=2 format=3 uid="uid://b4pg2y2ivib8f"]
+
+[ext_resource type="Script" path="res://src/MainMenu.gd" id="1_6akq8"]
+
+[node name="MainMenu" type="Control"]
+layout_mode = 3
+anchors_preset = 0
+offset_right = 1152.0
+offset_bottom = 648.0
+script = ExtResource("1_6akq8")
+
+[node name="Label" type="Label" parent="."]
+layout_mode = 0
+offset_top = 137.0
+offset_right = 1152.0
+offset_bottom = 264.0
+theme_override_font_sizes/font_size = 90
+text = "OpenVic2"
+horizontal_alignment = 1
+
+[node name="CenterContainer" type="CenterContainer" parent="."]
+layout_mode = 0
+offset_top = 268.0
+offset_right = 1152.0
+offset_bottom = 648.0
+
+[node name="VBoxContainer" type="VBoxContainer" parent="CenterContainer"]
+layout_mode = 2
+
+[node name="NewGameButton" type="Button" parent="CenterContainer/VBoxContainer" node_paths=PackedStringArray("shortcut_context")]
+layout_mode = 2
+focus_neighbor_top = NodePath("../ExitButton")
+shortcut_context = NodePath("")
+text = "New Game"
+
+[node name="ContinueButton" type="Button" parent="CenterContainer/VBoxContainer"]
+layout_mode = 2
+disabled = true
+text = "Continue"
+
+[node name="MultiPlayerButton" type="Button" parent="CenterContainer/VBoxContainer"]
+layout_mode = 2
+text = "Multi-Player"
+
+[node name="OptionsButton" type="Button" parent="CenterContainer/VBoxContainer"]
+layout_mode = 2
+text = "Options"
+
+[node name="ExitButton" type="Button" parent="CenterContainer/VBoxContainer"]
+layout_mode = 2
+focus_neighbor_bottom = NodePath("../NewGameButton")
+text = "Exit"
+
+[connection signal="pressed" from="CenterContainer/VBoxContainer/NewGameButton" to="." method="_on_new_game_button_pressed"]
+[connection signal="pressed" from="CenterContainer/VBoxContainer/ContinueButton" to="." method="_on_continue_button_pressed"]
+[connection signal="pressed" from="CenterContainer/VBoxContainer/MultiPlayerButton" to="." method="_on_multi_player_button_pressed"]
+[connection signal="pressed" from="CenterContainer/VBoxContainer/OptionsButton" to="." method="_on_options_button_pressed"]
+[connection signal="pressed" from="CenterContainer/VBoxContainer/ExitButton" to="." method="_on_exit_button_pressed"]