refactor
This commit is contained in:
@@ -1,57 +1,115 @@
|
||||
[gd_scene format=3]
|
||||
[gd_scene format=3 uid="uid://bm5gsrlveyvnk"]
|
||||
|
||||
[ext_resource type="Script" path="res://scenes/menu/main_menu.gd" id="1"]
|
||||
[ext_resource type="Script" uid="uid://d0k5a5qreg1uu" path="res://scenes/menu/main_menu.gd" id="1"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_button"]
|
||||
bg_color = Color(0.2, 0.2, 0.25, 0.9)
|
||||
border_width_bottom = 2
|
||||
border_width_left = 2
|
||||
border_width_right = 2
|
||||
border_width_top = 2
|
||||
border_color = Color(0.7, 0.7, 0.7, 1)
|
||||
|
||||
[node name="MainMenu" type="CanvasLayer"]
|
||||
[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="."]
|
||||
[node name="Background" type="ColorRect" parent="." unique_id=1892952438]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
color = Color(0.08, 0.08, 0.12, 1)
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
color = Color(0.1, 0.1, 0.15, 1)
|
||||
|
||||
[node name="Center" type="CenterContainer" parent="."]
|
||||
[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"]
|
||||
custom_minimum_size = Vector2(320, 0)
|
||||
theme_override_constants/separation = 20
|
||||
[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"]
|
||||
[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
|
||||
theme_override_font_sizes/font_size = 64
|
||||
|
||||
[node name="Spacer" type="Control" parent="Center/VBox"]
|
||||
[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)
|
||||
|
||||
[node name="SingleplayerButton" type="Button" parent="Center/VBox"]
|
||||
custom_minimum_size = Vector2(0, 48)
|
||||
layout_mode = 2
|
||||
text = "Singleplayer"
|
||||
theme_override_styles/normal = SubResource("StyleBoxFlat_button")
|
||||
|
||||
[node name="HostButton" type="Button" parent="Center/VBox"]
|
||||
custom_minimum_size = Vector2(0, 48)
|
||||
text = "Host (bald)"
|
||||
theme_override_styles/normal = SubResource("StyleBoxFlat_button")
|
||||
[node name="Host" type="Button" parent="Center/VBox" unique_id=1117468477]
|
||||
custom_minimum_size = Vector2(0, 40)
|
||||
layout_mode = 2
|
||||
text = "Host"
|
||||
|
||||
[node name="JoinButton" type="Button" parent="Center/VBox"]
|
||||
custom_minimum_size = Vector2(0, 48)
|
||||
text = "Join (bald)"
|
||||
theme_override_styles/normal = SubResource("StyleBoxFlat_button")
|
||||
[node name="Join" type="Button" parent="Center/VBox" unique_id=1669660415]
|
||||
custom_minimum_size = Vector2(0, 40)
|
||||
layout_mode = 2
|
||||
text = "Join"
|
||||
|
||||
[node name="QuitButton" type="Button" parent="Center/VBox"]
|
||||
custom_minimum_size = Vector2(0, 48)
|
||||
[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"
|
||||
theme_override_styles/normal = SubResource("StyleBoxFlat_button")
|
||||
|
||||
[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"]
|
||||
|
||||
Reference in New Issue
Block a user