From eb87e2af53bd693e04739aaee84fde408e72f3a9 Mon Sep 17 00:00:00 2001 From: Hop311 Date: Wed, 22 Mar 2023 16:56:24 +0000 Subject: Basic Game Session skeleton (#67) * Fixed grab_focus error on not is_inside_tree * Moved SampleGame to GameSession/GameSession * Basic GameSession and GameSessionMenu/Escape Menu * Map Control Panel skeleton * Added requirement comments * Removed unnecessary CenterContainer --- game/src/SampleGame.tscn | 71 ------------------------------------------------ 1 file changed, 71 deletions(-) delete mode 100644 game/src/SampleGame.tscn (limited to 'game/src/SampleGame.tscn') diff --git a/game/src/SampleGame.tscn b/game/src/SampleGame.tscn deleted file mode 100644 index 92603b9..0000000 --- a/game/src/SampleGame.tscn +++ /dev/null @@ -1,71 +0,0 @@ -[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_paths=PackedStringArray("_province_num_display", "_province_size_display")] -layout_mode = 3 -anchors_preset = 15 -anchor_right = 1.0 -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 = 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 - -[node name="GridContainer" type="GridContainer" parent="CenterContainer/VBoxContainer2"] -layout_mode = 2 -columns = 2 - -[node name="ProvenceLabel" type="Label" parent="CenterContainer/VBoxContainer2/GridContainer"] -layout_mode = 2 -text = "Viewing Province #:" -horizontal_alignment = 2 - -[node name="ProvinceNumDisplay" type="Label" parent="CenterContainer/VBoxContainer2/GridContainer"] -layout_mode = 2 - -[node name="ProvinceSizeLabel" type="Label" parent="CenterContainer/VBoxContainer2/GridContainer"] -layout_mode = 2 -text = "Province Size:" -horizontal_alignment = 2 - -[node name="ProvinceSizeDisplay" type="Label" parent="CenterContainer/VBoxContainer2/GridContainer"] -layout_mode = 2 - -[node name="VBoxContainer" type="VBoxContainer" parent="CenterContainer/VBoxContainer2"] -layout_mode = 2 - -[node name="PassTimeButton" type="Button" parent="CenterContainer/VBoxContainer2/VBoxContainer"] -layout_mode = 2 -text = "Pass Time" - -[node name="NextProvButton" type="Button" parent="CenterContainer/VBoxContainer2/VBoxContainer"] -layout_mode = 2 -text = "View Next Province" - -[node name="PrevProvButton" type="Button" parent="CenterContainer/VBoxContainer2/VBoxContainer"] -layout_mode = 2 -text = "View Previous Province" - -[node name="ToMainMenu" type="Button" parent="CenterContainer/VBoxContainer2/VBoxContainer"] -layout_mode = 2 -text = "Exit to Main Menu" - -[connection signal="pressed" from="CenterContainer/VBoxContainer2/VBoxContainer/PassTimeButton" to="." method="_on_pass_time_button_pressed"] -[connection signal="pressed" from="CenterContainer/VBoxContainer2/VBoxContainer/NextProvButton" to="." method="_on_next_prov_button_pressed"] -[connection signal="pressed" from="CenterContainer/VBoxContainer2/VBoxContainer/PrevProvButton" to="." method="_on_prev_prov_button_pressed"] -[connection signal="pressed" from="CenterContainer/VBoxContainer2/VBoxContainer/ToMainMenu" to="." method="_on_to_main_menu_pressed"] -- cgit v1.2.3-56-ga3b1