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

109 lines
2.9 KiB
Plaintext
Raw Permalink Normal View History

2021-12-21 17:13:02 -06:00
[gd_scene load_steps=5 format=3 uid="uid://csumlqtlfqex"]
2021-11-15 15:02:55 -06:00
2021-12-21 17:13:02 -06:00
[ext_resource type="FontData" uid="uid://dmi7ehsisf7nj" path="res://assets/fonts/iosevkalyte/iosevkalyte-regular.ttf" id="1"]
[ext_resource type="Script" path="res://scripts/screens/main_menu.gd" id="3"]
[ext_resource type="Theme" uid="uid://2xvhbtvff1sg" path="res://assets/theme.tres" id="4"]
2021-11-15 15:02:55 -06:00
2021-12-21 17:13:02 -06:00
[sub_resource type="Font" id="1"]
data/0 = ExtResource( "1" )
2021-11-15 15:02:55 -06:00
2021-12-15 16:14:36 -06:00
[node name="main_menu" type="MarginContainer"]
2021-11-15 15:02:55 -06:00
anchor_right = 1.0
anchor_bottom = 1.0
2021-12-21 17:13:02 -06:00
theme = ExtResource( "4" )
script = ExtResource( "3" )
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-09 21:10:17 -06:00
[node name="v" type="VBoxContainer" parent="."]
2021-12-21 17:13:02 -06:00
offset_right = 1280.0
offset_bottom = 720.0
2021-12-06 21:56:37 -06:00
2021-12-09 21:10:17 -06:00
[node name="h" type="HBoxContainer" parent="v"]
2021-12-21 17:13:02 -06:00
offset_right = 1280.0
offset_bottom = 50.0
2021-12-06 21:56:37 -06:00
alignment = 1
2021-12-09 21:10:17 -06:00
[node name="quit" type="Button" parent="v/h"]
2021-12-21 17:13:02 -06:00
offset_right = 424.0
offset_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
text = "Quit"
2021-12-09 21:10:17 -06:00
expand_icon = true
2021-11-15 15:43:33 -06:00
__meta__ = {
"_edit_use_anchors_": false
}
2021-11-15 15:02:55 -06:00
2021-12-09 21:10:17 -06:00
[node name="multiplayer" type="Button" parent="v/h"]
2021-12-21 17:13:02 -06:00
offset_left = 428.0
offset_right = 852.0
offset_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
2021-11-17 08:18:12 -06:00
text = "Multiplayer"
2021-11-15 15:02:55 -06:00
2021-12-09 21:10:17 -06:00
[node name="singleplayer" type="Button" parent="v/h"]
2021-12-21 17:13:02 -06:00
offset_left = 856.0
offset_right = 1280.0
offset_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
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-09 21:10:17 -06:00
[node name="c" type="CenterContainer" parent="v"]
2021-12-21 17:13:02 -06:00
offset_top = 54.0
offset_right = 1280.0
offset_bottom = 720.0
2021-12-06 21:56:37 -06:00
size_flags_horizontal = 3
size_flags_vertical = 3
2021-12-09 21:10:17 -06:00
[node name="v" type="VBoxContainer" parent="v/c"]
2021-12-21 17:13:02 -06:00
offset_left = 556.0
offset_top = 295.0
offset_right = 724.0
offset_bottom = 371.0
2021-12-06 21:56:37 -06:00
2021-12-09 21:10:17 -06:00
[node name="title" type="Label" parent="v/c/v"]
2021-12-21 17:13:02 -06:00
offset_right = 168.0
offset_bottom = 48.0
theme_override_fonts/font = SubResource( "1" )
2021-12-07 09:32:20 -06:00
text = "Godot HTML5 WebRTC
Multiplayer Tech Demo"
2021-12-06 21:56:37 -06:00
2021-12-09 21:10:17 -06:00
[node name="h" type="HBoxContainer" parent="v/c/v"]
2021-12-21 17:13:02 -06:00
offset_top = 52.0
offset_right = 168.0
offset_bottom = 76.0
2021-12-06 21:56:37 -06:00
alignment = 1
2021-12-09 21:10:17 -06:00
[node name="made_by" type="Label" parent="v/c/v/h"]
2021-12-21 17:13:02 -06:00
offset_left = 22.0
offset_right = 86.0
offset_bottom = 24.0
2021-12-07 09:32:20 -06:00
text = "made by "
2021-12-06 21:56:37 -06:00
2021-12-09 21:10:17 -06:00
[node name="link" type="LinkButton" parent="v/c/v/h"]
2021-12-21 17:13:02 -06:00
offset_left = 90.0
offset_right = 146.0
offset_bottom = 24.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-09 21:10:17 -06:00
[connection signal="pressed" from="v/h/quit" to="." method="_on_JoinLobbyButton_pressed"]
[connection signal="pressed" from="v/h/multiplayer" to="." method="_on_multiplayer_pressed"]
[connection signal="pressed" from="v/h/singleplayer" to="." method="_on_Singleplayer_pressed"]
[connection signal="pressed" from="v/c/v/h/link" to="." method="_on_LinkButton_pressed"]