Files
mmo/scenes/menu/main_menu.tscn
Marek Le 2d4002bd3f refactor
2026-05-09 23:37:26 +02:00

116 lines
3.6 KiB
Plaintext

[gd_scene format=3 uid="uid://bm5gsrlveyvnk"]
[ext_resource type="Script" uid="uid://d0k5a5qreg1uu" path="res://scenes/menu/main_menu.gd" id="1"]
[node name="MainMenu" type="Control" unique_id=282057399]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1")
[node name="Background" type="ColorRect" parent="." unique_id=1892952438]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
color = Color(0.1, 0.1, 0.15, 1)
[node name="Center" type="CenterContainer" parent="." unique_id=303933157]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="VBox" type="VBoxContainer" parent="Center" unique_id=576802246]
custom_minimum_size = Vector2(420, 0)
layout_mode = 2
[node name="Title" type="Label" parent="Center/VBox" unique_id=1058778255]
layout_mode = 2
theme_override_font_sizes/font_size = 56
text = "MMO"
horizontal_alignment = 1
[node name="Spacer1" type="Control" parent="Center/VBox" unique_id=707057681]
custom_minimum_size = Vector2(0, 24)
layout_mode = 2
[node name="NameRow" type="HBoxContainer" parent="Center/VBox" unique_id=1693567332]
layout_mode = 2
[node name="NameLabel" type="Label" parent="Center/VBox/NameRow" unique_id=1012504876]
custom_minimum_size = Vector2(80, 0)
layout_mode = 2
text = "Name:"
[node name="NameInput" type="LineEdit" parent="Center/VBox/NameRow" unique_id=318387796]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
text = "Player"
[node name="IpRow" type="HBoxContainer" parent="Center/VBox" unique_id=674693362]
layout_mode = 2
[node name="IpLabel" type="Label" parent="Center/VBox/IpRow" unique_id=222908556]
custom_minimum_size = Vector2(80, 0)
layout_mode = 2
text = "Server IP:"
[node name="IpInput" type="LineEdit" parent="Center/VBox/IpRow" unique_id=99390081]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
placeholder_text = "127.0.0.1"
[node name="Spacer2" type="Control" parent="Center/VBox" unique_id=979762154]
custom_minimum_size = Vector2(0, 16)
layout_mode = 2
[node name="Singleplayer" type="Button" parent="Center/VBox" unique_id=156537849]
custom_minimum_size = Vector2(0, 40)
layout_mode = 2
text = "Singleplayer"
[node name="Host" type="Button" parent="Center/VBox" unique_id=1117468477]
custom_minimum_size = Vector2(0, 40)
layout_mode = 2
text = "Host"
[node name="Join" type="Button" parent="Center/VBox" unique_id=1669660415]
custom_minimum_size = Vector2(0, 40)
layout_mode = 2
text = "Join"
[node name="Options" type="Button" parent="Center/VBox" unique_id=1739276223]
custom_minimum_size = Vector2(0, 40)
layout_mode = 2
text = "Options"
[node name="Quit" type="Button" parent="Center/VBox" unique_id=182300116]
custom_minimum_size = Vector2(0, 40)
layout_mode = 2
text = "Quit"
[node name="Spacer3" type="Control" parent="Center/VBox" unique_id=1580062158]
custom_minimum_size = Vector2(0, 16)
layout_mode = 2
[node name="StatusLabel" type="Label" parent="Center/VBox" unique_id=643981255]
unique_name_in_owner = true
layout_mode = 2
horizontal_alignment = 1
[connection signal="pressed" from="Center/VBox/Singleplayer" to="." method="_on_singleplayer_pressed"]
[connection signal="pressed" from="Center/VBox/Host" to="." method="_on_host_pressed"]
[connection signal="pressed" from="Center/VBox/Join" to="." method="_on_join_pressed"]
[connection signal="pressed" from="Center/VBox/Options" to="." method="_on_options_pressed"]
[connection signal="pressed" from="Center/VBox/Quit" to="." method="_on_quit_pressed"]