aboutsummaryrefslogtreecommitdiff
path: root/game/src/SampleGame.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/SampleGame.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/SampleGame.tscn')
-rw-r--r--game/src/SampleGame.tscn17
1 files changed, 12 insertions, 5 deletions
diff --git a/game/src/SampleGame.tscn b/game/src/SampleGame.tscn
index 8221857..92603b9 100644
--- a/game/src/SampleGame.tscn
+++ b/game/src/SampleGame.tscn
@@ -1,8 +1,9 @@
-[gd_scene load_steps=2 format=3 uid="uid://bgnupcshe1m7r"]
+[gd_scene load_steps=3 format=3 uid="uid://bgnupcshe1m7r"]
[ext_resource type="Script" path="res://src/SampleGame.gd" id="1_eklvp"]
+[ext_resource type="PackedScene" uid="uid://b4pg2y2ivib8f" path="res://src/GameMenu.tscn" id="2_r7wq5"]
-[node name="SampleGame" type="Control"]
+[node name="SampleGame" type="Control" node_paths=PackedStringArray("_province_num_display", "_province_size_display")]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
@@ -10,11 +11,17 @@ anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_eklvp")
+_province_num_display = NodePath("CenterContainer/VBoxContainer2/GridContainer/ProvinceNumDisplay")
+_province_size_display = NodePath("CenterContainer/VBoxContainer2/GridContainer/ProvinceSizeDisplay")
+_main_menu_scene = ExtResource("2_r7wq5")
[node name="CenterContainer" type="CenterContainer" parent="."]
-layout_mode = 0
-offset_right = 1152.0
-offset_bottom = 648.0
+layout_mode = 1
+anchors_preset = 15
+anchor_right = 1.0
+anchor_bottom = 1.0
+grow_horizontal = 2
+grow_vertical = 2
[node name="VBoxContainer2" type="VBoxContainer" parent="CenterContainer"]
layout_mode = 2