lobby.tscn 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  1. [gd_scene load_steps=2 format=2]
  2. [ext_resource path="res://lobby.gd" type="Script" id=1]
  3. [node name="lobby" type="Control" index="0"]
  4. anchor_left = 0.0
  5. anchor_top = 0.0
  6. anchor_right = 1.0
  7. anchor_bottom = 1.0
  8. rect_pivot_offset = Vector2( 0, 0 )
  9. mouse_filter = 0
  10. mouse_default_cursor_shape = 0
  11. size_flags_horizontal = 2
  12. size_flags_vertical = 2
  13. script = ExtResource( 1 )
  14. [node name="players" type="Panel" parent="." index="0"]
  15. visible = false
  16. anchor_left = 0.0
  17. anchor_top = 0.0
  18. anchor_right = 0.0
  19. anchor_bottom = 0.0
  20. margin_left = 393.0
  21. margin_top = 113.0
  22. margin_right = 645.0
  23. margin_bottom = 468.0
  24. rect_pivot_offset = Vector2( 0, 0 )
  25. mouse_filter = 0
  26. mouse_default_cursor_shape = 0
  27. size_flags_horizontal = 2
  28. size_flags_vertical = 2
  29. [node name="label" type="Label" parent="players" index="0"]
  30. anchor_left = 0.0
  31. anchor_top = 0.0
  32. anchor_right = 0.0
  33. anchor_bottom = 0.0
  34. margin_left = 26.0
  35. margin_top = 18.0
  36. margin_right = 142.0
  37. margin_bottom = 32.0
  38. rect_pivot_offset = Vector2( 0, 0 )
  39. mouse_filter = 2
  40. mouse_default_cursor_shape = 0
  41. size_flags_horizontal = 2
  42. size_flags_vertical = 0
  43. text = "Awaiting Players..."
  44. percent_visible = 1.0
  45. lines_skipped = 0
  46. max_lines_visible = -1
  47. [node name="start" type="Button" parent="players" index="1"]
  48. anchor_left = 0.0
  49. anchor_top = 0.0
  50. anchor_right = 0.0
  51. anchor_bottom = 0.0
  52. margin_left = 68.0
  53. margin_top = 307.0
  54. margin_right = 193.0
  55. margin_bottom = 336.0
  56. rect_pivot_offset = Vector2( 0, 0 )
  57. focus_mode = 2
  58. mouse_filter = 0
  59. mouse_default_cursor_shape = 0
  60. size_flags_horizontal = 2
  61. size_flags_vertical = 2
  62. toggle_mode = false
  63. enabled_focus_mode = 2
  64. shortcut = null
  65. group = null
  66. text = "START!"
  67. flat = false
  68. align = 1
  69. [node name="list" type="ItemList" parent="players" index="2"]
  70. anchor_left = 0.0
  71. anchor_top = 0.0
  72. anchor_right = 0.0
  73. anchor_bottom = 0.0
  74. margin_left = 25.0
  75. margin_top = 37.0
  76. margin_right = 229.0
  77. margin_bottom = 296.0
  78. rect_pivot_offset = Vector2( 0, 0 )
  79. rect_clip_content = true
  80. focus_mode = 2
  81. mouse_filter = 0
  82. mouse_default_cursor_shape = 0
  83. size_flags_horizontal = 2
  84. size_flags_vertical = 2
  85. items = [ ]
  86. select_mode = 0
  87. icon_mode = 1
  88. fixed_icon_size = Vector2( 0, 0 )
  89. [node name="connect" type="Panel" parent="." index="1"]
  90. anchor_left = 0.0
  91. anchor_top = 0.0
  92. anchor_right = 0.0
  93. anchor_bottom = 0.0
  94. margin_left = 370.0
  95. margin_top = 157.0
  96. margin_right = 647.0
  97. margin_bottom = 324.0
  98. rect_pivot_offset = Vector2( 0, 0 )
  99. mouse_filter = 0
  100. mouse_default_cursor_shape = 0
  101. size_flags_horizontal = 2
  102. size_flags_vertical = 2
  103. [node name="name_label" type="Label" parent="connect" index="0"]
  104. anchor_left = 0.0
  105. anchor_top = 0.0
  106. anchor_right = 0.0
  107. anchor_bottom = 0.0
  108. margin_left = 14.0
  109. margin_top = 11.0
  110. margin_right = 56.0
  111. margin_bottom = 25.0
  112. rect_pivot_offset = Vector2( 0, 0 )
  113. mouse_filter = 2
  114. mouse_default_cursor_shape = 0
  115. size_flags_horizontal = 2
  116. size_flags_vertical = 0
  117. text = "Name:"
  118. percent_visible = 1.0
  119. lines_skipped = 0
  120. max_lines_visible = -1
  121. [node name="name" type="LineEdit" parent="connect" index="1"]
  122. anchor_left = 0.0
  123. anchor_top = 0.0
  124. anchor_right = 0.0
  125. anchor_bottom = 0.0
  126. margin_left = 17.0
  127. margin_top = 30.0
  128. margin_right = 173.0
  129. margin_bottom = 54.0
  130. rect_pivot_offset = Vector2( 0, 0 )
  131. focus_mode = 2
  132. mouse_filter = 0
  133. mouse_default_cursor_shape = 1
  134. size_flags_horizontal = 2
  135. size_flags_vertical = 2
  136. text = "The Warrior"
  137. focus_mode = 2
  138. context_menu_enabled = true
  139. placeholder_alpha = 0.6
  140. caret_blink = false
  141. caret_blink_speed = 0.65
  142. caret_position = 0
  143. [node name="ip_label" type="Label" parent="connect" index="2"]
  144. anchor_left = 0.0
  145. anchor_top = 0.0
  146. anchor_right = 0.0
  147. anchor_bottom = 0.0
  148. margin_left = 15.0
  149. margin_top = 66.0
  150. margin_right = 57.0
  151. margin_bottom = 80.0
  152. rect_pivot_offset = Vector2( 0, 0 )
  153. mouse_filter = 2
  154. mouse_default_cursor_shape = 0
  155. size_flags_horizontal = 2
  156. size_flags_vertical = 0
  157. text = "IP:"
  158. percent_visible = 1.0
  159. lines_skipped = 0
  160. max_lines_visible = -1
  161. [node name="ip" type="LineEdit" parent="connect" index="3"]
  162. anchor_left = 0.0
  163. anchor_top = 0.0
  164. anchor_right = 0.0
  165. anchor_bottom = 0.0
  166. margin_left = 17.0
  167. margin_top = 85.0
  168. margin_right = 173.0
  169. margin_bottom = 109.0
  170. rect_pivot_offset = Vector2( 0, 0 )
  171. focus_mode = 2
  172. mouse_filter = 0
  173. mouse_default_cursor_shape = 1
  174. size_flags_horizontal = 2
  175. size_flags_vertical = 2
  176. text = "127.0.0.1"
  177. focus_mode = 2
  178. context_menu_enabled = true
  179. placeholder_alpha = 0.6
  180. caret_blink = false
  181. caret_blink_speed = 0.65
  182. caret_position = 0
  183. [node name="host" type="Button" parent="connect" index="4"]
  184. anchor_left = 0.0
  185. anchor_top = 0.0
  186. anchor_right = 0.0
  187. anchor_bottom = 0.0
  188. margin_left = 181.0
  189. margin_top = 31.0
  190. margin_right = 246.0
  191. margin_bottom = 51.0
  192. rect_pivot_offset = Vector2( 0, 0 )
  193. focus_mode = 2
  194. mouse_filter = 0
  195. mouse_default_cursor_shape = 0
  196. size_flags_horizontal = 2
  197. size_flags_vertical = 2
  198. toggle_mode = false
  199. enabled_focus_mode = 2
  200. shortcut = null
  201. group = null
  202. text = "Host"
  203. flat = false
  204. align = 1
  205. [node name="join" type="Button" parent="connect" index="5"]
  206. anchor_left = 0.0
  207. anchor_top = 0.0
  208. anchor_right = 0.0
  209. anchor_bottom = 0.0
  210. margin_left = 181.0
  211. margin_top = 87.0
  212. margin_right = 246.0
  213. margin_bottom = 107.0
  214. rect_pivot_offset = Vector2( 0, 0 )
  215. focus_mode = 2
  216. mouse_filter = 0
  217. mouse_default_cursor_shape = 0
  218. size_flags_horizontal = 2
  219. size_flags_vertical = 2
  220. toggle_mode = false
  221. enabled_focus_mode = 2
  222. shortcut = null
  223. group = null
  224. text = "Join"
  225. flat = false
  226. align = 1
  227. [node name="error_label" type="Label" parent="connect" index="6"]
  228. anchor_left = 0.0
  229. anchor_top = 0.0
  230. anchor_right = 0.0
  231. anchor_bottom = 0.0
  232. margin_left = 15.0
  233. margin_top = 125.0
  234. margin_right = 257.0
  235. margin_bottom = 139.0
  236. rect_pivot_offset = Vector2( 0, 0 )
  237. mouse_filter = 2
  238. mouse_default_cursor_shape = 0
  239. size_flags_horizontal = 2
  240. size_flags_vertical = 0
  241. custom_colors/font_color = Color( 0.820312, 0.291595, 0.291595, 1 )
  242. align = 1
  243. percent_visible = 1.0
  244. lines_skipped = 0
  245. max_lines_visible = -1
  246. [node name="error" type="AcceptDialog" parent="." index="2"]
  247. visible = false
  248. anchor_left = 0.0
  249. anchor_top = 0.0
  250. anchor_right = 0.0
  251. anchor_bottom = 0.0
  252. margin_right = 55.0
  253. margin_bottom = 58.0
  254. rect_pivot_offset = Vector2( 0, 0 )
  255. mouse_filter = 0
  256. mouse_default_cursor_shape = 0
  257. size_flags_horizontal = 2
  258. size_flags_vertical = 2
  259. popup_exclusive = false
  260. window_title = "Alert!"
  261. resizable = false
  262. dialog_hide_on_ok = true
  263. [connection signal="pressed" from="players/start" to="." method="_on_start_pressed"]
  264. [connection signal="pressed" from="connect/host" to="." method="_on_host_pressed"]
  265. [connection signal="pressed" from="connect/join" to="." method="_on_join_pressed"]