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

[ext_resource type="Script" uid="uid://baxkcpwuj61it" path="res://menu.gd" id="1_fyqef"]
[ext_resource type="Script" uid="uid://uwpqjqvde2ot" path="res://lobby.gd" id="2_m6e0p"]
[ext_resource type="PackedScene" uid="uid://dhc4noca3k127" path="res://chara_select.tscn" id="3_27fn8"]

[node name="scene" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2

[node name="main_menu" type="Control" parent="."]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_fyqef")

[node name="Net" type="VBoxContainer" parent="main_menu"]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -130.5
offset_top = -64.0
offset_right = 130.5
offset_bottom = 64.0
grow_horizontal = 2
grow_vertical = 2

[node name="Direct" type="Label" parent="main_menu/Net"]
layout_mode = 2
text = "Direct connect:"

[node name="Options" type="HBoxContainer" parent="main_menu/Net"]
layout_mode = 2

[node name="address" type="LineEdit" parent="main_menu/Net/Options"]
custom_minimum_size = Vector2(96, 0)
layout_mode = 2
placeholder_text = "127.0.0.1"

[node name="port" type="LineEdit" parent="main_menu/Net/Options"]
layout_mode = 2
placeholder_text = "60001"

[node name="pname" type="HBoxContainer" parent="main_menu/Net"]
layout_mode = 2

[node name="Nickname" type="Label" parent="main_menu/Net/pname"]
layout_mode = 2
text = "Nickname:"

[node name="Name" type="LineEdit" parent="main_menu/Net/pname"]
custom_minimum_size = Vector2(128, 0)
layout_mode = 2

[node name="buttons" type="HBoxContainer" parent="main_menu/Net"]
layout_mode = 2

[node name="Host" type="Button" parent="main_menu/Net/buttons"]
layout_mode = 2
text = "Host"

[node name="Join" type="Button" parent="main_menu/Net/buttons"]
layout_mode = 2
text = "Join"

[node name="host_note" type="Label" parent="main_menu/Net/buttons"]
layout_mode = 2
text = "(host ignores address)"

[node name="Lobby" type="Control" parent="."]
visible = false
layout_mode = 1
anchors_preset = 0
script = ExtResource("2_m6e0p")

[node name="halves" type="HBoxContainer" parent="Lobby"]
layout_mode = 0
offset_right = 1152.0
offset_bottom = 648.0
alignment = 1

[node name="fuck_layouts" type="VBoxContainer" parent="Lobby/halves"]
layout_mode = 2

[node name="menu_shiz" type="HBoxContainer" parent="Lobby/halves/fuck_layouts"]
layout_mode = 2

[node name="chats" type="VBoxContainer" parent="Lobby/halves/fuck_layouts/menu_shiz"]
layout_mode = 2

[node name="elder" type="ScrollContainer" parent="Lobby/halves/fuck_layouts/menu_shiz/chats"]
custom_minimum_size = Vector2(512, 128)
layout_mode = 2

[node name="messages" type="VBoxContainer" parent="Lobby/halves/fuck_layouts/menu_shiz/chats/elder"]
layout_mode = 2

[node name="shitpost" type="HBoxContainer" parent="Lobby/halves/fuck_layouts/menu_shiz/chats"]
custom_minimum_size = Vector2(512, 0)
layout_mode = 2

[node name="input" type="LineEdit" parent="Lobby/halves/fuck_layouts/menu_shiz/chats/shitpost"]
layout_mode = 2
size_flags_horizontal = 3
placeholder_text = "ni-"
keep_editing_on_text_submit = true

[node name="send_message" type="Button" parent="Lobby/halves/fuck_layouts/menu_shiz/chats/shitpost"]
layout_mode = 2
text = "Shitpost"

[node name="buttons" type="VBoxContainer" parent="Lobby/halves/fuck_layouts/menu_shiz"]
layout_mode = 2

[node name="start" type="Button" parent="Lobby/halves/fuck_layouts/menu_shiz/buttons"]
layout_mode = 2
text = "Start"

[node name="leave" type="Button" parent="Lobby/halves/fuck_layouts/menu_shiz/buttons"]
layout_mode = 2
text = "Leave"

[node name="idk" type="Button" parent="Lobby/halves/fuck_layouts/menu_shiz/buttons"]
layout_mode = 2
text = "idk"

[node name="player_list" type="HBoxContainer" parent="Lobby/halves/fuck_layouts"]
layout_mode = 2

[node name="player_spawner" type="MultiplayerSpawner" parent="Lobby/halves/fuck_layouts/player_list"]
_spawnable_scenes = PackedStringArray("uid://b25q27admm4le")
spawn_path = NodePath("..")

[node name="chara_select" parent="Lobby/halves" instance=ExtResource("3_27fn8")]
custom_minimum_size = Vector2(576, 648)
layout_mode = 2

[node name="Game" type="Game" parent="."]
visible = false

[connection signal="lobby_join" from="main_menu" to="Lobby" method="start"]
[connection signal="pressed" from="main_menu/Net/buttons/Host" to="main_menu" method="_on_host_pressed"]
[connection signal="pressed" from="main_menu/Net/buttons/Join" to="main_menu" method="_on_join_pressed"]
[connection signal="game_start" from="Lobby" to="Game" method="start"]
[connection signal="text_submitted" from="Lobby/halves/fuck_layouts/menu_shiz/chats/shitpost/input" to="Lobby" method="_on_send_message_pressed"]
[connection signal="pressed" from="Lobby/halves/fuck_layouts/menu_shiz/chats/shitpost/send_message" to="Lobby" method="_on_send_message_pressed"]
[connection signal="pressed" from="Lobby/halves/fuck_layouts/menu_shiz/buttons/start" to="Lobby" method="_start_clicked"]
[connection signal="pressed" from="Lobby/halves/fuck_layouts/menu_shiz/buttons/leave" to="Lobby" method="_leave_clicked"]
[connection signal="pressed" from="Lobby/halves/fuck_layouts/menu_shiz/buttons/idk" to="Lobby" method="_idk_clicked"]
