-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMultiplayer.tscn
54 lines (42 loc) · 1.42 KB
/
Multiplayer.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
[gd_scene load_steps=2 format=3 uid="uid://b7oqafyqjhwg2"]
[ext_resource type="Script" path="res://Multiplayer.cs" id="1_o35rt"]
[node name="Multiplayer" type="Node"]
script = ExtResource("1_o35rt")
[node name="Level" type="Node" parent="."]
[node name="MultiplayerSpawner" type="MultiplayerSpawner" parent="."]
_spawnable_scenes = PackedStringArray("res://Level.tscn")
spawn_path = NodePath("../Level")
spawn_limit = 1
[node name="UI" type="Control" parent="."]
layout_mode = 3
anchors_preset = 10
anchor_right = 1.0
offset_bottom = 37.0
grow_horizontal = 2
size_flags_horizontal = 3
mouse_filter = 1
[node name="Net" type="VBoxContainer" parent="UI"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="Options" type="HBoxContainer" parent="UI/Net"]
layout_mode = 2
size_flags_vertical = 3
[node name="Label" type="Label" parent="UI/Net/Options"]
layout_mode = 2
text = "Direct:"
[node name="Host" type="Button" parent="UI/Net/Options"]
layout_mode = 2
text = "Host"
[node name="Connect" type="Button" parent="UI/Net/Options"]
layout_mode = 2
text = "Connect"
[node name="Remote" type="LineEdit" parent="UI/Net/Options"]
layout_mode = 2
size_flags_horizontal = 3
text = "127.0.0.1"
[connection signal="pressed" from="UI/Net/Options/Host" to="." method="OnHostPressed"]
[connection signal="pressed" from="UI/Net/Options/Connect" to="." method="OnConnectPressed"]