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

119 lines
3.5 KiB
Plaintext
Raw Normal View History

2021-12-06 21:56:37 -06:00
[gd_scene load_steps=5 format=2]
2021-11-15 15:02:55 -06:00
2021-12-07 16:09:50 -06:00
[ext_resource path="res://scripts/main.gd" type="Script" id=1]
2021-12-06 21:56:37 -06:00
[ext_resource path="res://assets/fonts/iosevkalyte/iosevkalyte-regular.ttf" type="DynamicFontData" id=2]
2021-12-07 16:09:50 -06:00
[ext_resource path="res://assets/theme.tres" type="Theme" id=3]
2021-11-15 15:02:55 -06:00
2021-12-06 21:56:37 -06:00
[sub_resource type="DynamicFont" id=1]
size = 70
font_data = ExtResource( 2 )
2021-11-15 15:02:55 -06:00
2021-12-06 21:56:37 -06:00
[node name="Control" type="MarginContainer"]
2021-11-15 15:02:55 -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( 3 )
script = ExtResource( 1 )
2021-11-15 15:02:55 -06:00
__meta__ = {
2021-12-06 21:56:37 -06:00
"_edit_use_anchors_": false
2021-11-15 15:02:55 -06:00
}
2021-12-06 21:56:37 -06:00
[node name="VBoxContainer" type="VBoxContainer" parent="."]
margin_right = 984.0
margin_bottom = 560.0
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"]
margin_right = 984.0
margin_bottom = 50.0
alignment = 1
[node name="quit" type="Button" parent="VBoxContainer/HBoxContainer"]
margin_right = 325.0
margin_bottom = 50.0
rect_min_size = Vector2( 150, 50 )
2021-12-07 09:32:20 -06:00
hint_tooltip = "Yeah, let's get out of here."
2021-12-06 21:56:37 -06:00
size_flags_horizontal = 3
size_flags_vertical = 3
theme = ExtResource( 3 )
text = "Quit"
2021-11-15 15:43:33 -06:00
__meta__ = {
"_edit_use_anchors_": false
}
2021-11-15 15:02:55 -06:00
2021-12-06 21:56:37 -06:00
[node name="multiplayer" type="Button" parent="VBoxContainer/HBoxContainer"]
margin_left = 329.0
margin_right = 654.0
margin_bottom = 50.0
rect_min_size = Vector2( 150, 50 )
2021-12-07 09:32:20 -06:00
hint_tooltip = "This is what you came for!"
2021-12-06 21:56:37 -06:00
size_flags_horizontal = 3
size_flags_vertical = 3
theme = ExtResource( 3 )
2021-11-17 08:18:12 -06:00
text = "Multiplayer"
2021-11-15 15:02:55 -06:00
2021-12-06 21:56:37 -06:00
[node name="Singleplayer" type="Button" parent="VBoxContainer/HBoxContainer"]
margin_left = 658.0
margin_right = 984.0
margin_bottom = 50.0
rect_min_size = Vector2( 150, 50 )
2021-12-07 09:32:20 -06:00
hint_tooltip = "This is a multiplayer tech demo, you dunce.
And no, you may not ask why the button is here."
2021-12-06 21:56:37 -06:00
size_flags_horizontal = 3
size_flags_vertical = 3
theme = ExtResource( 3 )
2021-12-07 09:32:20 -06:00
disabled = true
2021-12-06 21:56:37 -06:00
text = "Singleplayer"
2021-11-15 15:43:33 -06:00
__meta__ = {
"_edit_use_anchors_": false
}
2021-11-15 15:02:55 -06:00
2021-12-06 21:56:37 -06:00
[node name="Container" type="CenterContainer" parent="VBoxContainer"]
margin_top = 54.0
margin_right = 984.0
margin_bottom = 560.0
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="VBoxContainer" type="VBoxContainer" parent="VBoxContainer/Container"]
2021-12-07 09:32:20 -06:00
margin_left = 124.0
margin_top = 150.0
margin_right = 859.0
margin_bottom = 356.0
2021-12-06 21:56:37 -06:00
[node name="Label" type="Label" parent="VBoxContainer/Container/VBoxContainer"]
2021-12-07 09:32:20 -06:00
margin_right = 735.0
margin_bottom = 181.0
2021-12-06 21:56:37 -06:00
custom_fonts/font = SubResource( 1 )
2021-12-07 09:32:20 -06:00
text = "Godot HTML5 WebRTC
Multiplayer Tech Demo"
align = 1
valign = 1
2021-12-06 21:56:37 -06:00
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer/Container/VBoxContainer"]
2021-12-07 09:32:20 -06:00
margin_top = 185.0
margin_right = 735.0
margin_bottom = 206.0
2021-12-06 21:56:37 -06:00
alignment = 1
[node name="Label" type="Label" parent="VBoxContainer/Container/VBoxContainer/HBoxContainer"]
2021-12-07 09:32:20 -06:00
margin_left = 305.0
margin_right = 369.0
2021-12-06 21:56:37 -06:00
margin_bottom = 21.0
2021-12-07 09:32:20 -06:00
text = "made by "
2021-12-06 21:56:37 -06:00
[node name="LinkButton" type="LinkButton" parent="VBoxContainer/Container/VBoxContainer/HBoxContainer"]
2021-12-07 09:32:20 -06:00
margin_left = 373.0
margin_right = 429.0
2021-12-06 21:56:37 -06:00
margin_bottom = 21.0
2021-12-07 09:32:20 -06:00
hint_tooltip = "Open https://lyte.dev"
text = "lytedev"
2021-11-15 15:02:55 -06:00
2021-12-06 21:56:37 -06:00
[connection signal="pressed" from="VBoxContainer/HBoxContainer/quit" to="." method="_on_JoinLobbyButton_pressed"]
[connection signal="pressed" from="VBoxContainer/HBoxContainer/multiplayer" to="." method="_on_CreateLobbyButton_pressed"]
[connection signal="pressed" from="VBoxContainer/HBoxContainer/Singleplayer" to="." method="_on_Singleplayer_pressed"]
[connection signal="pressed" from="VBoxContainer/Container/VBoxContainer/HBoxContainer/LinkButton" to="." method="_on_LinkButton_pressed"]