multiplayer.tscn 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. [gd_scene load_steps=2 format=3 uid="uid://bvnwjpd0f3oa0"]
  2. [ext_resource type="Script" path="res://run/multiplayer.gd" id="1_t2go4"]
  3. [node name="Multiplayer" type="Node"]
  4. script = ExtResource("1_t2go4")
  5. [node name="Level" type="Node" parent="."]
  6. [node name="LevelSpawner" type="MultiplayerSpawner" parent="."]
  7. _spawnable_scenes = PackedStringArray("res://run/levels/destination/final.tscn")
  8. spawn_path = NodePath("../Level")
  9. spawn_limit = 1
  10. [node name="UI" type="Control" parent="."]
  11. process_mode = 3
  12. layout_mode = 3
  13. anchors_preset = 15
  14. anchor_right = 1.0
  15. anchor_bottom = 1.0
  16. grow_horizontal = 2
  17. grow_vertical = 2
  18. [node name="Net" type="VBoxContainer" parent="UI"]
  19. layout_mode = 1
  20. anchors_preset = 15
  21. anchor_right = 1.0
  22. anchor_bottom = 1.0
  23. grow_horizontal = 2
  24. grow_vertical = 2
  25. [node name="Options" type="HBoxContainer" parent="UI/Net"]
  26. layout_mode = 2
  27. [node name="Label" type="Label" parent="UI/Net/Options"]
  28. layout_mode = 2
  29. text = "Direct:"
  30. [node name="Host" type="Button" parent="UI/Net/Options"]
  31. layout_mode = 2
  32. text = "Host"
  33. [node name="Connect" type="Button" parent="UI/Net/Options"]
  34. layout_mode = 2
  35. text = "Connect"
  36. [node name="Remote" type="LineEdit" parent="UI/Net/Options"]
  37. layout_mode = 2
  38. size_flags_horizontal = 3
  39. text = "127.0.0.1"
  40. placeholder_text = "Remote Host"
  41. caret_blink = true
  42. caret_blink_interval = 0.5
  43. [connection signal="pressed" from="UI/Net/Options/Host" to="." method="_on_host_pressed"]
  44. [connection signal="pressed" from="UI/Net/Options/Connect" to="." method="_on_connect_pressed"]