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

192 lines
4.9 KiB
Plaintext
Raw Normal View History

2021-12-02 15:13:12 -06:00
[gd_scene load_steps=3 format=2]
2021-11-15 16:25:13 -06:00
2021-12-07 16:43:37 -06:00
[ext_resource path="res://scripts/screens/multiplayer_lobby.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-15 16:25:13 -06:00
2021-12-06 21:56:37 -06:00
[node name="lobby" 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 )
2021-11-15 16:25:13 -06:00
script = ExtResource( 1 )
2021-12-02 15:13:12 -06:00
__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
2021-12-02 15:13:12 -06:00
2021-12-06 21:56:37 -06:00
[node name="head" type="HBoxContainer" parent="v"]
margin_right = 984.0
margin_bottom = 50.0
[node name="leave_button" type="Button" parent="v/head"]
margin_right = 150.0
margin_bottom = 50.0
rect_min_size = Vector2( 150, 50 )
2021-12-07 09:32:20 -06:00
hint_tooltip = "Multiplayer Lobby List"
2021-12-06 21:56:37 -06:00
text = "Leave"
2021-11-17 13:57:45 -06:00
__meta__ = {
"_edit_use_anchors_": false
}
2021-11-15 16:25:13 -06:00
2021-12-07 16:09:50 -06:00
[node name="lobby_info" type="LineEdit" parent="v/head"]
2021-12-06 21:56:37 -06:00
margin_left = 154.0
2021-12-07 16:09:50 -06:00
margin_top = 9.0
margin_right = 356.0
margin_bottom = 40.0
size_flags_horizontal = 3
size_flags_vertical = 4
text = "Lobby Info"
placeholder_text = "Lobby Name"
[node name="l1" type="Label" parent="v/head"]
margin_left = 360.0
margin_top = 14.0
margin_right = 464.0
margin_bottom = 35.0
text = " Max Players:"
[node name="max_players" type="LineEdit" parent="v/head"]
margin_left = 468.0
margin_top = 9.0
margin_right = 574.0
margin_bottom = 40.0
size_flags_vertical = 4
text = "20"
[node name="lock" type="CheckButton" parent="v/head"]
margin_left = 578.0
margin_right = 706.0
margin_bottom = 50.0
hint_tooltip = "Prevent players from joining to minimize \"Ready Up\" trolling"
text = "Locked"
[node name="start" type="Button" parent="v/head"]
margin_left = 710.0
margin_right = 860.0
margin_bottom = 50.0
rect_min_size = Vector2( 150, 0 )
text = "Start Game"
[node name="ready_up" type="CheckButton" parent="v/head"]
margin_left = 864.0
2021-12-06 21:56:37 -06:00
margin_right = 984.0
margin_bottom = 50.0
2021-12-07 16:09:50 -06:00
text = "Ready"
2021-11-15 16:25:13 -06:00
__meta__ = {
"_edit_use_anchors_": false
}
2021-12-06 21:56:37 -06:00
[node name="body" type="HBoxContainer" parent="v"]
margin_top = 54.0
margin_right = 984.0
margin_bottom = 560.0
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="peers" type="VBoxContainer" parent="v/body"]
2021-12-08 16:35:37 -06:00
margin_right = 194.0
2021-12-06 21:56:37 -06:00
margin_bottom = 506.0
[node name="label" type="Label" parent="v/body/peers"]
2021-12-08 16:35:37 -06:00
margin_right = 194.0
2021-12-06 21:56:37 -06:00
margin_bottom = 21.0
2021-12-07 09:32:20 -06:00
text = "Players: 1"
2021-12-07 16:09:50 -06:00
valign = 2
2021-12-02 15:13:12 -06:00
__meta__ = {
"_edit_use_anchors_": false
}
2021-11-17 13:57:45 -06:00
2021-12-08 16:35:37 -06:00
[node name="p" type="PanelContainer" parent="v/body/peers"]
2021-12-06 21:56:37 -06:00
margin_top = 25.0
2021-12-08 16:35:37 -06:00
margin_right = 194.0
2021-12-06 21:56:37 -06:00
margin_bottom = 506.0
2021-12-08 16:35:37 -06:00
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="peers" type="GridContainer" parent="v/body/peers/p"]
margin_left = 7.0
margin_top = 7.0
margin_right = 187.0
margin_bottom = 474.0
2021-12-07 09:32:20 -06:00
rect_min_size = Vector2( 180, 0 )
2021-12-06 21:56:37 -06:00
size_flags_horizontal = 3
size_flags_vertical = 3
2021-11-15 16:25:13 -06:00
2021-12-06 21:56:37 -06:00
[node name="v" type="VBoxContainer" parent="v/body"]
2021-12-08 16:35:37 -06:00
margin_left = 198.0
2021-12-06 21:56:37 -06:00
margin_right = 984.0
margin_bottom = 506.0
size_flags_horizontal = 3
size_flags_vertical = 3
2021-12-07 13:51:34 -06:00
[node name="chat_head" type="HBoxContainer" parent="v/body/v"]
2021-12-08 16:35:37 -06:00
margin_right = 786.0
2021-12-07 16:09:50 -06:00
margin_bottom = 40.0
2021-12-07 13:51:34 -06:00
size_flags_horizontal = 3
[node name="label" type="Label" parent="v/body/v/chat_head"]
2021-12-08 16:35:37 -06:00
margin_right = 614.0
2021-12-07 16:09:50 -06:00
margin_bottom = 40.0
2021-12-07 13:51:34 -06:00
size_flags_horizontal = 3
size_flags_vertical = 3
2021-12-06 21:56:37 -06:00
text = "Chat"
2021-12-07 16:09:50 -06:00
valign = 2
2021-12-06 21:56:37 -06:00
2021-12-07 16:09:50 -06:00
[node name="auto_scroll" type="CheckButton" parent="v/body/v/chat_head"]
2021-12-08 16:35:37 -06:00
margin_left = 618.0
margin_right = 786.0
2021-12-07 16:09:50 -06:00
margin_bottom = 40.0
2021-12-08 16:35:37 -06:00
size_flags_horizontal = 12
size_flags_vertical = 12
2021-12-07 13:51:34 -06:00
pressed = true
text = "Auto Scroll"
[node name="messages" type="TextEdit" parent="v/body/v"]
2021-12-07 16:09:50 -06:00
margin_top = 44.0
2021-12-08 16:35:37 -06:00
margin_right = 786.0
2021-12-07 09:32:20 -06:00
margin_bottom = 471.0
2021-12-06 21:56:37 -06:00
size_flags_horizontal = 3
size_flags_vertical = 3
2021-12-07 13:51:34 -06:00
text = "# Connecting..."
readonly = true
highlight_current_line = true
highlight_all_occurrences = true
virtual_keyboard_enabled = false
caret_block_mode = true
2021-12-06 21:56:37 -06:00
2021-12-07 09:32:20 -06:00
[node name="h" type="HBoxContainer" parent="v/body/v"]
margin_top = 475.0
2021-12-08 16:35:37 -06:00
margin_right = 786.0
2021-12-07 09:32:20 -06:00
margin_bottom = 506.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="chat" type="LineEdit" parent="v/body/v/h"]
2021-12-08 16:35:37 -06:00
margin_right = 674.0
2021-12-07 09:32:20 -06:00
margin_bottom = 31.0
size_flags_horizontal = 3
size_flags_vertical = 3
clear_button_enabled = true
placeholder_text = "Compose a chat message here, press Enter to send"
[node name="Button" type="Button" parent="v/body/v/h"]
2021-12-08 16:35:37 -06:00
margin_left = 678.0
margin_right = 786.0
2021-12-07 09:32:20 -06:00
margin_bottom = 31.0
size_flags_vertical = 3
text = "Send Message"
2021-12-06 21:56:37 -06:00
[connection signal="pressed" from="v/head/leave_button" to="." method="_on_leave_button_pressed"]
2021-12-07 16:09:50 -06:00
[connection signal="text_changed" from="v/head/lobby_info" to="." method="_on_lobby_info_text_changed"]
2021-12-08 23:39:56 -06:00
[connection signal="pressed" from="v/head/start" to="." method="_on_start_pressed"]
2021-12-07 16:09:50 -06:00
[connection signal="toggled" from="v/head/ready_up" to="." method="_on_ready_up_toggled"]
2021-12-07 09:32:20 -06:00
[connection signal="text_entered" from="v/body/v/h/chat" to="." method="_on_TextEdit_text_entered"]
[connection signal="pressed" from="v/body/v/h/Button" to="." method="_on_Button_pressed"]