173 lines
6.1 KiB
Plaintext
173 lines
6.1 KiB
Plaintext
[gd_scene 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" unique_id=176078763 groups=["level_spawner"]]
|
|
_spawnable_scenes = PackedStringArray("uid://ti65jukt8gvs", "uid://ck4x56txf676a", "uid://dewb10lmvj1yy")
|
|
spawn_path = NodePath(".")
|
|
script = ExtResource("1_lckj3")
|
|
|
|
[node name="Setup" type="Control" parent="." unique_id=592991887 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" unique_id=774991646]
|
|
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_id=709115404]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
|
|
[node name="HostButton" type="Button" parent="Setup/Panel/Menu" unique_id=1601205077]
|
|
layout_mode = 2
|
|
text = "Host Match"
|
|
|
|
[node name="JoinButton" type="Button" parent="Setup/Panel/Menu" unique_id=1615627263]
|
|
layout_mode = 2
|
|
text = "Join Match"
|
|
|
|
[node name="BackButton" type="Button" parent="Setup/Panel/Menu" unique_id=254059501]
|
|
layout_mode = 2
|
|
text = "Back"
|
|
|
|
[node name="Hosting" type="VBoxContainer" parent="Setup/Panel" unique_id=407107849]
|
|
unique_name_in_owner = true
|
|
visible = false
|
|
layout_mode = 2
|
|
alignment = 1
|
|
|
|
[node name="Label" type="Label" parent="Setup/Panel/Hosting" unique_id=2125301460]
|
|
layout_mode = 2
|
|
text = "HOSTING MATCH"
|
|
horizontal_alignment = 1
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="Setup/Panel/Hosting" unique_id=928342038]
|
|
layout_mode = 2
|
|
|
|
[node name="Label" type="Label" parent="Setup/Panel/Hosting/HBoxContainer" unique_id=363040015]
|
|
layout_mode = 2
|
|
text = "Handle"
|
|
|
|
[node name="HostHandle" type="TextEdit" parent="Setup/Panel/Hosting/HBoxContainer" unique_id=2061861493]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
|
|
[node name="HostButton" type="Button" parent="Setup/Panel/Hosting" unique_id=1547594882]
|
|
layout_mode = 2
|
|
text = "HOST"
|
|
|
|
[node name="BackButton" type="Button" parent="Setup/Panel/Hosting" unique_id=1120824464]
|
|
layout_mode = 2
|
|
text = "Back"
|
|
|
|
[node name="Host Waiting" type="VBoxContainer" parent="Setup/Panel" unique_id=115149027]
|
|
unique_name_in_owner = true
|
|
visible = false
|
|
layout_mode = 2
|
|
alignment = 1
|
|
|
|
[node name="Label" type="Label" parent="Setup/Panel/Host Waiting" unique_id=1590472201]
|
|
layout_mode = 2
|
|
text = "WAITING FOR OPPONENT"
|
|
horizontal_alignment = 1
|
|
|
|
[node name="RoomLabel" type="Label" parent="Setup/Panel/Host Waiting" unique_id=773514896]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
text = "WAITING FOR OPPONENT"
|
|
horizontal_alignment = 1
|
|
|
|
[node name="PanelContainer" type="PanelContainer" parent="Setup/Panel/Host Waiting" unique_id=40497166]
|
|
layout_mode = 2
|
|
|
|
[node name="ParticipantsText" type="RichTextLabel" parent="Setup/Panel/Host Waiting/PanelContainer" unique_id=371399776]
|
|
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_id=173398251]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
disabled = true
|
|
text = "START"
|
|
|
|
[node name="ExitButton" type="Button" parent="Setup/Panel/Host Waiting" unique_id=1286983085]
|
|
layout_mode = 2
|
|
text = "EXIT"
|
|
|
|
[node name="Joining" type="VBoxContainer" parent="Setup/Panel" unique_id=2020733221]
|
|
unique_name_in_owner = true
|
|
visible = false
|
|
layout_mode = 2
|
|
alignment = 1
|
|
|
|
[node name="Label" type="Label" parent="Setup/Panel/Joining" unique_id=1436620775]
|
|
layout_mode = 2
|
|
text = "JOINING MATCH"
|
|
horizontal_alignment = 1
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="Setup/Panel/Joining" unique_id=104470221]
|
|
layout_mode = 2
|
|
|
|
[node name="Label" type="Label" parent="Setup/Panel/Joining/HBoxContainer" unique_id=1027524355]
|
|
layout_mode = 2
|
|
text = "HANDLE"
|
|
|
|
[node name="JoinHandle" type="TextEdit" parent="Setup/Panel/Joining/HBoxContainer" unique_id=167793285]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
|
|
[node name="HBoxContainer2" type="HBoxContainer" parent="Setup/Panel/Joining" unique_id=1688744864]
|
|
layout_mode = 2
|
|
|
|
[node name="Label" type="Label" parent="Setup/Panel/Joining/HBoxContainer2" unique_id=110317980]
|
|
layout_mode = 2
|
|
text = "ROOM NAME"
|
|
|
|
[node name="RoomEdit" type="TextEdit" parent="Setup/Panel/Joining/HBoxContainer2" unique_id=591919434]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
|
|
[node name="JoinButton" type="Button" parent="Setup/Panel/Joining" unique_id=1484301932]
|
|
layout_mode = 2
|
|
text = "JOIN"
|
|
|
|
[node name="BackButton" type="Button" parent="Setup/Panel/Joining" unique_id=2128199766]
|
|
layout_mode = 2
|
|
text = "Back"
|
|
|
|
[connection signal="spawned" from="." to="." method="_on_level_spawned"]
|
|
[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"]
|