[gd_scene load_steps=2 format=3 uid="uid://cjnws52vwfxvq"] [ext_resource type="Script" uid="uid://dep7nr2nkdmga" path="res://scripts/multiplayer_setup.gd" id="1_lckj3"] [node name="MultiplayerSetup" type="MultiplayerSpawner" groups=["level_spawner"]] _spawnable_scenes = PackedStringArray("uid://ti65jukt8gvs") spawn_path = NodePath(".") script = ExtResource("1_lckj3") [node name="Setup" type="Control" parent="." groups=["scenes"]] unique_name_in_owner = true layout_mode = 3 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 [node name="Panel" type="PanelContainer" parent="Setup"] custom_minimum_size = Vector2(400, 400) layout_mode = 1 anchors_preset = 8 anchor_left = 0.5 anchor_top = 0.5 anchor_right = 0.5 anchor_bottom = 0.5 offset_left = -200.0 offset_top = -200.0 offset_right = 200.0 offset_bottom = 200.0 grow_horizontal = 2 grow_vertical = 2 [node name="Menu" type="VBoxContainer" parent="Setup/Panel"] unique_name_in_owner = true layout_mode = 2 [node name="HostButton" type="Button" parent="Setup/Panel/Menu"] layout_mode = 2 text = "Host Match" [node name="JoinButton" type="Button" parent="Setup/Panel/Menu"] layout_mode = 2 text = "Join Match" [node name="BackButton" type="Button" parent="Setup/Panel/Menu"] layout_mode = 2 text = "Back" [node name="Hosting" type="VBoxContainer" parent="Setup/Panel"] unique_name_in_owner = true visible = false layout_mode = 2 alignment = 1 [node name="Label" type="Label" parent="Setup/Panel/Hosting"] layout_mode = 2 text = "HOSTING MATCH" horizontal_alignment = 1 [node name="HBoxContainer" type="HBoxContainer" parent="Setup/Panel/Hosting"] layout_mode = 2 [node name="Label" type="Label" parent="Setup/Panel/Hosting/HBoxContainer"] layout_mode = 2 text = "Handle" [node name="HostHandle" type="TextEdit" parent="Setup/Panel/Hosting/HBoxContainer"] unique_name_in_owner = true layout_mode = 2 size_flags_horizontal = 3 [node name="HostButton" type="Button" parent="Setup/Panel/Hosting"] layout_mode = 2 text = "HOST" [node name="BackButton" type="Button" parent="Setup/Panel/Hosting"] layout_mode = 2 text = "Back" [node name="Host Waiting" type="VBoxContainer" parent="Setup/Panel"] unique_name_in_owner = true visible = false layout_mode = 2 alignment = 1 [node name="Label" type="Label" parent="Setup/Panel/Host Waiting"] layout_mode = 2 text = "WAITING FOR OPPONENT" horizontal_alignment = 1 [node name="PanelContainer" type="PanelContainer" parent="Setup/Panel/Host Waiting"] layout_mode = 2 [node name="ParticipantsText" type="RichTextLabel" parent="Setup/Panel/Host Waiting/PanelContainer"] unique_name_in_owner = true custom_minimum_size = Vector2(0, 70) layout_mode = 2 size_flags_horizontal = 3 bbcode_enabled = true text = "[b]*YOU (Host)[/b] [color=\"FFFF00\"]*THEM (Opponent)[/color]" [node name="StartButton" type="Button" parent="Setup/Panel/Host Waiting"] unique_name_in_owner = true layout_mode = 2 disabled = true text = "START" [node name="ExitButton" type="Button" parent="Setup/Panel/Host Waiting"] layout_mode = 2 text = "EXIT" [node name="Joining" type="VBoxContainer" parent="Setup/Panel"] unique_name_in_owner = true visible = false layout_mode = 2 alignment = 1 [node name="Label" type="Label" parent="Setup/Panel/Joining"] layout_mode = 2 text = "JOINING MATCH" horizontal_alignment = 1 [node name="HBoxContainer" type="HBoxContainer" parent="Setup/Panel/Joining"] layout_mode = 2 [node name="Label" type="Label" parent="Setup/Panel/Joining/HBoxContainer"] layout_mode = 2 text = "HANDLE" [node name="JoinHandle" type="TextEdit" parent="Setup/Panel/Joining/HBoxContainer"] unique_name_in_owner = true layout_mode = 2 size_flags_horizontal = 3 [node name="HBoxContainer2" type="HBoxContainer" parent="Setup/Panel/Joining"] layout_mode = 2 [node name="Label" type="Label" parent="Setup/Panel/Joining/HBoxContainer2"] layout_mode = 2 text = "MATCH CODE" [node name="TextEdit" type="TextEdit" parent="Setup/Panel/Joining/HBoxContainer2"] layout_mode = 2 size_flags_horizontal = 3 [node name="JoinButton" type="Button" parent="Setup/Panel/Joining"] layout_mode = 2 text = "JOIN" [node name="BackButton" type="Button" parent="Setup/Panel/Joining"] layout_mode = 2 text = "Back" [connection signal="pressed" from="Setup/Panel/Menu/HostButton" to="." method="_on_host_game_button_pressed"] [connection signal="pressed" from="Setup/Panel/Menu/JoinButton" to="." method="_on_join_game_button_pressed"] [connection signal="pressed" from="Setup/Panel/Menu/BackButton" to="." method="_on_menu_back_button_pressed"] [connection signal="pressed" from="Setup/Panel/Hosting/HostButton" to="." method="_on_start_hosting_button_pressed"] [connection signal="pressed" from="Setup/Panel/Hosting/BackButton" to="." method="_on_hosting_back_button_pressed"] [connection signal="pressed" from="Setup/Panel/Host Waiting/StartButton" to="." method="_on_start_game_button_pressed"] [connection signal="pressed" from="Setup/Panel/Host Waiting/ExitButton" to="." method="_on_waiting_back_button_pressed"] [connection signal="pressed" from="Setup/Panel/Joining/JoinButton" to="." method="_on_join_button_pressed"] [connection signal="pressed" from="Setup/Panel/Joining/BackButton" to="." method="_on_joining_back_button_pressed"]