godot-webrtc-mplayer-testing/screens/lobby_browser.tscn

126 lines
3.1 KiB
Plaintext
Raw Permalink Normal View History

2021-12-08 16:35:37 -06:00
[gd_scene load_steps=3 format=2]
2021-11-17 08:18:12 -06:00
2021-12-07 16:43:37 -06:00
[ext_resource path="res://scripts/screens/lobby_browser.gd" type="Script" id=1]
2021-12-07 16:09:50 -06:00
[ext_resource path="res://assets/theme.tres" type="Theme" id=2]
2021-11-17 08:18:12 -06:00
2021-12-06 21:56:37 -06:00
[node name="Control" type="MarginContainer"]
2021-11-17 08:18:12 -06:00
anchor_right = 1.0
anchor_bottom = 1.0
2021-12-06 21:56:37 -06:00
margin_left = 20.0
margin_top = 20.0
margin_right = -20.0
margin_bottom = -20.0
theme = ExtResource( 2 )
2021-11-17 08:18:12 -06:00
script = ExtResource( 1 )
__meta__ = {
"_edit_use_anchors_": false
}
2021-12-06 21:56:37 -06:00
[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"]
2021-12-08 16:35:37 -06:00
margin_right = 490.0
2021-12-06 21:56:37 -06:00
margin_bottom = 50.0
grow_horizontal = 2
grow_vertical = 2
rect_min_size = Vector2( 150, 50 )
2021-12-07 09:32:20 -06:00
hint_tooltip = "Main Menu"
2021-12-06 21:56:37 -06:00
size_flags_horizontal = 3
size_flags_vertical = 3
2021-11-17 08:18:12 -06:00
text = "Back"
__meta__ = {
"_edit_use_anchors_": false
}
2021-12-06 21:56:37 -06:00
[node name="create_lobby" type="Button" parent="v/head"]
2021-12-08 16:35:37 -06:00
margin_left = 494.0
margin_right = 984.0
2021-12-06 21:56:37 -06:00
margin_bottom = 50.0
rect_min_size = Vector2( 150, 50 )
2021-12-07 09:32:20 -06:00
hint_tooltip = "Create your own public lobby that any player may join"
2021-12-06 21:56:37 -06:00
size_flags_horizontal = 3
size_flags_vertical = 3
2021-11-17 08:18:12 -06:00
text = "Create Lobby"
__meta__ = {
"_edit_use_anchors_": false
}
2021-12-06 21:56:37 -06:00
[node name="subhead" type="HBoxContainer" parent="v"]
margin_top = 54.0
margin_right = 984.0
2021-12-07 09:32:20 -06:00
margin_bottom = 85.0
2021-12-08 23:39:56 -06:00
size_flags_horizontal = 3
2021-12-06 21:56:37 -06:00
[node name="label" type="Label" parent="v/subhead"]
2021-12-07 09:32:20 -06:00
margin_right = 830.0
margin_bottom = 31.0
size_flags_horizontal = 3
size_flags_vertical = 3
2021-12-06 21:56:37 -06:00
text = "Active Lobbies: 0"
2021-12-07 09:32:20 -06:00
valign = 1
[node name="display_name" type="LineEdit" parent="v/subhead"]
margin_left = 834.0
margin_right = 984.0
margin_bottom = 31.0
rect_min_size = Vector2( 150, 0 )
placeholder_text = "Your Name Here"
2021-12-06 21:56:37 -06:00
[node name="body" type="ScrollContainer" parent="v"]
2021-12-08 23:39:56 -06:00
margin_top = 89.0
2021-12-06 21:56:37 -06:00
margin_right = 984.0
margin_bottom = 560.0
size_flags_horizontal = 3
size_flags_vertical = 3
2021-12-08 16:35:37 -06:00
[node name="p" type="PanelContainer" parent="v/body"]
2021-12-06 21:56:37 -06:00
margin_right = 984.0
2021-12-08 23:39:56 -06:00
margin_bottom = 471.0
2021-12-08 16:35:37 -06:00
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="lobbies" type="GridContainer" parent="v/body/p"]
margin_left = 7.0
margin_top = 7.0
margin_right = 977.0
2021-12-08 23:39:56 -06:00
margin_bottom = 464.0
2021-12-06 21:56:37 -06:00
size_flags_horizontal = 3
size_flags_vertical = 3
2021-11-17 08:18:12 -06:00
2021-12-08 16:35:37 -06:00
[node name="zero_state" type="CenterContainer" parent="v/body/p/lobbies"]
margin_right = 970.0
2021-12-08 23:39:56 -06:00
margin_bottom = 457.0
2021-12-08 16:35:37 -06:00
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="Label" type="Label" parent="v/body/p/lobbies/zero_state"]
2021-12-08 16:51:49 -06:00
margin_left = 177.0
2021-12-08 23:39:56 -06:00
margin_top = 218.0
2021-12-08 16:51:49 -06:00
margin_right = 793.0
2021-12-08 23:39:56 -06:00
margin_bottom = 239.0
2021-12-08 16:35:37 -06:00
size_flags_horizontal = 3
size_flags_vertical = 3
text = "Looks like there are no active lobbies at the moment! Why don't you make one?"
align = 1
valign = 1
2021-12-07 16:43:37 -06:00
2021-12-06 21:56:37 -06:00
[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"]
2021-12-07 09:32:20 -06:00
[connection signal="text_changed" from="v/subhead/display_name" to="." method="_on_display_name_text_changed"]