Frontier-of-Hell/scenes/ui/main_menu.tscn

106 lines
3.9 KiB
Text
Raw Normal View History

2023-10-25 17:41:56 +02:00
[gd_scene load_steps=6 format=3 uid="uid://b8pdp1x331u5c"]
2023-10-17 18:18:12 +02:00
[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"]
2023-10-25 12:45:18 +02:00
[ext_resource type="Texture2D" uid="uid://dm8ug0o5361wn" path="res://assets/icons/logo.png" id="2_l26fo"]
2023-10-25 17:35:29 +02:00
[ext_resource type="Theme" uid="uid://caw53lcko4jnt" path="res://themes/button.tres" id="4_4d3eq"]
2023-10-25 17:41:56 +02:00
[ext_resource type="AudioStream" uid="uid://dhydsnb0wpl7t" path="res://assets/audio/main.mp3" id="5_xkvpi"]
2023-10-17 18:18:12 +02:00
[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")
2023-10-17 18:18:12 +02:00
[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
2023-10-25 20:47:14 +02:00
[node name="TextureButton" type="TextureButton" parent="TextureRect/Panel/MarginContainer/VBoxContainer"]
2023-10-17 18:18:12 +02:00
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 6
2023-10-25 20:47:14 +02:00
texture_normal = ExtResource("2_l26fo")
2023-10-17 18:18:12 +02:00
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
2023-10-25 17:35:29 +02:00
size_flags_vertical = 2
theme = ExtResource("4_4d3eq")
2023-10-17 18:18:12 +02:00
text = "Start Game"
[node name="HowToPlay" type="Button" parent="TextureRect/Panel/MarginContainer/VBoxContainer/VBoxContainer"]
layout_mode = 2
size_flags_horizontal = 4
2023-10-25 17:35:29 +02:00
size_flags_vertical = 2
theme = ExtResource("4_4d3eq")
2023-10-17 18:18:12 +02:00
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
2023-10-25 17:35:29 +02:00
theme = ExtResource("4_4d3eq")
2023-10-17 18:18:12 +02:00
text = "About"
[node name="Exit" type="Button" parent="TextureRect/Panel/MarginContainer/VBoxContainer/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 10
2023-10-25 17:35:29 +02:00
theme = ExtResource("4_4d3eq")
2023-10-17 18:18:12 +02:00
text = "Exit"
2023-10-25 20:47:14 +02:00
[node name="Timer" type="Timer" parent="."]
wait_time = 30.0
one_shot = true
2023-10-25 17:41:56 +02:00
[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
stream = ExtResource("5_xkvpi")
volume_db = 1.0
autoplay = true
2023-10-25 20:47:14 +02:00
[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"]
2023-10-25 20:47:14 +02:00
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]