godot-webrtc-mplayer-testing/multiplayer.tscn
2021-12-06 21:56:37 -06:00

107 lines
2.7 KiB
Plaintext

[gd_scene load_steps=3 format=2]
[ext_resource path="res://multiplayer.gd" type="Script" id=1]
[ext_resource path="res://theme.tres" type="Theme" id=2]
[node name="Control" type="MarginContainer"]
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = 20.0
margin_top = 20.0
margin_right = -20.0
margin_bottom = -20.0
theme = ExtResource( 2 )
script = ExtResource( 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="v" type="VBoxContainer" parent="."]
margin_right = 984.0
margin_bottom = 560.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="head" type="HBoxContainer" parent="v"]
margin_right = 984.0
margin_bottom = 50.0
grow_horizontal = 2
grow_vertical = 2
alignment = 1
__meta__ = {
"_edit_group_": true,
"_edit_lock_": true
}
[node name="back" type="Button" parent="v/head"]
margin_right = 325.0
margin_bottom = 50.0
grow_horizontal = 2
grow_vertical = 2
rect_min_size = Vector2( 150, 50 )
size_flags_horizontal = 3
size_flags_vertical = 3
text = "Back"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="create_lobby" type="Button" parent="v/head"]
margin_left = 329.0
margin_right = 654.0
margin_bottom = 50.0
rect_min_size = Vector2( 150, 50 )
size_flags_horizontal = 3
size_flags_vertical = 3
text = "Create Lobby"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="join" type="Button" parent="v/head"]
margin_left = 658.0
margin_right = 984.0
margin_bottom = 50.0
rect_min_size = Vector2( 150, 50 )
size_flags_horizontal = 3
size_flags_vertical = 3
text = "Join"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="subhead" type="HBoxContainer" parent="v"]
margin_top = 54.0
margin_right = 984.0
margin_bottom = 75.0
[node name="label" type="Label" parent="v/subhead"]
margin_right = 136.0
margin_bottom = 21.0
text = "Active Lobbies: 0"
[node name="body" type="ScrollContainer" parent="v"]
margin_top = 79.0
margin_right = 984.0
margin_bottom = 560.0
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="lobbies" type="ItemList" parent="v/body"]
margin_right = 984.0
margin_bottom = 481.0
size_flags_horizontal = 3
size_flags_vertical = 3
same_column_width = true
__meta__ = {
"_edit_use_anchors_": false
}
[connection signal="pressed" from="v/head/back" to="." method="_on_back_pressed"]
[connection signal="pressed" from="v/head/create_lobby" to="." method="_on_create_lobby_pressed"]
[connection signal="pressed" from="v/head/join" to="." method="_on_join_pressed"]
[connection signal="item_activated" from="v/body/lobbies" to="." method="_on_lobbies_item_activated"]
[connection signal="item_selected" from="v/body/lobbies" to="." method="_on_lobbies_item_selected"]
[connection signal="nothing_selected" from="v/body/lobbies" to="." method="_on_lobbies_nothing_selected"]