[gd_scene load_steps=2 format=3 uid="uid://dnqi0ih2hcpym"]

[ext_resource type="Script" path="res://scenes/menus/main/main_menu.gd" id="1_mns85"]

[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
size_flags_horizontal = 4
script = ExtResource("1_mns85")

[node name="Buttons" type="VBoxContainer" parent="."]
layout_mode = 1
anchors_preset = 4
anchor_top = 0.5
anchor_bottom = 0.5
offset_top = -21.5
offset_right = 38.0
offset_bottom = 21.5
grow_vertical = 2

[node name="CreateServer" type="Button" parent="Buttons"]
layout_mode = 2
text = "Create server"

[node name="Join" type="Button" parent="Buttons"]
layout_mode = 2
text = "Join"

[node name="CreateServerMenu" type="VBoxContainer" parent="."]
visible = false
layout_mode = 1
anchors_preset = 11
anchor_left = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 0
grow_vertical = 2

[node name="Port" type="HBoxContainer" parent="CreateServerMenu"]
layout_mode = 2

[node name="Label" type="Label" parent="CreateServerMenu/Port"]
layout_mode = 2
text = "Port"

[node name="TextEdit" type="TextEdit" parent="CreateServerMenu/Port"]
clip_contents = false
custom_minimum_size = Vector2(100, 0)
layout_mode = 2
tooltip_text = "On which port to run the server
"
text = "27015"

[node name="MapList" type="ItemList" parent="CreateServerMenu"]
custom_minimum_size = Vector2(200, 200)
layout_mode = 2

[node name="Create" type="Button" parent="CreateServerMenu"]
layout_mode = 2
text = "Create"

[node name="Close" type="Button" parent="CreateServerMenu"]
layout_mode = 2
text = "Close
"

[node name="JoinServerMenu" type="VBoxContainer" parent="."]
visible = false
layout_mode = 1
anchors_preset = 1
anchor_left = 1.0
anchor_right = 1.0
offset_left = -200.0
offset_bottom = 120.0
grow_horizontal = 0

[node name="Host" type="HBoxContainer" parent="JoinServerMenu"]
layout_mode = 2

[node name="Label" type="Label" parent="JoinServerMenu/Host"]
layout_mode = 2
text = "Host"

[node name="TextEdit" type="TextEdit" parent="JoinServerMenu/Host"]
clip_contents = false
custom_minimum_size = Vector2(100, 0)
layout_mode = 2
tooltip_text = "On which port to run the server
"
text = "127.0.0.1"

[node name="Port" type="HBoxContainer" parent="JoinServerMenu"]
layout_mode = 2

[node name="Label" type="Label" parent="JoinServerMenu/Port"]
layout_mode = 2
text = "Port"

[node name="TextEdit" type="TextEdit" parent="JoinServerMenu/Port"]
clip_contents = false
custom_minimum_size = Vector2(100, 0)
layout_mode = 2
tooltip_text = "On which port to run the server
"
text = "27015"

[node name="Join" type="Button" parent="JoinServerMenu"]
layout_mode = 2
text = "Join"

[node name="Close" type="Button" parent="JoinServerMenu"]
layout_mode = 2
text = "Close
"

[connection signal="pressed" from="Buttons/CreateServer" to="." method="_on_create_server_pressed"]
[connection signal="pressed" from="Buttons/Join" to="." method="_on_join_pressed"]
[connection signal="item_selected" from="CreateServerMenu/MapList" to="." method="_on_map_list_item_selected"]
[connection signal="pressed" from="CreateServerMenu/Create" to="." method="_on_create_pressed"]
[connection signal="pressed" from="CreateServerMenu/Close" to="." method="_on_close_create_pressed"]
[connection signal="pressed" from="JoinServerMenu/Join" to="." method="_on_join_server_pressed"]
[connection signal="pressed" from="JoinServerMenu/Close" to="." method="_on_close_join_pressed"]
