clockwork-city/lobby.tscn

107 lines
4.1 KiB
Plaintext
Raw Permalink Normal View History

2026-04-13 11:34:00 -05:00
[gd_scene format=3 uid="uid://dpuwsqorot65h"]
[ext_resource type="Script" uid="uid://ccycmp8aj70fe" path="res://lobby.gd" id="1_2wvic"]
[ext_resource type="Script" uid="uid://cy006uvidc4y" path="res://addons/tube/tube_client.gd" id="2_tftiq"]
[ext_resource type="Script" uid="uid://t4pe7yqc3pnt" path="res://addons/tube/tube_context.gd" id="3_1gg6n"]
[sub_resource type="Resource" id="Resource_x4164"]
script = ExtResource("3_1gg6n")
app_id = "g^o#isR0W!x|+?8"
2026-04-13 12:19:51 -05:00
trackers_urls = Array[String](["wss://tracker.openwebtorrent.com", "wss://tracker.files.fm:7073/announce", "wss://tracker.btorrent.xyz/", "wss://tracker.ghostchu-services.top:443/announce"])
stun_servers_urls = Array[String](["stun:stun.l.google.com:19302", "stun:stun.cloudflare.com:3478", "stun:stun.bethesda.net:3478"])
2026-04-13 11:34:00 -05:00
metadata/_custom_type_script = "uid://t4pe7yqc3pnt"
[node name="Lobby" type="Node" unique_id=459413586]
script = ExtResource("1_2wvic")
[node name="Control" type="Control" parent="." unique_id=1938586159]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="VBoxContainer" type="VBoxContainer" parent="Control" unique_id=1667537625]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="HBoxContainer" type="HBoxContainer" parent="Control/VBoxContainer" unique_id=582834859]
layout_mode = 2
alignment = 1
[node name="Label" type="Label" parent="Control/VBoxContainer/HBoxContainer" unique_id=155939834]
layout_mode = 2
text = "Session: "
[node name="SessionLabel" type="Label" parent="Control/VBoxContainer/HBoxContainer" unique_id=62769493]
unique_name_in_owner = true
layout_mode = 2
[node name="HBoxContainer3" type="HBoxContainer" parent="Control/VBoxContainer" unique_id=1076402293]
layout_mode = 2
alignment = 1
[node name="CreateUsername" type="LineEdit" parent="Control/VBoxContainer/HBoxContainer3" unique_id=1087132623]
unique_name_in_owner = true
custom_minimum_size = Vector2(200, 0)
layout_mode = 2
placeholder_text = "Username"
[node name="CreateSession" type="Button" parent="Control/VBoxContainer/HBoxContainer3" unique_id=1666471286]
layout_mode = 2
size_flags_horizontal = 4
text = "Create Session"
[node name="HBoxContainer2" type="HBoxContainer" parent="Control/VBoxContainer" unique_id=660973022]
layout_mode = 2
alignment = 1
[node name="JoinUsername" type="LineEdit" parent="Control/VBoxContainer/HBoxContainer2" unique_id=629165813]
unique_name_in_owner = true
custom_minimum_size = Vector2(200, 0)
layout_mode = 2
placeholder_text = "Username"
[node name="JoinSessionId" type="LineEdit" parent="Control/VBoxContainer/HBoxContainer2" unique_id=1505533568]
unique_name_in_owner = true
custom_minimum_size = Vector2(200, 0)
layout_mode = 2
placeholder_text = "Session ID"
[node name="JoinSession" type="Button" parent="Control/VBoxContainer/HBoxContainer2" unique_id=1915118933]
layout_mode = 2
text = "Join Session"
[node name="ChatLabel" type="RichTextLabel" parent="Control/VBoxContainer" unique_id=1323781150]
unique_name_in_owner = true
layout_mode = 2
size_flags_vertical = 3
[node name="HBoxContainer4" type="HBoxContainer" parent="Control/VBoxContainer" unique_id=1068695893]
layout_mode = 2
alignment = 1
[node name="ChatTextInput" type="LineEdit" parent="Control/VBoxContainer/HBoxContainer4" unique_id=668903522]
unique_name_in_owner = true
layout_mode = 2
size_flags_horizontal = 3
[node name="Submit" type="Button" parent="Control/VBoxContainer/HBoxContainer4" unique_id=2143524169]
layout_mode = 2
text = "Submit"
[node name="TubeClient" type="Node" parent="." unique_id=1351185338]
unique_name_in_owner = true
script = ExtResource("2_tftiq")
context = SubResource("Resource_x4164")
metadata/_custom_type_script = "uid://cy006uvidc4y"
[connection signal="pressed" from="Control/VBoxContainer/HBoxContainer3/CreateSession" to="." method="handle_create_session"]
[connection signal="pressed" from="Control/VBoxContainer/HBoxContainer2/JoinSession" to="." method="handle_join_session"]
[connection signal="text_submitted" from="Control/VBoxContainer/HBoxContainer4/ChatTextInput" to="." method="handle_chat_update"]