diff --git a/src/main.tscn b/src/main.tscn index af14ef8..bcc29d3 100644 --- a/src/main.tscn +++ b/src/main.tscn @@ -1,15 +1,11 @@ -[gd_scene load_steps=10 format=3 uid="uid://befxf8uruwnrl"] +[gd_scene load_steps=7 format=3 uid="uid://befxf8uruwnrl"] [ext_resource type="Script" path="res://main.gd" id="1_rqkns"] [ext_resource type="PackedScene" uid="uid://gldtxysavetf" path="res://logic-scenes/startup/startup.tscn" id="1_v5rpm"] [ext_resource type="PackedScene" uid="uid://b3b0gyvklqn50" path="res://base-environments/youth_room/youth_room.tscn" id="2_23ia3"] -[ext_resource type="Theme" uid="uid://b056fn288p8ha" path="res://logic-scenes/themes/easy-handwriting.theme" id="3_8hrj7"] -[ext_resource type="Texture2D" uid="uid://d3ewjumh0b0g6" path="res://logic-scenes/main menu/logo.png" id="4_kslkj"] -[ext_resource type="Script" path="res://logic-scenes/main menu/Main Menu.gd" id="4_vj0j6"] +[ext_resource type="PackedScene" uid="uid://b51wdql4mby47" path="res://main_menu.tscn" id="3_ik73t"] [ext_resource type="PackedScene" uid="uid://6aaxpvoepqrm" path="res://disclaimer.tscn" id="7_t45fc"] -[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_njt06"] - [sub_resource type="GDScript" id="GDScript_8sq0u"] script/source = "extends Label @@ -22,45 +18,7 @@ script = ExtResource("1_rqkns") [node name="youth room" parent="." instance=ExtResource("2_23ia3")] -[node name="Main Menu" type="Panel" parent="."] -anchors_preset = 15 -anchor_right = 1.0 -anchor_bottom = 1.0 -grow_horizontal = 2 -grow_vertical = 2 -theme = ExtResource("3_8hrj7") -theme_override_styles/panel = SubResource("StyleBoxEmpty_njt06") -script = ExtResource("4_vj0j6") - -[node name="TextureRect" type="TextureRect" parent="Main Menu"] -layout_mode = 1 -anchors_preset = 3 -anchor_left = 1.0 -anchor_top = 1.0 -anchor_right = 1.0 -anchor_bottom = 1.0 -offset_left = -553.0 -offset_top = -546.0 -offset_right = 471.0 -offset_bottom = 478.0 -grow_horizontal = 0 -grow_vertical = 0 -scale = Vector2(0.5, 0.5) -texture = ExtResource("4_kslkj") - -[node name="PanelContainer" type="PanelContainer" parent="Main Menu"] -layout_mode = 1 -anchors_preset = 8 -anchor_left = 0.5 -anchor_top = 0.5 -anchor_right = 0.5 -anchor_bottom = 0.5 -grow_horizontal = 2 -grow_vertical = 2 - -[node name="Button" type="Button" parent="Main Menu/PanelContainer"] -layout_mode = 2 -text = "new Game" +[node name="Main Menu" parent="." instance=ExtResource("3_ik73t")] [node name="Label" type="Label" parent="."] offset_right = 40.0 @@ -68,9 +26,9 @@ offset_bottom = 35.0 script = SubResource("GDScript_8sq0u") [node name="Startup Menu" parent="." instance=ExtResource("1_v5rpm")] +visible = false [node name="Disclaimer" parent="." instance=ExtResource("7_t45fc")] +visible = false -[connection signal="pressed" from="Main Menu/PanelContainer/Button" to="youth room" method="start"] -[connection signal="pressed" from="Main Menu/PanelContainer/Button" to="Main Menu" method="hide"] [connection signal="on_read" from="Disclaimer" to="Startup Menu" method="starting"] diff --git a/src/main_menu.tscn b/src/main_menu.tscn new file mode 100644 index 0000000..7e6e3d3 --- /dev/null +++ b/src/main_menu.tscn @@ -0,0 +1,87 @@ +[gd_scene load_steps=5 format=3 uid="uid://b51wdql4mby47"] + +[ext_resource type="Theme" uid="uid://b056fn288p8ha" path="res://logic-scenes/themes/easy-handwriting.theme" id="1_2dg4n"] +[ext_resource type="PackedScene" uid="uid://gmxenhavh1lp" path="res://logic-scenes/main menu/video_settings.tscn" id="3_f0dcd"] +[ext_resource type="Texture2D" uid="uid://d3ewjumh0b0g6" path="res://logic-scenes/main menu/logo.png" id="3_xb2np"] + +[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_njt06"] + +[node name="Main Menu" type="Panel"] +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +theme = ExtResource("1_2dg4n") +theme_override_styles/panel = SubResource("StyleBoxEmpty_njt06") + +[node name="TextureRect" type="TextureRect" 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 = -553.0 +offset_top = -546.0 +offset_right = 471.0 +offset_bottom = 478.0 +grow_horizontal = 0 +grow_vertical = 0 +scale = Vector2(0.5, 0.5) +texture = ExtResource("3_xb2np") + +[node name="PanelContainer" type="VBoxContainer" parent="."] +layout_mode = 1 +offset_left = 67.0 +offset_top = 70.0 +offset_right = 319.0 +offset_bottom = 270.0 + +[node name="new_game" type="Button" parent="PanelContainer"] +layout_mode = 2 +text = "new Game" + +[node name="continue" type="Button" parent="PanelContainer"] +layout_mode = 2 +text = "continue" + +[node name="load" type="Button" parent="PanelContainer"] +layout_mode = 2 +text = "load" + +[node name="settings" type="MenuButton" parent="PanelContainer"] +layout_mode = 2 +text = "Settings" +flat = false +item_count = 3 +popup/item_0/text = "Video" +popup/item_1/text = "Accessibility" +popup/item_1/id = 1 +popup/item_2/text = "Gameplay" +popup/item_2/id = 2 + +[node name="PanelContainer2" type="PanelContainer" parent="."] +layout_mode = 1 +anchors_preset = 8 +anchor_left = 0.5 +anchor_top = 0.5 +anchor_right = 0.5 +anchor_bottom = 0.5 +offset_left = -474.0 +offset_top = -420.0 +offset_right = 295.0 +offset_bottom = 316.0 +grow_horizontal = 2 +grow_vertical = 2 + +[node name="TabContainer" type="TabContainer" parent="PanelContainer2"] +layout_mode = 2 +current_tab = 0 +use_hidden_tabs_for_min_size = true + +[node name="Video Settings" parent="PanelContainer2/TabContainer" instance=ExtResource("3_f0dcd")] +layout_mode = 2 +metadata/_tab_index = 0 + +[connection signal="pressed" from="PanelContainer/new_game" to="." method="hide"]