aboutsummaryrefslogtreecommitdiff
path: root/game/src/MainMenu.tscn
diff options
context:
space:
mode:
author George L. Albany <Megacake1234@gmail.com>2023-02-21 08:49:46 +0100
committer GitHub <noreply@github.com>2023-02-21 08:49:46 +0100
commitfb9e316a18139ea6b6ffe3b237796b42d7114738 (patch)
tree7eb315989e19d1e8eabea955330e3a2e5469c876 /game/src/MainMenu.tscn
parent0b3f9cb21cfa86e98649066ff7d260b4f9022023 (diff)
Add stylized theme to MainMenu (#12)
* Add stylized theme to MainMenu Increase message queue memory size by 4 Add default_theme.theme Refactor SampleGame.gd to better account for refactoring via @export nodes Properly aligne SampleGame scene Reorganize MainMenu into its own directory Add main_menu_border_paper.png Add main_menu_button.png * Add background image to theme Implement StyleBoxCombinedTexture Allows drawing an array of textures all at once Make MainMenu Panel a PanelContainer for consistency * Implement MainMenu button press, hover, and focus styles Improve MainMenu button disabled style * Add Godot's latest documentation to the README.md
Diffstat (limited to 'game/src/MainMenu.tscn')
-rw-r--r--game/src/MainMenu.tscn66
1 files changed, 0 insertions, 66 deletions
diff --git a/game/src/MainMenu.tscn b/game/src/MainMenu.tscn
deleted file mode 100644
index 587eb01..0000000
--- a/game/src/MainMenu.tscn
+++ /dev/null
@@ -1,66 +0,0 @@
-[gd_scene load_steps=2 format=3 uid="uid://dvoin538iby54"]
-
-[ext_resource type="Script" path="res://src/MainMenu.gd" id="1_6akq8"]
-
-[node name="MainMenu" 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_6akq8")
-
-[node name="VBox" type="VBoxContainer" parent="."]
-layout_mode = 1
-anchors_preset = 15
-anchor_right = 1.0
-anchor_bottom = 1.0
-grow_horizontal = 2
-grow_vertical = 2
-
-[node name="TitleLabel" type="Label" parent="VBox"]
-layout_mode = 2
-size_flags_vertical = 6
-size_flags_stretch_ratio = 1.5
-theme_override_font_sizes/font_size = 90
-text = "OpenVic2"
-horizontal_alignment = 1
-vertical_alignment = 1
-
-[node name="Center" type="CenterContainer" parent="VBox"]
-layout_mode = 2
-size_flags_vertical = 2
-
-[node name="VBox" type="VBoxContainer" parent="VBox/Center"]
-layout_mode = 2
-
-[node name="NewGameButton" type="Button" parent="VBox/Center/VBox" 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="VBox/Center/VBox"]
-layout_mode = 2
-disabled = true
-text = "Continue"
-
-[node name="MultiplayerButton" type="Button" parent="VBox/Center/VBox"]
-layout_mode = 2
-text = "Multipayer"
-
-[node name="OptionsButton" type="Button" parent="VBox/Center/VBox"]
-layout_mode = 2
-text = "Options"
-
-[node name="ExitButton" type="Button" parent="VBox/Center/VBox"]
-layout_mode = 2
-focus_neighbor_bottom = NodePath("../NewGameButton")
-text = "Exit"
-
-[connection signal="pressed" from="VBox/Center/VBox/NewGameButton" to="." method="_on_new_game_button_pressed"]
-[connection signal="pressed" from="VBox/Center/VBox/ContinueButton" to="." method="_on_continue_button_pressed"]
-[connection signal="pressed" from="VBox/Center/VBox/MultiplayerButton" to="." method="_on_multi_player_button_pressed"]
-[connection signal="pressed" from="VBox/Center/VBox/OptionsButton" to="." method="_on_options_button_pressed"]
-[connection signal="pressed" from="VBox/Center/VBox/ExitButton" to="." method="_on_exit_button_pressed"]