204 lines
5.3 KiB
Text
204 lines
5.3 KiB
Text
[gd_scene load_steps=3 format=3 uid="uid://b4luon6xvu53c"]
|
|
|
|
[ext_resource type="Script" uid="uid://cmt5cqjlcnpls" path="res://demo/menu.gd" id="1_ux1fr"]
|
|
[ext_resource type="PackedScene" uid="uid://d20jwlre5rc5m" path="res://demo/demo.tscn" id="2_ouk20"]
|
|
|
|
[node name="Menu" type="Node"]
|
|
script = ExtResource("1_ux1fr")
|
|
multiplayer_scene = ExtResource("2_ouk20")
|
|
|
|
[node name="Level" type="Node" parent="."]
|
|
|
|
[node name="Background" type="ColorRect" parent="."]
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
color = Color(0, 0, 0, 1)
|
|
|
|
[node name="Title" type="Label" parent="."]
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
offset_top = 64.0
|
|
offset_bottom = -662.0
|
|
grow_horizontal = 2
|
|
theme_override_font_sizes/font_size = 30
|
|
text = "SparkyGD"
|
|
horizontal_alignment = 1
|
|
|
|
[node name="Main" type="Control" parent="."]
|
|
layout_mode = 3
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
|
|
[node name="PlayButton" type="Button" parent="Main"]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
offset_top = 104.0
|
|
offset_bottom = -512.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
focus_neighbor_bottom = NodePath("../ExitButton")
|
|
focus_next = NodePath("../ExitButton")
|
|
text = "Play"
|
|
|
|
[node name="HostButton" type="Button" parent="Main"]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
offset_top = 140.0
|
|
offset_bottom = -477.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
text = "Host"
|
|
|
|
[node name="JoinButton" type="Button" parent="Main"]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
offset_left = 1.0
|
|
offset_top = 177.0
|
|
offset_right = 1.0
|
|
offset_bottom = -440.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
text = "Join"
|
|
|
|
[node name="ExitButton" type="Button" parent="Main"]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
offset_top = 214.0
|
|
offset_bottom = -403.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
focus_neighbor_top = NodePath("../PlayButton")
|
|
focus_previous = NodePath("../PlayButton")
|
|
text = "Exit"
|
|
|
|
[node name="Host" type="Control" parent="."]
|
|
visible = false
|
|
layout_mode = 3
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
|
|
[node name="PlayMultiplayerButton" type="Button" parent="Host"]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
offset_top = 106.0
|
|
offset_bottom = -630.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
focus_neighbor_bottom = NodePath("../BackFromHostButton")
|
|
focus_next = NodePath("../BackFromHostButton")
|
|
disabled = true
|
|
text = "Play"
|
|
|
|
[node name="BackFromHostButton" type="Button" parent="Host"]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
offset_top = 138.0
|
|
offset_bottom = -598.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
focus_neighbor_top = NodePath("../PlayMultiplayerButton")
|
|
focus_previous = NodePath("../PlayMultiplayerButton")
|
|
text = "Back"
|
|
|
|
[node name="PlayerHostedLabel" type="Label" parent="Host"]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
offset_top = 170.0
|
|
offset_bottom = -566.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
text = "Waiting for player to join..."
|
|
horizontal_alignment = 1
|
|
|
|
[node name="Join" type="Control" parent="."]
|
|
visible = false
|
|
layout_mode = 3
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
|
|
[node name="AddressBar" type="LineEdit" parent="Join"]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
offset_top = 106.0
|
|
offset_bottom = -630.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
placeholder_text = "IP Address or Domain"
|
|
alignment = 1
|
|
|
|
[node name="JoinRoomButton" type="Button" parent="Join"]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
offset_top = 138.0
|
|
offset_bottom = -598.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
text = "Join"
|
|
|
|
[node name="BackFromJoinButton" type="Button" parent="Join"]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
offset_top = 170.0
|
|
offset_bottom = -566.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
focus_neighbor_top = NodePath("../PlayButton")
|
|
focus_previous = NodePath("../PlayButton")
|
|
text = "Back"
|
|
|
|
[node name="PlayerJoinedLabel" type="Label" parent="Join"]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
offset_top = 201.0
|
|
offset_bottom = -535.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
horizontal_alignment = 1
|
|
|
|
[node name="MultiplayerSpawner" type="MultiplayerSpawner" parent="."]
|
|
_spawnable_scenes = PackedStringArray("uid://d20jwlre5rc5m")
|
|
spawn_path = NodePath("../Level")
|
|
|
|
[connection signal="pressed" from="Main/PlayButton" to="." method="_on_play_button_pressed"]
|
|
[connection signal="pressed" from="Main/HostButton" to="." method="_on_host_button_pressed"]
|
|
[connection signal="pressed" from="Main/JoinButton" to="." method="_on_join_button_pressed"]
|
|
[connection signal="pressed" from="Main/ExitButton" to="." method="_on_exit_button_pressed"]
|
|
[connection signal="pressed" from="Host/PlayMultiplayerButton" to="." method="_on_play_multiplayer_button_pressed"]
|
|
[connection signal="pressed" from="Host/BackFromHostButton" to="." method="_on_back_from_host_button_pressed"]
|
|
[connection signal="pressed" from="Join/JoinRoomButton" to="." method="_on_join_room_button_pressed"]
|
|
[connection signal="pressed" from="Join/BackFromJoinButton" to="." method="_on_back_from_join_button_pressed"]
|