Files
kurovadis/menus/new_game_menu.tscn
T
2025-06-22 23:22:32 -06:00

511 lines
18 KiB
Plaintext
Executable File

[gd_scene load_steps=13 format=3 uid="uid://cddg48xuodm4s"]
[ext_resource type="Theme" uid="uid://d01fm68pwgnvc" path="res://ui/default_theme.tres" id="1_g6v0u"]
[ext_resource type="Script" uid="uid://nbqru7pv7cxc" path="res://menus/new_game_menu.gd" id="2_ysy8u"]
[ext_resource type="PackedScene" uid="uid://bqlbo0yh111fw" path="res://objects/ui/sound_button.tscn" id="3_4w7h3"]
[ext_resource type="Texture2D" uid="uid://beomt8bs2wra2" path="res://ui/empty_ico.png" id="3_cjw05"]
[ext_resource type="AudioStream" uid="uid://3p3r68ntjf4u" path="res://sounds/ui/menu_click.wav" id="4_cgk43"]
[ext_resource type="Texture2D" uid="uid://kwsk0b5ff8k1" path="res://ui/fire_ico.png" id="4_eltv3"]
[ext_resource type="Texture2D" uid="uid://dh8ike5vblov0" path="res://ui/ice_ico.png" id="5_5ypbk"]
[ext_resource type="AudioStream" uid="uid://cs58kp03yj1kf" path="res://sounds/ui/menu_confirm.wav" id="5_sr5rb"]
[ext_resource type="Texture2D" uid="uid://v0wt3up1lrkm" path="res://ui/laser_ico.png" id="6_vchad"]
[ext_resource type="Texture2D" uid="uid://pk0b46lb6tmo" path="res://ui/cryo_image.tres" id="8_d3r81"]
[ext_resource type="Script" uid="uid://h6prwf5a5wwr" path="res://objects/ui/sound_button.gd" id="11_qvsy4"]
[sub_resource type="StyleBoxLine" id="StyleBoxLine_3e3iv"]
color = Color(1, 1, 1, 1)
[node name="NewGameMenu" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme = ExtResource("1_g6v0u")
script = ExtResource("2_ysy8u")
[node name="Label" type="Label" parent="."]
layout_mode = 1
anchors_preset = 5
anchor_left = 0.5
anchor_right = 0.5
offset_left = -39.0
offset_top = 18.0
offset_right = 46.0
offset_bottom = 41.0
grow_horizontal = 2
text = "New Game"
[node name="HBoxContainer" type="HBoxContainer" 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 = -150.0
offset_top = -61.0
offset_right = 150.0
offset_bottom = 61.0
grow_horizontal = 2
grow_vertical = 2
theme_override_constants/separation = 7
alignment = 1
[node name="Btn_Slot1" parent="HBoxContainer" instance=ExtResource("3_4w7h3")]
layout_mode = 2
size_flags_horizontal = 3
focus_neighbor_left = NodePath("../Btn_Slot3")
focus_neighbor_right = NodePath("../Btn_Slot2")
theme_type_variation = &"SaveSlotButton"
FocusSound = ExtResource("4_cgk43")
PressSound = ExtResource("5_sr5rb")
[node name="VBoxContainer" type="VBoxContainer" parent="HBoxContainer/Btn_Slot1"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_constants/separation = 1
[node name="SlotLabel" type="Label" parent="HBoxContainer/Btn_Slot1/VBoxContainer"]
layout_mode = 2
text = "Slot 1"
horizontal_alignment = 1
[node name="Lab_Playtime" type="Label" parent="HBoxContainer/Btn_Slot1/VBoxContainer"]
layout_mode = 2
theme_type_variation = &"SaveSlotBodyLabel"
text = "Empty"
horizontal_alignment = 1
[node name="SlotImage" type="TextureRect" parent="HBoxContainer/Btn_Slot1/VBoxContainer"]
custom_minimum_size = Vector2(42, 42)
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 4
texture = ExtResource("8_d3r81")
stretch_mode = 3
[node name="Box_Abilities" type="HBoxContainer" parent="HBoxContainer/Btn_Slot1/VBoxContainer"]
visible = false
layout_mode = 2
theme_override_constants/separation = 1
alignment = 1
[node name="Tex_Blast" type="TextureRect" parent="HBoxContainer/Btn_Slot1/VBoxContainer/Box_Abilities"]
layout_mode = 2
size_flags_horizontal = 0
size_flags_vertical = 4
texture = ExtResource("3_cjw05")
[node name="Tex_Fire" type="TextureRect" parent="HBoxContainer/Btn_Slot1/VBoxContainer/Box_Abilities"]
layout_mode = 2
size_flags_horizontal = 0
size_flags_vertical = 4
texture = ExtResource("4_eltv3")
[node name="Tex_Ice" type="TextureRect" parent="HBoxContainer/Btn_Slot1/VBoxContainer/Box_Abilities"]
layout_mode = 2
size_flags_horizontal = 0
size_flags_vertical = 4
texture = ExtResource("5_5ypbk")
[node name="Tex_Laser" type="TextureRect" parent="HBoxContainer/Btn_Slot1/VBoxContainer/Box_Abilities"]
layout_mode = 2
size_flags_horizontal = 0
size_flags_vertical = 4
texture = ExtResource("6_vchad")
[node name="Grid_Stats" type="GridContainer" parent="HBoxContainer/Btn_Slot1/VBoxContainer"]
visible = false
layout_mode = 2
columns = 4
[node name="Lab_Atk" type="Label" parent="HBoxContainer/Btn_Slot1/VBoxContainer/Grid_Stats"]
layout_mode = 2
size_flags_horizontal = 3
theme_type_variation = &"SaveSlotBodyLabel"
text = "Atk"
[node name="Lab_AtkValue" type="Label" parent="HBoxContainer/Btn_Slot1/VBoxContainer/Grid_Stats"]
layout_mode = 2
size_flags_horizontal = 3
theme_type_variation = &"SaveSlotBodyLabel"
text = "1"
[node name="Lab_Def" type="Label" parent="HBoxContainer/Btn_Slot1/VBoxContainer/Grid_Stats"]
layout_mode = 2
size_flags_horizontal = 3
theme_type_variation = &"SaveSlotBodyLabel"
text = "Def"
[node name="Lab_DefValue" type="Label" parent="HBoxContainer/Btn_Slot1/VBoxContainer/Grid_Stats"]
layout_mode = 2
size_flags_horizontal = 3
theme_type_variation = &"SaveSlotBodyLabel"
text = "1"
[node name="Lab_Con" type="Label" parent="HBoxContainer/Btn_Slot1/VBoxContainer/Grid_Stats"]
layout_mode = 2
size_flags_horizontal = 3
theme_type_variation = &"SaveSlotBodyLabel"
text = "Con"
[node name="Lab_ConValue" type="Label" parent="HBoxContainer/Btn_Slot1/VBoxContainer/Grid_Stats"]
layout_mode = 2
size_flags_horizontal = 3
theme_type_variation = &"SaveSlotBodyLabel"
text = "1"
[node name="Lab_Chg" type="Label" parent="HBoxContainer/Btn_Slot1/VBoxContainer/Grid_Stats"]
layout_mode = 2
size_flags_horizontal = 3
theme_type_variation = &"SaveSlotBodyLabel"
text = "Chg"
[node name="Lab_ChgValue" type="Label" parent="HBoxContainer/Btn_Slot1/VBoxContainer/Grid_Stats"]
layout_mode = 2
size_flags_horizontal = 3
theme_type_variation = &"SaveSlotBodyLabel"
text = "1"
[node name="Btn_Slot2" parent="HBoxContainer" instance=ExtResource("3_4w7h3")]
layout_mode = 2
size_flags_horizontal = 3
focus_neighbor_left = NodePath("../Btn_Slot1")
focus_neighbor_right = NodePath("../Btn_Slot3")
theme_type_variation = &"SaveSlotButton"
FocusSound = ExtResource("4_cgk43")
PressSound = ExtResource("5_sr5rb")
[node name="VBoxContainer" type="VBoxContainer" parent="HBoxContainer/Btn_Slot2"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_constants/separation = 1
[node name="SlotLabel" type="Label" parent="HBoxContainer/Btn_Slot2/VBoxContainer"]
layout_mode = 2
text = "Slot 2"
horizontal_alignment = 1
[node name="Lab_Playtime" type="Label" parent="HBoxContainer/Btn_Slot2/VBoxContainer"]
layout_mode = 2
theme_type_variation = &"SaveSlotBodyLabel"
text = "Empty"
horizontal_alignment = 1
[node name="SlotImage" type="TextureRect" parent="HBoxContainer/Btn_Slot2/VBoxContainer"]
custom_minimum_size = Vector2(42, 42)
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 4
texture = ExtResource("8_d3r81")
stretch_mode = 3
[node name="Box_Abilities" type="HBoxContainer" parent="HBoxContainer/Btn_Slot2/VBoxContainer"]
visible = false
layout_mode = 2
theme_override_constants/separation = 1
alignment = 1
[node name="Tex_Blast" type="TextureRect" parent="HBoxContainer/Btn_Slot2/VBoxContainer/Box_Abilities"]
layout_mode = 2
size_flags_horizontal = 0
size_flags_vertical = 4
texture = ExtResource("3_cjw05")
[node name="Tex_Fire" type="TextureRect" parent="HBoxContainer/Btn_Slot2/VBoxContainer/Box_Abilities"]
layout_mode = 2
size_flags_horizontal = 0
size_flags_vertical = 4
texture = ExtResource("4_eltv3")
[node name="Tex_Ice" type="TextureRect" parent="HBoxContainer/Btn_Slot2/VBoxContainer/Box_Abilities"]
layout_mode = 2
size_flags_horizontal = 0
size_flags_vertical = 4
texture = ExtResource("5_5ypbk")
[node name="Tex_Laser" type="TextureRect" parent="HBoxContainer/Btn_Slot2/VBoxContainer/Box_Abilities"]
layout_mode = 2
size_flags_horizontal = 0
size_flags_vertical = 4
texture = ExtResource("6_vchad")
[node name="Grid_Stats" type="GridContainer" parent="HBoxContainer/Btn_Slot2/VBoxContainer"]
visible = false
layout_mode = 2
columns = 4
[node name="Lab_Atk" type="Label" parent="HBoxContainer/Btn_Slot2/VBoxContainer/Grid_Stats"]
layout_mode = 2
size_flags_horizontal = 3
theme_type_variation = &"SaveSlotBodyLabel"
text = "Atk"
[node name="Lab_AtkValue" type="Label" parent="HBoxContainer/Btn_Slot2/VBoxContainer/Grid_Stats"]
layout_mode = 2
size_flags_horizontal = 3
theme_type_variation = &"SaveSlotBodyLabel"
text = "1"
[node name="Lab_Def" type="Label" parent="HBoxContainer/Btn_Slot2/VBoxContainer/Grid_Stats"]
layout_mode = 2
size_flags_horizontal = 3
theme_type_variation = &"SaveSlotBodyLabel"
text = "Def"
[node name="Lab_DefValue" type="Label" parent="HBoxContainer/Btn_Slot2/VBoxContainer/Grid_Stats"]
layout_mode = 2
size_flags_horizontal = 3
theme_type_variation = &"SaveSlotBodyLabel"
text = "1"
[node name="Lab_Con" type="Label" parent="HBoxContainer/Btn_Slot2/VBoxContainer/Grid_Stats"]
layout_mode = 2
size_flags_horizontal = 3
theme_type_variation = &"SaveSlotBodyLabel"
text = "Con"
[node name="Lab_ConValue" type="Label" parent="HBoxContainer/Btn_Slot2/VBoxContainer/Grid_Stats"]
layout_mode = 2
size_flags_horizontal = 3
theme_type_variation = &"SaveSlotBodyLabel"
text = "1"
[node name="Lab_Chg" type="Label" parent="HBoxContainer/Btn_Slot2/VBoxContainer/Grid_Stats"]
layout_mode = 2
size_flags_horizontal = 3
theme_type_variation = &"SaveSlotBodyLabel"
text = "Chg"
[node name="Lab_ChgValue" type="Label" parent="HBoxContainer/Btn_Slot2/VBoxContainer/Grid_Stats"]
layout_mode = 2
size_flags_horizontal = 3
theme_type_variation = &"SaveSlotBodyLabel"
text = "1"
[node name="Btn_Slot3" parent="HBoxContainer" instance=ExtResource("3_4w7h3")]
layout_mode = 2
size_flags_horizontal = 3
focus_neighbor_left = NodePath("../Btn_Slot2")
focus_neighbor_right = NodePath("../Btn_Slot1")
theme_type_variation = &"SaveSlotButton"
FocusSound = ExtResource("4_cgk43")
PressSound = ExtResource("5_sr5rb")
[node name="VBoxContainer" type="VBoxContainer" parent="HBoxContainer/Btn_Slot3"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_constants/separation = 1
[node name="SlotLabel" type="Label" parent="HBoxContainer/Btn_Slot3/VBoxContainer"]
layout_mode = 2
text = "Slot 3"
horizontal_alignment = 1
[node name="Lab_Playtime" type="Label" parent="HBoxContainer/Btn_Slot3/VBoxContainer"]
layout_mode = 2
theme_type_variation = &"SaveSlotBodyLabel"
text = "Empty"
horizontal_alignment = 1
[node name="SlotImage" type="TextureRect" parent="HBoxContainer/Btn_Slot3/VBoxContainer"]
custom_minimum_size = Vector2(42, 42)
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 4
texture = ExtResource("8_d3r81")
stretch_mode = 3
[node name="Box_Abilities" type="HBoxContainer" parent="HBoxContainer/Btn_Slot3/VBoxContainer"]
visible = false
layout_mode = 2
theme_override_constants/separation = 1
alignment = 1
[node name="Tex_Blast" type="TextureRect" parent="HBoxContainer/Btn_Slot3/VBoxContainer/Box_Abilities"]
layout_mode = 2
size_flags_horizontal = 0
size_flags_vertical = 4
texture = ExtResource("3_cjw05")
[node name="Tex_Fire" type="TextureRect" parent="HBoxContainer/Btn_Slot3/VBoxContainer/Box_Abilities"]
layout_mode = 2
size_flags_horizontal = 0
size_flags_vertical = 4
texture = ExtResource("4_eltv3")
[node name="Tex_Ice" type="TextureRect" parent="HBoxContainer/Btn_Slot3/VBoxContainer/Box_Abilities"]
layout_mode = 2
size_flags_horizontal = 0
size_flags_vertical = 4
texture = ExtResource("5_5ypbk")
[node name="Tex_Laser" type="TextureRect" parent="HBoxContainer/Btn_Slot3/VBoxContainer/Box_Abilities"]
layout_mode = 2
size_flags_horizontal = 0
size_flags_vertical = 4
texture = ExtResource("6_vchad")
[node name="Grid_Stats" type="GridContainer" parent="HBoxContainer/Btn_Slot3/VBoxContainer"]
visible = false
layout_mode = 2
columns = 4
[node name="Lab_Atk" type="Label" parent="HBoxContainer/Btn_Slot3/VBoxContainer/Grid_Stats"]
layout_mode = 2
size_flags_horizontal = 3
theme_type_variation = &"SaveSlotBodyLabel"
text = "Atk"
[node name="Lab_AtkValue" type="Label" parent="HBoxContainer/Btn_Slot3/VBoxContainer/Grid_Stats"]
layout_mode = 2
size_flags_horizontal = 3
theme_type_variation = &"SaveSlotBodyLabel"
text = "1"
[node name="Lab_Def" type="Label" parent="HBoxContainer/Btn_Slot3/VBoxContainer/Grid_Stats"]
layout_mode = 2
size_flags_horizontal = 3
theme_type_variation = &"SaveSlotBodyLabel"
text = "Def"
[node name="Lab_DefValue" type="Label" parent="HBoxContainer/Btn_Slot3/VBoxContainer/Grid_Stats"]
layout_mode = 2
size_flags_horizontal = 3
theme_type_variation = &"SaveSlotBodyLabel"
text = "1"
[node name="Lab_Con" type="Label" parent="HBoxContainer/Btn_Slot3/VBoxContainer/Grid_Stats"]
layout_mode = 2
size_flags_horizontal = 3
theme_type_variation = &"SaveSlotBodyLabel"
text = "Con"
[node name="Lab_ConValue" type="Label" parent="HBoxContainer/Btn_Slot3/VBoxContainer/Grid_Stats"]
layout_mode = 2
size_flags_horizontal = 3
theme_type_variation = &"SaveSlotBodyLabel"
text = "1"
[node name="Lab_Chg" type="Label" parent="HBoxContainer/Btn_Slot3/VBoxContainer/Grid_Stats"]
layout_mode = 2
size_flags_horizontal = 3
theme_type_variation = &"SaveSlotBodyLabel"
text = "Chg"
[node name="Lab_ChgValue" type="Label" parent="HBoxContainer/Btn_Slot3/VBoxContainer/Grid_Stats"]
layout_mode = 2
size_flags_horizontal = 3
theme_type_variation = &"SaveSlotBodyLabel"
text = "1"
[node name="Btn_Back" parent="." instance=ExtResource("3_4w7h3")]
layout_mode = 1
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -48.0
offset_top = -28.0
offset_right = -8.0
offset_bottom = -8.0
grow_horizontal = 0
grow_vertical = 0
text = "Back"
FocusSound = ExtResource("4_cgk43")
PressSound = ExtResource("5_sr5rb")
[node name="Overlay" type="ColorRect" parent="."]
visible = false
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
color = Color(0, 0, 0, 0.501961)
[node name="OverwriteDialog" type="ConfirmationDialog" parent="."]
initial_position = 2
size = Vector2i(200, 97)
unresizable = true
ok_button_text = "Overwrite"
dialog_text = "Are you sure you want to overwrite this save?"
dialog_autowrap = true
[node name="DifficultyDialog" type="Window" parent="."]
title = "Select Difficulty"
initial_position = 2
size = Vector2i(165, 92)
visible = false
[node name="Panel" type="Panel" parent="DifficultyDialog"]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_styles/panel = SubResource("StyleBoxLine_3e3iv")
[node name="VBoxContainer" type="VBoxContainer" parent="DifficultyDialog/Panel"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="Btn_DifficultyEasy" type="Button" parent="DifficultyDialog/Panel/VBoxContainer"]
layout_mode = 2
text = "Easy"
script = ExtResource("11_qvsy4")
[node name="Btn_DifficultyNormal" type="Button" parent="DifficultyDialog/Panel/VBoxContainer"]
layout_mode = 2
text = "Normal"
script = ExtResource("11_qvsy4")
[node name="Btn_DifficultyHard" type="Button" parent="DifficultyDialog/Panel/VBoxContainer"]
layout_mode = 2
text = "Hard"
script = ExtResource("11_qvsy4")
[node name="Btn_DifficultyBack" type="Button" parent="DifficultyDialog/Panel/VBoxContainer"]
layout_mode = 2
text = "Back"
script = ExtResource("11_qvsy4")
[connection signal="pressed" from="HBoxContainer/Btn_Slot1" to="." method="_on_btn_slot_1_pressed"]
[connection signal="pressed" from="HBoxContainer/Btn_Slot2" to="." method="_on_btn_slot_2_pressed"]
[connection signal="pressed" from="HBoxContainer/Btn_Slot3" to="." method="_on_btn_slot_3_pressed"]
[connection signal="pressed" from="Btn_Back" to="." method="_on_btn_back_pressed"]
[connection signal="canceled" from="OverwriteDialog" to="." method="_on_overwrite_dialog_canceled"]
[connection signal="confirmed" from="OverwriteDialog" to="." method="_on_overwrite_dialog_confirmed"]
[connection signal="focus_entered" from="DifficultyDialog/Panel/VBoxContainer/Btn_DifficultyEasy" to="DifficultyDialog/Panel/VBoxContainer/Btn_DifficultyEasy" method="_on_focus_entered"]
[connection signal="pressed" from="DifficultyDialog/Panel/VBoxContainer/Btn_DifficultyEasy" to="." method="_on_btn_difficulty_easy_pressed"]
[connection signal="pressed" from="DifficultyDialog/Panel/VBoxContainer/Btn_DifficultyEasy" to="DifficultyDialog/Panel/VBoxContainer/Btn_DifficultyEasy" method="_on_pressed"]
[connection signal="focus_entered" from="DifficultyDialog/Panel/VBoxContainer/Btn_DifficultyNormal" to="DifficultyDialog/Panel/VBoxContainer/Btn_DifficultyNormal" method="_on_focus_entered"]
[connection signal="pressed" from="DifficultyDialog/Panel/VBoxContainer/Btn_DifficultyNormal" to="." method="_on_btn_difficulty_normal_pressed"]
[connection signal="pressed" from="DifficultyDialog/Panel/VBoxContainer/Btn_DifficultyNormal" to="DifficultyDialog/Panel/VBoxContainer/Btn_DifficultyNormal" method="_on_pressed"]
[connection signal="focus_entered" from="DifficultyDialog/Panel/VBoxContainer/Btn_DifficultyHard" to="DifficultyDialog/Panel/VBoxContainer/Btn_DifficultyHard" method="_on_focus_entered"]
[connection signal="pressed" from="DifficultyDialog/Panel/VBoxContainer/Btn_DifficultyHard" to="." method="_on_btn_difficulty_hard_pressed"]
[connection signal="pressed" from="DifficultyDialog/Panel/VBoxContainer/Btn_DifficultyHard" to="DifficultyDialog/Panel/VBoxContainer/Btn_DifficultyHard" method="_on_pressed"]
[connection signal="focus_entered" from="DifficultyDialog/Panel/VBoxContainer/Btn_DifficultyBack" to="DifficultyDialog/Panel/VBoxContainer/Btn_DifficultyBack" method="_on_focus_entered"]
[connection signal="pressed" from="DifficultyDialog/Panel/VBoxContainer/Btn_DifficultyBack" to="." method="_on_btn_difficulty_back_pressed"]
[connection signal="pressed" from="DifficultyDialog/Panel/VBoxContainer/Btn_DifficultyBack" to="DifficultyDialog/Panel/VBoxContainer/Btn_DifficultyBack" method="_on_pressed"]