117 lines
4.5 KiB
Text
117 lines
4.5 KiB
Text
[gd_scene load_steps=7 format=3 uid="uid://b8pdp1x331u5c"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://c1qbpse383sys" path="res://assets/backgrounds/main-bg.png" id="1_28cjd"]
|
|
[ext_resource type="Script" path="res://scripts/ui/main_menu.gd" id="1_6741p"]
|
|
[ext_resource type="Texture2D" uid="uid://dm8ug0o5361wn" path="res://assets/icons/logo.png" id="2_l26fo"]
|
|
[ext_resource type="Theme" uid="uid://caw53lcko4jnt" path="res://themes/button.tres" id="4_4d3eq"]
|
|
[ext_resource type="Texture2D" uid="uid://cgaqy7lcu4x78" path="res://assets/icons/settings.png" id="5_kbtiw"]
|
|
[ext_resource type="AudioStream" uid="uid://dhydsnb0wpl7t" path="res://assets/audio/main.mp3" id="5_xkvpi"]
|
|
|
|
[node name="MainMenu" type="Control"]
|
|
layout_mode = 3
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
script = ExtResource("1_6741p")
|
|
|
|
[node name="TextureRect" type="TextureRect" parent="."]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
texture = ExtResource("1_28cjd")
|
|
expand_mode = 1
|
|
|
|
[node name="Panel" type="Panel" parent="TextureRect"]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
|
|
[node name="MarginContainer" type="MarginContainer" parent="TextureRect/Panel"]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
theme_override_constants/margin_left = 50
|
|
theme_override_constants/margin_top = 50
|
|
theme_override_constants/margin_right = 50
|
|
theme_override_constants/margin_bottom = 50
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="TextureRect/Panel/MarginContainer"]
|
|
layout_mode = 2
|
|
|
|
[node name="TextureButton" type="TextureButton" parent="TextureRect/Panel/MarginContainer/VBoxContainer"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 4
|
|
size_flags_vertical = 6
|
|
texture_normal = ExtResource("2_l26fo")
|
|
stretch_mode = 3
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="TextureRect/Panel/MarginContainer/VBoxContainer"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 3
|
|
|
|
[node name="StartGame" type="Button" parent="TextureRect/Panel/MarginContainer/VBoxContainer/VBoxContainer"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 4
|
|
size_flags_vertical = 2
|
|
theme = ExtResource("4_4d3eq")
|
|
text = "Start Game"
|
|
|
|
[node name="HowToPlay" type="Button" parent="TextureRect/Panel/MarginContainer/VBoxContainer/VBoxContainer"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 4
|
|
size_flags_vertical = 2
|
|
theme = ExtResource("4_4d3eq")
|
|
text = "How To Play"
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="TextureRect/Panel/MarginContainer/VBoxContainer"]
|
|
layout_mode = 2
|
|
|
|
[node name="About" type="Button" parent="TextureRect/Panel/MarginContainer/VBoxContainer/HBoxContainer"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 2
|
|
theme = ExtResource("4_4d3eq")
|
|
text = "About"
|
|
|
|
[node name="Exit" type="Button" parent="TextureRect/Panel/MarginContainer/VBoxContainer/HBoxContainer"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 10
|
|
theme = ExtResource("4_4d3eq")
|
|
text = "Exit"
|
|
|
|
[node name="Settings" type="TextureButton" parent="TextureRect/Panel"]
|
|
layout_mode = 0
|
|
offset_left = 52.0
|
|
offset_top = 51.0
|
|
offset_right = 572.0
|
|
offset_bottom = 571.0
|
|
scale = Vector2(0.1, 0.1)
|
|
texture_normal = ExtResource("5_kbtiw")
|
|
|
|
[node name="Timer" type="Timer" parent="."]
|
|
wait_time = 30.0
|
|
one_shot = true
|
|
|
|
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
|
|
stream = ExtResource("5_xkvpi")
|
|
volume_db = 1.0
|
|
|
|
[connection signal="pressed" from="TextureRect/Panel/MarginContainer/VBoxContainer/TextureButton" to="." method="_on_logo_pressed"]
|
|
[connection signal="pressed" from="TextureRect/Panel/MarginContainer/VBoxContainer/VBoxContainer/StartGame" to="." method="_on_start_game_pressed"]
|
|
[connection signal="pressed" from="TextureRect/Panel/MarginContainer/VBoxContainer/VBoxContainer/HowToPlay" to="." method="_on_how_to_play_pressed"]
|
|
[connection signal="pressed" from="TextureRect/Panel/MarginContainer/VBoxContainer/HBoxContainer/About" to="." method="_on_about_pressed"]
|
|
[connection signal="pressed" from="TextureRect/Panel/MarginContainer/VBoxContainer/HBoxContainer/Exit" to="." method="_on_exit_pressed"]
|
|
[connection signal="mouse_entered" from="TextureRect/Panel/Settings" to="." method="_on_settings_hold"]
|
|
[connection signal="mouse_exited" from="TextureRect/Panel/Settings" to="." method="_on_settings_release"]
|
|
[connection signal="pressed" from="TextureRect/Panel/Settings" to="." method="_on_settings_pressed"]
|
|
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]
|