[gd_scene load_steps=4 format=3 uid="uid://bvfit0sy2tnw4"]

[ext_resource type="Script" uid="uid://dyyhbd2pbfygi" path="res://Scripts/server_form.gd" id="1_43oaq"]
[ext_resource type="AudioStream" uid="uid://cp6ph4ra7u5rk" path="res://UI/drop_003.ogg" id="2_hirre"]

[sub_resource type="AudioStreamRandomizer" id="AudioStreamRandomizer_3o7ni"]
random_pitch = 1.1
streams_count = 1
stream_0/stream = ExtResource("2_hirre")

[node name="ServerForm" type="PanelContainer" node_paths=PackedStringArray("ip_entry", "port_entry", "host_button", "join_button", "ip_field", "port_field", "players_field", "start_button")]
custom_minimum_size = Vector2(500, 0)
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -81.0
offset_top = -85.5
offset_right = 81.0
offset_bottom = 85.5
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_43oaq")
ip_entry = NodePath("VBoxContainer/IPField/ServerIP")
port_entry = NodePath("VBoxContainer/PortField/ServerPort")
host_button = NodePath("VBoxContainer/ModeContainer/HostButton")
join_button = NodePath("VBoxContainer/ModeContainer/JoinButton")
ip_field = NodePath("VBoxContainer/IPField")
port_field = NodePath("VBoxContainer/PortField")
players_field = NodePath("VBoxContainer/PlayersField")
start_button = NodePath("VBoxContainer/StartButton")

[node name="VBoxContainer" type="VBoxContainer" parent="."]
layout_mode = 2
alignment = 1

[node name="BackButton" type="Button" parent="VBoxContainer"]
layout_mode = 2
text = "Back"

[node name="ModeContainer" type="VBoxContainer" parent="VBoxContainer"]
layout_mode = 2

[node name="HostButton" type="Button" parent="VBoxContainer/ModeContainer"]
layout_mode = 2
text = "Host Game"

[node name="JoinButton" type="Button" parent="VBoxContainer/ModeContainer"]
layout_mode = 2
text = "Join Game"

[node name="IPField" type="HBoxContainer" parent="VBoxContainer"]
visible = false
layout_mode = 2

[node name="Label" type="Label" parent="VBoxContainer/IPField"]
layout_mode = 2
text = "Server IP:"

[node name="ServerIP" type="LineEdit" parent="VBoxContainer/IPField"]
layout_mode = 2
size_flags_horizontal = 3
placeholder_text = "localhost"

[node name="PortField" type="HBoxContainer" parent="VBoxContainer"]
visible = false
layout_mode = 2

[node name="Label" type="Label" parent="VBoxContainer/PortField"]
layout_mode = 2
text = "Server Port:"

[node name="ServerPort" type="LineEdit" parent="VBoxContainer/PortField"]
layout_mode = 2
size_flags_horizontal = 3
placeholder_text = "default"

[node name="PlayersField" type="HBoxContainer" parent="VBoxContainer"]
visible = false
layout_mode = 2

[node name="Label" type="Label" parent="VBoxContainer/PlayersField"]
layout_mode = 2
text = "Max Players"

[node name="HSlider" type="HSlider" parent="VBoxContainer/PlayersField"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 1
max_value = 4.0
value = 4.0
tick_count = 5
ticks_on_borders = true

[node name="Label2" type="Label" parent="VBoxContainer/PlayersField"]
layout_mode = 2
text = "4"

[node name="StartButton" type="Button" parent="VBoxContainer"]
visible = false
layout_mode = 2
text = "Start"

[node name="AudioStreamPlayer" type="AudioStreamPlayer" parent="."]
stream = SubResource("AudioStreamRandomizer_3o7ni")
bus = &"SFX"

[connection signal="mouse_entered" from="VBoxContainer/BackButton" to="." method="_on_button_mouse_entered"]
[connection signal="pressed" from="VBoxContainer/BackButton" to="." method="_on_button_pressed"]
[connection signal="mouse_entered" from="VBoxContainer/ModeContainer/HostButton" to="." method="_on_button_mouse_entered"]
[connection signal="pressed" from="VBoxContainer/ModeContainer/HostButton" to="." method="_on_host_button_pressed"]
[connection signal="mouse_entered" from="VBoxContainer/ModeContainer/JoinButton" to="." method="_on_button_mouse_entered"]
[connection signal="pressed" from="VBoxContainer/ModeContainer/JoinButton" to="." method="_on_join_button_pressed"]
[connection signal="value_changed" from="VBoxContainer/PlayersField/HSlider" to="." method="_on_h_slider_value_changed"]
[connection signal="mouse_entered" from="VBoxContainer/StartButton" to="." method="_on_button_mouse_entered"]
[connection signal="pressed" from="VBoxContainer/StartButton" to="." method="_on_start_button_pressed"]
