Strayvoid/scenes/main_menu.tscn
2025-03-24 19:21:17 +01:00

112 lines
3.6 KiB
Plaintext

[gd_scene load_steps=10 format=3 uid="uid://bq18yfskjhadc"]
[ext_resource type="Script" path="res://scripts/main_menu.gd" id="1_l65j5"]
[ext_resource type="Texture2D" uid="uid://nf1t72v76e6d" path="res://assets/sprites/background.png" id="2_amhjb"]
[ext_resource type="Texture2D" uid="uid://dfhbdyfc0a572" path="res://assets/sprites/buttons/button.png" id="3_jej0o"]
[ext_resource type="Texture2D" uid="uid://wrbi6c4sil01" path="res://assets/sprites/buttons/button_pressed.png" id="4_cs7jm"]
[ext_resource type="Texture2D" uid="uid://l0hgddevuuak" path="res://assets/sprites/buttons/button_hover.png" id="5_ver27"]
[ext_resource type="FontFile" uid="uid://c6e56mqdq236j" path="res://assets/fonts/ark-pixel-12px-proportional-latin.ttf" id="6_4ddb7"]
[ext_resource type="PackedScene" uid="uid://b48bk4r45bdxk" path="res://scenes/options_menu.tscn" id="8_xkyf8"]
[ext_resource type="Texture2D" uid="uid://bqluqxxg57jj" path="res://assets/sprites/logo_text.png" id="13_65ong"]
[sub_resource type="LabelSettings" id="LabelSettings_uvldi"]
font = ExtResource("6_4ddb7")
font_size = 12
font_color = Color(0.560784, 0.337255, 0.623529, 1)
[node name="Main menu" 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_l65j5")
[node name="background" type="Sprite2D" parent="."]
position = Vector2(320, 180)
scale = Vector2(1.025, 1.04444)
texture = ExtResource("2_amhjb")
[node name="Play" type="TextureButton" parent="."]
layout_mode = 2
offset_left = 80.0
offset_top = 112.0
offset_right = 240.0
offset_bottom = 152.0
texture_normal = ExtResource("3_jej0o")
texture_pressed = ExtResource("4_cs7jm")
texture_hover = ExtResource("5_ver27")
ignore_texture_size = true
stretch_mode = 0
[node name="Play" type="Label" parent="Play"]
layout_mode = 0
offset_left = 1.0
offset_top = 1.0
offset_right = 159.0
offset_bottom = 39.0
text = "Play"
label_settings = SubResource("LabelSettings_uvldi")
horizontal_alignment = 1
vertical_alignment = 1
[node name="Options" type="TextureButton" parent="."]
layout_mode = 2
offset_left = 80.0
offset_top = 168.0
offset_right = 240.0
offset_bottom = 208.0
texture_normal = ExtResource("3_jej0o")
texture_pressed = ExtResource("4_cs7jm")
texture_hover = ExtResource("5_ver27")
ignore_texture_size = true
stretch_mode = 0
[node name="Options" type="Label" parent="Options"]
layout_mode = 0
offset_left = 1.0
offset_top = 1.0
offset_right = 159.0
offset_bottom = 39.0
text = "Options"
label_settings = SubResource("LabelSettings_uvldi")
horizontal_alignment = 1
vertical_alignment = 1
[node name="Exit" type="TextureButton" parent="."]
layout_mode = 2
offset_left = 80.0
offset_top = 224.0
offset_right = 240.0
offset_bottom = 264.0
texture_normal = ExtResource("3_jej0o")
texture_pressed = ExtResource("4_cs7jm")
texture_hover = ExtResource("5_ver27")
ignore_texture_size = true
stretch_mode = 0
[node name="Exit" type="Label" parent="Exit"]
layout_mode = 0
offset_left = 1.0
offset_top = 1.0
offset_right = 159.0
offset_bottom = 39.0
text = "Exit"
label_settings = SubResource("LabelSettings_uvldi")
horizontal_alignment = 1
vertical_alignment = 1
[node name="LogoText" type="Sprite2D" parent="."]
position = Vector2(450.417, 160)
scale = Vector2(0.602333, 0.596667)
texture = ExtResource("13_65ong")
[node name="Options Menu" parent="." instance=ExtResource("8_xkyf8")]
visible = false
layout_mode = 1
[connection signal="pressed" from="Play" to="." method="_on_play_pressed"]
[connection signal="pressed" from="Options" to="." method="_on_options_pressed"]
[connection signal="pressed" from="Exit" to="." method="_on_exit_pressed"]