Files
Defensaria/Game/Menu/main.tscn
2025-07-29 20:19:07 +02:00

129 lines
4.4 KiB
Plaintext

[gd_scene load_steps=10 format=3 uid="uid://6x8vpcfwmxjd"]
[ext_resource type="Texture2D" uid="uid://bgy114b67j3kg" path="res://Assets/Others/8-bit-graphics-pixels-scene-with-castle.jpg" id="1_3jfgb"]
[ext_resource type="Script" uid="uid://cnle2j2fnno26" path="res://Game/Menu/main.gd" id="1_i0ya0"]
[ext_resource type="FontFile" uid="uid://bu44ne346ymoe" path="res://Assets/Others/Canterbury.ttf" id="2_i0ya0"]
[ext_resource type="PackedScene" uid="uid://c5r8h61c73dwv" path="res://Game/music_player.tscn" id="4_14uxm"]
[sub_resource type="StyleBoxTexture" id="StyleBoxTexture_14uxm"]
texture = ExtResource("1_3jfgb")
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_3jfgb"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_3jfgb"]
bg_color = Color(0.485703, 0.485704, 0.485703, 0.447059)
corner_radius_top_left = 20
corner_radius_top_right = 20
corner_radius_bottom_right = 20
corner_radius_bottom_left = 20
shadow_size = 5
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_i0ya0"]
bg_color = Color(0.117647, 0.117647, 0.117647, 0.682353)
corner_radius_top_left = 20
corner_radius_top_right = 20
corner_radius_bottom_right = 20
corner_radius_bottom_left = 20
shadow_size = 5
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_hnj4u"]
bg_color = Color(1, 1, 1, 0.447059)
corner_radius_top_left = 20
corner_radius_top_right = 20
corner_radius_bottom_right = 20
corner_radius_bottom_left = 20
shadow_size = 5
[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_i0ya0")
[node name="Panel" type="Panel" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_styles/panel = SubResource("StyleBoxTexture_14uxm")
[node name="VBoxContainer" type="VBoxContainer" parent="."]
custom_minimum_size = Vector2(250, 0)
layout_mode = 1
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -125.0
offset_top = -220.0
offset_right = 125.0
grow_horizontal = 2
grow_vertical = 0
theme_override_constants/separation = 20
[node name="Button" type="Button" parent="VBoxContainer"]
layout_mode = 2
theme_override_colors/font_color = Color(0, 0, 0, 1)
theme_override_font_sizes/font_size = 30
theme_override_styles/focus = SubResource("StyleBoxEmpty_3jfgb")
theme_override_styles/hover = SubResource("StyleBoxFlat_3jfgb")
theme_override_styles/pressed = SubResource("StyleBoxFlat_i0ya0")
theme_override_styles/normal = SubResource("StyleBoxFlat_hnj4u")
text = "Start Game"
[node name="Button2" type="Button" parent="VBoxContainer"]
layout_mode = 2
theme_override_colors/font_color = Color(0, 0, 0, 1)
theme_override_font_sizes/font_size = 30
theme_override_styles/focus = SubResource("StyleBoxEmpty_3jfgb")
theme_override_styles/hover = SubResource("StyleBoxFlat_3jfgb")
theme_override_styles/pressed = SubResource("StyleBoxFlat_i0ya0")
theme_override_styles/normal = SubResource("StyleBoxFlat_hnj4u")
text = "Options"
[node name="Button3" type="Button" parent="VBoxContainer"]
layout_mode = 2
theme_override_colors/font_color = Color(0, 0, 0, 1)
theme_override_font_sizes/font_size = 30
theme_override_styles/focus = SubResource("StyleBoxEmpty_3jfgb")
theme_override_styles/hover = SubResource("StyleBoxFlat_3jfgb")
theme_override_styles/pressed = SubResource("StyleBoxFlat_i0ya0")
theme_override_styles/normal = SubResource("StyleBoxFlat_hnj4u")
text = "Exit
"
[node name="VBoxContainer2" type="VBoxContainer" parent="."]
layout_mode = 1
anchors_preset = 5
anchor_left = 0.5
anchor_right = 0.5
offset_left = -179.0
offset_right = 179.0
offset_bottom = 200.0
grow_horizontal = 2
alignment = 1
[node name="Label" type="Label" parent="VBoxContainer2"]
layout_mode = 2
theme_override_fonts/font = ExtResource("2_i0ya0")
theme_override_font_sizes/font_size = 86
text = "Defensaria"
[node name="Label2" type="Label" parent="VBoxContainer2"]
layout_mode = 2
theme_override_fonts/font = ExtResource("2_i0ya0")
theme_override_font_sizes/font_size = 32
text = "Guardians of the Last Cytadel"
[node name="MusicPlayer" parent="." instance=ExtResource("4_14uxm")]
[connection signal="pressed" from="VBoxContainer/Button" to="." method="_on_button_pressed"]
[connection signal="pressed" from="VBoxContainer/Button2" to="." method="_on_button_2_pressed"]
[connection signal="pressed" from="VBoxContainer/Button3" to="." method="_on_button_3_pressed"]