lobby.tscn 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. [gd_scene load_steps=2 format=2]
  2. [ext_resource path="res://logic/Lobby.cs" type="Script" id=1]
  3. [node name="Lobby" type="Control"]
  4. anchor_left = 0.5
  5. anchor_top = 0.5
  6. anchor_right = 0.5
  7. anchor_bottom = 0.5
  8. offset_left = -320.0
  9. offset_top = -200.0
  10. offset_right = 320.0
  11. offset_bottom = 200.0
  12. size_flags_horizontal = 2
  13. size_flags_vertical = 2
  14. __meta__ = {
  15. "_edit_use_anchors_": false
  16. }
  17. [node name="Title" type="Label" parent="."]
  18. offset_left = 210.0
  19. offset_top = 40.0
  20. offset_right = 430.0
  21. offset_bottom = 80.0
  22. size_flags_horizontal = 2
  23. size_flags_vertical = 0
  24. text = "Multiplayer Pong"
  25. align = 1
  26. valign = 1
  27. [node name="LobbyPanel" type="Panel" parent="."]
  28. offset_left = 210.0
  29. offset_top = 160.0
  30. offset_right = 430.0
  31. offset_bottom = 270.0
  32. size_flags_horizontal = 2
  33. size_flags_vertical = 2
  34. script = ExtResource( 1 )
  35. __meta__ = {
  36. "_edit_use_anchors_": false
  37. }
  38. [node name="AddressLabel" type="Label" parent="LobbyPanel"]
  39. offset_left = 10.0
  40. offset_top = 10.0
  41. offset_right = 62.0
  42. offset_bottom = 24.0
  43. size_flags_horizontal = 2
  44. size_flags_vertical = 0
  45. text = "Address"
  46. [node name="Address" type="LineEdit" parent="LobbyPanel"]
  47. offset_left = 10.0
  48. offset_top = 30.0
  49. offset_right = 210.0
  50. offset_bottom = 54.0
  51. size_flags_horizontal = 2
  52. size_flags_vertical = 2
  53. text = "127.0.0.1"
  54. [node name="HostButton" type="Button" parent="LobbyPanel"]
  55. offset_left = 10.0
  56. offset_top = 60.0
  57. offset_right = 90.0
  58. offset_bottom = 80.0
  59. size_flags_horizontal = 2
  60. size_flags_vertical = 2
  61. text = "Host"
  62. [node name="JoinButton" type="Button" parent="LobbyPanel"]
  63. offset_left = 130.0
  64. offset_top = 60.0
  65. offset_right = 210.0
  66. offset_bottom = 80.0
  67. size_flags_horizontal = 2
  68. size_flags_vertical = 2
  69. text = "Join"
  70. __meta__ = {
  71. "_edit_use_anchors_": false
  72. }
  73. [node name="StatusOk" type="Label" parent="LobbyPanel"]
  74. offset_left = 10.0
  75. offset_top = 90.0
  76. offset_right = 210.0
  77. offset_bottom = 104.0
  78. size_flags_horizontal = 2
  79. size_flags_vertical = 0
  80. custom_colors/font_color = Color(0, 1, 0.015625, 1)
  81. align = 1
  82. [node name="StatusFail" type="Label" parent="LobbyPanel"]
  83. offset_left = 10.0
  84. offset_top = 90.0
  85. offset_right = 210.0
  86. offset_bottom = 104.0
  87. size_flags_horizontal = 2
  88. size_flags_vertical = 0
  89. custom_colors/font_color = Color(1, 0, 0, 1)
  90. align = 1
  91. [connection signal="pressed" from="LobbyPanel/HostButton" to="LobbyPanel" method="OnHostPressed"]
  92. [connection signal="pressed" from="LobbyPanel/JoinButton" to="LobbyPanel" method="OnJoinPressed"]