mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2025-12-16 05:20:06 +01:00
101 lines
2.3 KiB
Plaintext
101 lines
2.3 KiB
Plaintext
[gd_scene load_steps=2 format=3 uid="uid://cu0ahsy2abs18"]
|
|
|
|
[ext_resource type="Script" uid="uid://bba0o2sydwjoq" path="res://logic/Lobby.cs" id="1"]
|
|
|
|
[node name="Lobby" type="Control"]
|
|
layout_mode = 3
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -320.0
|
|
offset_top = -200.0
|
|
offset_right = 320.0
|
|
offset_bottom = 200.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
size_flags_horizontal = 2
|
|
size_flags_vertical = 2
|
|
|
|
[node name="Title" type="Label" parent="."]
|
|
layout_mode = 0
|
|
offset_left = 210.0
|
|
offset_top = 40.0
|
|
offset_right = 430.0
|
|
offset_bottom = 80.0
|
|
size_flags_horizontal = 2
|
|
size_flags_vertical = 0
|
|
text = "Multiplayer Pong"
|
|
|
|
[node name="LobbyPanel" type="Panel" parent="."]
|
|
layout_mode = 0
|
|
offset_left = 210.0
|
|
offset_top = 160.0
|
|
offset_right = 430.0
|
|
offset_bottom = 270.0
|
|
size_flags_horizontal = 2
|
|
size_flags_vertical = 2
|
|
script = ExtResource("1")
|
|
|
|
[node name="AddressLabel" type="Label" parent="LobbyPanel"]
|
|
layout_mode = 0
|
|
offset_left = 10.0
|
|
offset_top = 10.0
|
|
offset_right = 62.0
|
|
offset_bottom = 24.0
|
|
size_flags_horizontal = 2
|
|
size_flags_vertical = 0
|
|
text = "Address"
|
|
|
|
[node name="Address" type="LineEdit" parent="LobbyPanel"]
|
|
layout_mode = 0
|
|
offset_left = 10.0
|
|
offset_top = 30.0
|
|
offset_right = 210.0
|
|
offset_bottom = 54.0
|
|
size_flags_horizontal = 2
|
|
size_flags_vertical = 2
|
|
text = "127.0.0.1"
|
|
|
|
[node name="HostButton" type="Button" parent="LobbyPanel"]
|
|
layout_mode = 0
|
|
offset_left = 10.0
|
|
offset_top = 60.0
|
|
offset_right = 90.0
|
|
offset_bottom = 80.0
|
|
size_flags_horizontal = 2
|
|
size_flags_vertical = 2
|
|
text = "Host"
|
|
|
|
[node name="JoinButton" type="Button" parent="LobbyPanel"]
|
|
layout_mode = 0
|
|
offset_left = 130.0
|
|
offset_top = 60.0
|
|
offset_right = 210.0
|
|
offset_bottom = 80.0
|
|
size_flags_horizontal = 2
|
|
size_flags_vertical = 2
|
|
text = "Join"
|
|
|
|
[node name="StatusOk" type="Label" parent="LobbyPanel"]
|
|
layout_mode = 0
|
|
offset_left = 10.0
|
|
offset_top = 90.0
|
|
offset_right = 210.0
|
|
offset_bottom = 104.0
|
|
size_flags_horizontal = 2
|
|
size_flags_vertical = 0
|
|
|
|
[node name="StatusFail" type="Label" parent="LobbyPanel"]
|
|
layout_mode = 0
|
|
offset_left = 10.0
|
|
offset_top = 90.0
|
|
offset_right = 210.0
|
|
offset_bottom = 104.0
|
|
size_flags_horizontal = 2
|
|
size_flags_vertical = 0
|
|
|
|
[connection signal="pressed" from="LobbyPanel/HostButton" to="LobbyPanel" method="OnHostPressed"]
|
|
[connection signal="pressed" from="LobbyPanel/JoinButton" to="LobbyPanel" method="OnJoinPressed"]
|