216 lines
8.4 KiB
Text
216 lines
8.4 KiB
Text
[gd_scene load_steps=14 format=3 uid="uid://crecxacda45j3"]
|
|
|
|
[ext_resource type="Script" uid="uid://nf16c5x6khy6" path="res://start_menu.gd" id="1_ia0g5"]
|
|
[ext_resource type="PackedScene" uid="uid://bvp37ljy8eaba" path="res://ui/texture_container.tscn" id="1_jwbto"]
|
|
[ext_resource type="Texture2D" uid="uid://ddvyrpgjh4o3c" path="res://assets/title.png" id="3_ppfnh"]
|
|
[ext_resource type="Theme" uid="uid://d3iyu7ukwsn1p" path="res://ui/default_theme.tres" id="3_v2mkm"]
|
|
[ext_resource type="Script" uid="uid://c62xd44e27oki" path="res://scripts/settings_menu.gd" id="4_ctwoq"]
|
|
[ext_resource type="PackedScene" uid="uid://dv8l318cesr8e" path="res://scenes/main_cam.tscn" id="5_ctwoq"]
|
|
[ext_resource type="Script" uid="uid://llka3aa044jo" path="res://click.gd" id="6_acoh7"]
|
|
[ext_resource type="Texture2D" uid="uid://6cl03idpsggl" path="res://ui/button.png" id="6_pgi0o"]
|
|
[ext_resource type="Texture2D" uid="uid://cjthhf1ryldjy" path="res://ui/button-2.png" id="7_73a2t"]
|
|
[ext_resource type="Texture2D" uid="uid://cyhttknqgpyoh" path="res://ui/button-3.png" id="8_xsckg"]
|
|
[ext_resource type="Texture2D" uid="uid://bxl4fp4rcp2ny" path="res://ui/button-4.png" id="9_gfl6h"]
|
|
[ext_resource type="Texture2D" uid="uid://cgutia7ltqm2e" path="res://ui/button-5.png" id="10_kefd2"]
|
|
[ext_resource type="Texture2D" uid="uid://b4brar13u2g6c" path="res://ui/button-6.png" id="11_acoh7"]
|
|
|
|
[node name="StartMenu" type="Node2D" node_paths=PackedStringArray("settings")]
|
|
script = ExtResource("1_ia0g5")
|
|
settings = NodePath("CanvasLayer/Control/SettingsMenu")
|
|
|
|
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
|
process_mode = 3
|
|
|
|
[node name="Control" type="TextureRect" parent="CanvasLayer"]
|
|
offset_right = 480.0
|
|
offset_bottom = 270.0
|
|
theme = ExtResource("3_v2mkm")
|
|
texture = ExtResource("3_ppfnh")
|
|
|
|
[node name="StartButton" type="TextureButton" parent="CanvasLayer/Control"]
|
|
layout_mode = 0
|
|
offset_left = 16.0
|
|
offset_top = 72.0
|
|
offset_right = 138.0
|
|
offset_bottom = 112.0
|
|
texture_normal = ExtResource("6_pgi0o")
|
|
texture_pressed = ExtResource("6_pgi0o")
|
|
texture_hover = ExtResource("7_73a2t")
|
|
script = ExtResource("6_acoh7")
|
|
|
|
[node name="Label" type="Label" parent="CanvasLayer/Control/StartButton"]
|
|
layout_mode = 1
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -32.0
|
|
offset_top = -16.0
|
|
offset_right = 32.0
|
|
offset_bottom = -5.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
text = "Start Game"
|
|
|
|
[node name="Settings" type="TextureButton" parent="CanvasLayer/Control"]
|
|
layout_mode = 0
|
|
offset_left = 136.0
|
|
offset_top = 116.0
|
|
offset_right = 258.0
|
|
offset_bottom = 156.0
|
|
texture_normal = ExtResource("8_xsckg")
|
|
texture_pressed = ExtResource("8_xsckg")
|
|
texture_hover = ExtResource("9_gfl6h")
|
|
script = ExtResource("6_acoh7")
|
|
|
|
[node name="Label" type="Label" parent="CanvasLayer/Control/Settings"]
|
|
layout_mode = 1
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -27.0
|
|
offset_top = -16.0
|
|
offset_right = 37.0
|
|
offset_bottom = -5.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
text = "Settings"
|
|
|
|
[node name="Exit" type="TextureButton" parent="CanvasLayer/Control"]
|
|
layout_mode = 0
|
|
offset_left = 91.0
|
|
offset_top = 20.0
|
|
offset_right = 213.0
|
|
offset_bottom = 60.0
|
|
texture_normal = ExtResource("10_kefd2")
|
|
texture_pressed = ExtResource("10_kefd2")
|
|
texture_hover = ExtResource("11_acoh7")
|
|
script = ExtResource("6_acoh7")
|
|
|
|
[node name="Exit" type="Label" parent="CanvasLayer/Control/Exit"]
|
|
layout_mode = 1
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -14.0
|
|
offset_top = -16.0
|
|
offset_right = 50.0
|
|
offset_bottom = -5.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
text = "Exit"
|
|
|
|
[node name="SettingsMenu" parent="CanvasLayer/Control" node_paths=PackedStringArray("volume_slider", "fullscreen_check", "vsync_check") instance=ExtResource("1_jwbto")]
|
|
visible = false
|
|
layout_mode = 1
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -100.5625
|
|
offset_top = -100.5625
|
|
offset_right = 100.5625
|
|
offset_bottom = 100.5625
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
theme = ExtResource("3_v2mkm")
|
|
axis_stretch_horizontal = 1
|
|
axis_stretch_vertical = 1
|
|
script = ExtResource("4_ctwoq")
|
|
volume_slider = NodePath("MarginContainer/VBoxContainer/HBoxContainer/Volume")
|
|
fullscreen_check = NodePath("MarginContainer/VBoxContainer/Fullscreen/CheckBox")
|
|
vsync_check = NodePath("MarginContainer/VBoxContainer/Vsync/CheckBox")
|
|
|
|
[node name="MarginContainer" type="MarginContainer" parent="CanvasLayer/Control/SettingsMenu"]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
theme = ExtResource("3_v2mkm")
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="CanvasLayer/Control/SettingsMenu/MarginContainer"]
|
|
layout_mode = 2
|
|
theme = ExtResource("3_v2mkm")
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="CanvasLayer/Control/SettingsMenu/MarginContainer/VBoxContainer"]
|
|
layout_mode = 2
|
|
|
|
[node name="Label" type="Label" parent="CanvasLayer/Control/SettingsMenu/MarginContainer/VBoxContainer/HBoxContainer"]
|
|
layout_mode = 2
|
|
text = "Volume"
|
|
|
|
[node name="Volume" type="HSlider" parent="CanvasLayer/Control/SettingsMenu/MarginContainer/VBoxContainer/HBoxContainer"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
theme = ExtResource("3_v2mkm")
|
|
max_value = 1.0
|
|
step = 0.01
|
|
tick_count = 5
|
|
ticks_on_borders = true
|
|
ticks_position = 3
|
|
|
|
[node name="Fullscreen" type="HBoxContainer" parent="CanvasLayer/Control/SettingsMenu/MarginContainer/VBoxContainer"]
|
|
layout_mode = 2
|
|
alignment = 1
|
|
|
|
[node name="Label" type="Label" parent="CanvasLayer/Control/SettingsMenu/MarginContainer/VBoxContainer/Fullscreen"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 0
|
|
text = "Fullscreen"
|
|
|
|
[node name="CheckBox" type="CheckBox" parent="CanvasLayer/Control/SettingsMenu/MarginContainer/VBoxContainer/Fullscreen"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 10
|
|
|
|
[node name="Vsync" type="HBoxContainer" parent="CanvasLayer/Control/SettingsMenu/MarginContainer/VBoxContainer"]
|
|
layout_mode = 2
|
|
alignment = 1
|
|
|
|
[node name="Label" type="Label" parent="CanvasLayer/Control/SettingsMenu/MarginContainer/VBoxContainer/Vsync"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 0
|
|
text = "Vsync"
|
|
|
|
[node name="CheckBox" type="CheckBox" parent="CanvasLayer/Control/SettingsMenu/MarginContainer/VBoxContainer/Vsync"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 10
|
|
|
|
[node name="Buttons" type="MarginContainer" parent="CanvasLayer/Control/SettingsMenu/MarginContainer/VBoxContainer"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 10
|
|
|
|
[node name="HBoxContainer2" type="HBoxContainer" parent="CanvasLayer/Control/SettingsMenu/MarginContainer/VBoxContainer/Buttons"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 10
|
|
|
|
[node name="ExitButton" type="Button" parent="CanvasLayer/Control/SettingsMenu/MarginContainer/VBoxContainer/Buttons/HBoxContainer2"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 0
|
|
text = "Exit"
|
|
|
|
[node name="ContinueButton" type="Button" parent="CanvasLayer/Control/SettingsMenu/MarginContainer/VBoxContainer/Buttons/HBoxContainer2"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 10
|
|
text = "Continue"
|
|
|
|
[node name="MainCam2" parent="." node_paths=PackedStringArray("ui_layer") instance=ExtResource("5_ctwoq")]
|
|
process_mode = 3
|
|
z_index = 10
|
|
ui_layer = NodePath("../CanvasLayer")
|
|
|
|
[connection signal="pressed" from="CanvasLayer/Control/StartButton" to="." method="_on_start_button_pressed"]
|
|
[connection signal="pressed" from="CanvasLayer/Control/Settings" to="." method="_on_settings_pressed"]
|
|
[connection signal="pressed" from="CanvasLayer/Control/Exit" to="." method="_on_exit_pressed"]
|
|
[connection signal="value_changed" from="CanvasLayer/Control/SettingsMenu/MarginContainer/VBoxContainer/HBoxContainer/Volume" to="CanvasLayer/Control/SettingsMenu" method="_on_volume_changed"]
|
|
[connection signal="toggled" from="CanvasLayer/Control/SettingsMenu/MarginContainer/VBoxContainer/Fullscreen/CheckBox" to="CanvasLayer/Control/SettingsMenu" method="_on_fullscreen_toggled"]
|
|
[connection signal="toggled" from="CanvasLayer/Control/SettingsMenu/MarginContainer/VBoxContainer/Vsync/CheckBox" to="CanvasLayer/Control/SettingsMenu" method="_on_vsync_toggled"]
|
|
[connection signal="pressed" from="CanvasLayer/Control/SettingsMenu/MarginContainer/VBoxContainer/Buttons/HBoxContainer2/ExitButton" to="CanvasLayer/Control/SettingsMenu" method="_on_exit_button_pressed"]
|
|
[connection signal="pressed" from="CanvasLayer/Control/SettingsMenu/MarginContainer/VBoxContainer/Buttons/HBoxContainer2/ContinueButton" to="CanvasLayer/Control/SettingsMenu" method="_on_continue_button_pressed"]
|