cirnogodot/Scenes/MainMenu.tscn
2025-03-17 13:10:14 +01:00

224 lines
9.6 KiB
Text

[gd_scene load_steps=23 format=3 uid="uid://5xajclchk3my"]
[ext_resource type="Script" uid="uid://dql102fvubniv" path="res://Scripts/MainMenu.cs" id="1_702nk"]
[ext_resource type="PackedScene" uid="uid://c84shrj84g4t2" path="res://Scenes/HUD/MusicRoom.tscn" id="2_if7li"]
[ext_resource type="Texture2D" uid="uid://xvadkvwajs0t" path="res://Sprites/UI/Crystal.png" id="2_j4e6a"]
[ext_resource type="Texture2D" uid="uid://by38ufb51f6rx" path="res://Sprites/UI/TitleBackground.png" id="2_qdx0s"]
[ext_resource type="FontFile" uid="uid://ccm3u37q1hvux" path="res://fonts/Xolonium-Regular.ttf" id="3_bl0se"]
[ext_resource type="PackedScene" uid="uid://cmdf7cbqbxedj" path="res://Scenes/HUD/CreditsMenu.tscn" id="4_8e205"]
[ext_resource type="AudioStream" uid="uid://di416g5wgx6j0" path="res://Music/Title.mp3" id="4_i6ku4"]
[ext_resource type="Theme" uid="uid://dnsadvmunm76k" path="res://Resources/Styles/MainMenuButtons.tres" id="4_nk7wn"]
[ext_resource type="PackedScene" uid="uid://bnhcgsyh6wfo3" path="res://Scenes/HUD/OptionsMenu.tscn" id="5_7467j"]
[ext_resource type="LabelSettings" uid="uid://wr7cb2qa6w71" path="res://Resources/Styles/Title_Text_Style.tres" id="7_loo7a"]
[ext_resource type="StyleBox" uid="uid://ctw2hju32l3rg" path="res://Resources/Styles/PixelStyleBoxRed.tres" id="7_rrcx7"]
[ext_resource type="PackedScene" uid="uid://b3tyacxxw88lx" path="res://Scenes/Utils/StreamPlayerWithName.tscn" id="8_koqhg"]
[ext_resource type="PackedScene" uid="uid://bmj8t4pou6608" path="res://Scenes/HUD/TitleCrystal.tscn" id="8_riqfo"]
[ext_resource type="PackedScene" uid="uid://bemu3l6b1e84y" path="res://Scenes/HUD/debug_menu.tscn" id="9_nwlsr"]
[ext_resource type="Texture2D" uid="uid://p242xo3qxwve" path="res://Sprites/UI/Crystal3.png" id="9_riqfo"]
[ext_resource type="Texture2D" uid="uid://cywk6rtvwc62p" path="res://Sprites/UI/NewTitle.png" id="12_7v4os"]
[ext_resource type="Texture2D" uid="uid://cv1fmski5dvhk" path="res://Sprites/Briefing/Intro/robot pov/l1_robot pov1.png" id="12_7467j"]
[ext_resource type="Resource" uid="uid://byo74ews118nl" path="res://Resources/Music/No_Reason.tres" id="13_fh7cp"]
[ext_resource type="FontFile" uid="uid://cyk27h5aox1n7" path="res://fonts/sector_034.ttf" id="14_yxkem"]
[sub_resource type="AtlasTexture" id="AtlasTexture_w08op"]
atlas = ExtResource("9_riqfo")
region = Rect2(800, 0, 32, 16)
[sub_resource type="Theme" id="Theme_c7h4d"]
[sub_resource type="LabelSettings" id="LabelSettings_htmja"]
line_spacing = 2.0
font = ExtResource("14_yxkem")
font_size = 7
outline_size = 4
outline_color = Color(0, 0, 0, 1)
[node name="MainMenu" type="CanvasLayer" node_paths=PackedStringArray("SubMenuHolder", "DefaultSelectedButton", "MusicPlayer")]
script = ExtResource("1_702nk")
GameScene = "res://Scenes/Maps/Tutorial.tscn"
MainMenuScene = "res://Scenes/MainMenu.tscn"
SubMenuHolder = NodePath("SubMenuContainer")
DefaultSelectedButton = NodePath("MarginContainer/GridContainer/GameButtons/StartButton")
MusicPlayer = NodePath("AudioStreamPlayer2D")
MusicRoomTemplate = ExtResource("2_if7li")
DebugMenuTemplate = ExtResource("9_nwlsr")
CreditsMenuTemplate = ExtResource("4_8e205")
OptionsMenuTemplate = ExtResource("5_7467j")
[node name="TextureRect2" type="TextureRect" parent="."]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
texture = ExtResource("2_qdx0s")
[node name="TextureRect" type="TextureRect" parent="."]
visible = false
offset_left = 122.315
offset_top = 21.375
offset_right = 170.315
offset_bottom = 61.375
texture = ExtResource("2_j4e6a")
[node name="TitleCrystal" parent="." instance=ExtResource("8_riqfo")]
offset_left = 154.42
offset_top = 40.995
offset_right = 186.42
offset_bottom = 56.995
rotation = 3.14159
texture = SubResource("AtlasTexture_w08op")
[node name="MarginContainer" type="MarginContainer" parent="."]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = 16.0
offset_right = -13.0
grow_horizontal = 2
grow_vertical = 2
[node name="GridContainer" type="GridContainer" parent="MarginContainer"]
layout_mode = 2
columns = 3
[node name="GameButtons" type="VBoxContainer" parent="MarginContainer/GridContainer"]
layout_mode = 2
size_flags_vertical = 6
[node name="StartButton" type="Button" parent="MarginContainer/GridContainer/GameButtons"]
layout_mode = 2
focus_neighbor_left = NodePath("../../Options/OptionsButton")
focus_neighbor_top = NodePath("../ExitButton")
focus_neighbor_right = NodePath("../../Options/OptionsButton")
focus_neighbor_bottom = NodePath("../ContinueButton")
focus_next = NodePath("../ContinueButton")
focus_previous = NodePath("../ExitButton")
theme = ExtResource("4_nk7wn")
text = "New
Game"
[node name="ContinueButton" type="Button" parent="MarginContainer/GridContainer/GameButtons"]
layout_mode = 2
focus_neighbor_left = NodePath("../../Options/MusicRoomButton")
focus_neighbor_top = NodePath("../StartButton")
focus_neighbor_right = NodePath("../../Options/MusicRoomButton")
focus_neighbor_bottom = NodePath("../DebugButton")
focus_next = NodePath("../DebugButton")
focus_previous = NodePath("../StartButton")
theme = ExtResource("4_nk7wn")
theme_override_styles/normal = ExtResource("7_rrcx7")
text = "Continue"
[node name="DebugButton" type="Button" parent="MarginContainer/GridContainer/GameButtons"]
layout_mode = 2
focus_neighbor_left = NodePath("../../Options/CreditsButton")
focus_neighbor_top = NodePath("../ContinueButton")
focus_neighbor_right = NodePath("../../Options/CreditsButton")
focus_neighbor_bottom = NodePath("../ExitButton")
theme = ExtResource("4_nk7wn")
text = "Debug"
[node name="ExitButton" type="Button" parent="MarginContainer/GridContainer/GameButtons"]
layout_mode = 2
focus_neighbor_left = NodePath("../../Options/CreditsButton")
focus_neighbor_top = NodePath("../DebugButton")
focus_neighbor_right = NodePath("../../Options/CreditsButton")
focus_neighbor_bottom = NodePath("../StartButton")
theme = ExtResource("4_nk7wn")
text = "Exit
"
[node name="Title" type="HBoxContainer" parent="MarginContainer/GridContainer"]
layout_mode = 2
size_flags_horizontal = 3
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/GridContainer/Title"]
layout_mode = 2
size_flags_horizontal = 3
theme_override_constants/separation = -9
[node name="TextureRect2" type="TextureRect" parent="MarginContainer/GridContainer/Title/VBoxContainer"]
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 0
texture = ExtResource("12_7v4os")
stretch_mode = 2
[node name="Title" type="Label" parent="MarginContainer/GridContainer/Title/VBoxContainer"]
visible = false
layout_mode = 2
theme = SubResource("Theme_c7h4d")
theme_override_fonts/font = ExtResource("3_bl0se")
theme_override_font_sizes/font_size = 28
text = "CIRNO"
label_settings = ExtResource("7_loo7a")
horizontal_alignment = 1
[node name="SubTitle" type="Label" parent="MarginContainer/GridContainer/Title/VBoxContainer"]
visible = false
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 0
text = "NO REASON"
label_settings = SubResource("LabelSettings_htmja")
horizontal_alignment = 1
[node name="TextureRect" type="TextureRect" parent="MarginContainer/GridContainer/Title/VBoxContainer"]
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 10
texture = ExtResource("12_7467j")
stretch_mode = 2
[node name="Options" type="VBoxContainer" parent="MarginContainer/GridContainer"]
layout_mode = 2
size_flags_vertical = 6
[node name="OptionsButton" type="Button" parent="MarginContainer/GridContainer/Options"]
layout_mode = 2
focus_neighbor_left = NodePath("../../GameButtons/StartButton")
focus_neighbor_top = NodePath("../CreditsButton")
focus_neighbor_right = NodePath("../../GameButtons/StartButton")
focus_neighbor_bottom = NodePath("../MusicRoomButton")
theme = ExtResource("4_nk7wn")
text = "Options"
[node name="MusicRoomButton" type="Button" parent="MarginContainer/GridContainer/Options"]
layout_mode = 2
focus_neighbor_left = NodePath("../../GameButtons/ContinueButton")
focus_neighbor_top = NodePath("../OptionsButton")
focus_neighbor_right = NodePath("../../GameButtons/ContinueButton")
focus_neighbor_bottom = NodePath("../CreditsButton")
theme = ExtResource("4_nk7wn")
text = "Music
Room"
[node name="CreditsButton" type="Button" parent="MarginContainer/GridContainer/Options"]
layout_mode = 2
focus_neighbor_right = NodePath("../../GameButtons/DebugButton")
theme = ExtResource("4_nk7wn")
text = "Credits"
[node name="AudioStreamPlayer2D" parent="." instance=ExtResource("8_koqhg")]
stream = ExtResource("4_i6ku4")
autoplay = true
bus = &"Music"
MusicData = ExtResource("13_fh7cp")
[node name="SubMenuContainer" type="PanelContainer" parent="."]
visible = false
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_styles/panel = ExtResource("7_rrcx7")
[connection signal="pressed" from="MarginContainer/GridContainer/GameButtons/StartButton" to="." method="_on_start_button_pressed"]
[connection signal="pressed" from="MarginContainer/GridContainer/GameButtons/ContinueButton" to="." method="_on_debug_button_pressed"]
[connection signal="pressed" from="MarginContainer/GridContainer/GameButtons/DebugButton" to="." method="_on_debug_button_pressed"]
[connection signal="pressed" from="MarginContainer/GridContainer/GameButtons/ExitButton" to="." method="_on_exit_button_pressed"]
[connection signal="pressed" from="MarginContainer/GridContainer/Options/OptionsButton" to="." method="OnOptionsButtonPressed"]
[connection signal="pressed" from="MarginContainer/GridContainer/Options/MusicRoomButton" to="." method="_on_music_room_button_pressed"]
[connection signal="pressed" from="MarginContainer/GridContainer/Options/CreditsButton" to="." method="OnCreditsButtonPressed"]