A team game with an emphasis on movement (with no shooting), inspired by Overwatch and Zineth
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

396 lines
8.5 KiB

  1. [gd_scene load_steps=5 format=2]
  2. [ext_resource path="res://scripts/lobby.gd" type="Script" id=1]
  3. [ext_resource path="res://scripts/hero_select.gd" type="Script" id=2]
  4. [sub_resource type="DynamicFontData" id=2]
  5. font_path = "res://assets/DejaVuSansMono.ttf"
  6. _sections_unfolded = [ "Resource" ]
  7. [sub_resource type="DynamicFont" id=1]
  8. size = 16
  9. use_mipmaps = false
  10. use_filter = false
  11. font_data = SubResource( 2 )
  12. _sections_unfolded = [ "Font", "Resource", "Settings" ]
  13. [node name="Control" type="Control" index="0"]
  14. anchor_left = 0.0
  15. anchor_top = 0.0
  16. anchor_right = 0.0
  17. anchor_bottom = 0.0
  18. margin_left = 80.0
  19. margin_top = 99.0
  20. margin_right = 120.0
  21. margin_bottom = 139.0
  22. rect_pivot_offset = Vector2( 0, 0 )
  23. mouse_filter = 0
  24. mouse_default_cursor_shape = 0
  25. size_flags_horizontal = 1
  26. size_flags_vertical = 1
  27. script = ExtResource( 1 )
  28. _sections_unfolded = [ "Anchor" ]
  29. [node name="Server" type="Button" parent="." 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 = 7.0
  35. margin_top = -9.0
  36. margin_right = 177.0
  37. margin_bottom = 46.0
  38. rect_pivot_offset = Vector2( 0, 0 )
  39. focus_mode = 2
  40. mouse_filter = 0
  41. mouse_default_cursor_shape = 0
  42. size_flags_horizontal = 1
  43. size_flags_vertical = 1
  44. toggle_mode = false
  45. enabled_focus_mode = 2
  46. shortcut = null
  47. group = null
  48. text = "Server"
  49. flat = false
  50. align = 1
  51. [node name="ServerStart" type="Button" parent="." index="1"]
  52. visible = false
  53. anchor_left = 0.0
  54. anchor_top = 0.0
  55. anchor_right = 0.0
  56. anchor_bottom = 0.0
  57. margin_left = 186.0
  58. margin_top = -8.0
  59. margin_right = 336.0
  60. margin_bottom = 47.0
  61. rect_pivot_offset = Vector2( 0, 0 )
  62. focus_mode = 2
  63. mouse_filter = 0
  64. mouse_default_cursor_shape = 0
  65. size_flags_horizontal = 1
  66. size_flags_vertical = 1
  67. toggle_mode = false
  68. enabled_focus_mode = 2
  69. shortcut = null
  70. group = null
  71. text = "Start game"
  72. flat = false
  73. align = 1
  74. _sections_unfolded = [ "Visibility" ]
  75. [node name="HSeparator" type="HSeparator" parent="." index="2"]
  76. anchor_left = 0.0
  77. anchor_top = 0.0
  78. anchor_right = 0.0
  79. anchor_bottom = 0.0
  80. margin_left = 10.0
  81. margin_top = 61.0
  82. margin_right = 408.0
  83. margin_bottom = 65.0
  84. rect_pivot_offset = Vector2( 0, 0 )
  85. mouse_filter = 0
  86. mouse_default_cursor_shape = 0
  87. size_flags_horizontal = 1
  88. size_flags_vertical = 1
  89. [node name="Client" type="Button" parent="." index="3"]
  90. anchor_left = 0.0
  91. anchor_top = 0.0
  92. anchor_right = 0.0
  93. anchor_bottom = 0.0
  94. margin_left = 10.0
  95. margin_top = 76.0
  96. margin_right = 175.0
  97. margin_bottom = 133.0
  98. rect_pivot_offset = Vector2( 0, 0 )
  99. focus_mode = 2
  100. mouse_filter = 0
  101. mouse_default_cursor_shape = 0
  102. size_flags_horizontal = 1
  103. size_flags_vertical = 1
  104. toggle_mode = false
  105. enabled_focus_mode = 2
  106. shortcut = null
  107. group = null
  108. text = "Client"
  109. flat = false
  110. align = 1
  111. [node name="IPLabel" type="Label" parent="." index="4"]
  112. anchor_left = 0.0
  113. anchor_top = 0.0
  114. anchor_right = 0.0
  115. anchor_bottom = 0.0
  116. margin_left = 189.0
  117. margin_top = 85.0
  118. margin_right = 214.0
  119. margin_bottom = 101.0
  120. rect_pivot_offset = Vector2( 0, 0 )
  121. mouse_filter = 2
  122. mouse_default_cursor_shape = 0
  123. size_flags_horizontal = 1
  124. size_flags_vertical = 4
  125. text = "IP:"
  126. percent_visible = 1.0
  127. lines_skipped = 0
  128. max_lines_visible = -1
  129. _sections_unfolded = [ "Visibility" ]
  130. [node name="IP" type="TextEdit" parent="." index="5"]
  131. anchor_left = 0.0
  132. anchor_top = 0.0
  133. anchor_right = 0.0
  134. anchor_bottom = 0.0
  135. margin_left = 186.0
  136. margin_top = 106.0
  137. margin_right = 288.0
  138. margin_bottom = 124.0
  139. rect_pivot_offset = Vector2( 0, 0 )
  140. focus_mode = 2
  141. mouse_filter = 0
  142. mouse_default_cursor_shape = 0
  143. size_flags_horizontal = 1
  144. size_flags_vertical = 1
  145. text = "127.0.0.1"
  146. readonly = false
  147. highlight_current_line = false
  148. syntax_highlighting = false
  149. show_line_numbers = false
  150. highlight_all_occurrences = false
  151. override_selected_font_color = false
  152. context_menu_enabled = true
  153. smooth_scrolling = false
  154. v_scroll_speed = 80.0
  155. hiding_enabled = 0
  156. wrap_lines = false
  157. caret_block_mode = false
  158. caret_blink = false
  159. caret_blink_speed = 0.65
  160. caret_moving_by_right_click = true
  161. [node name="HSeparator2" type="HSeparator" parent="." index="6"]
  162. anchor_left = 0.0
  163. anchor_top = 0.0
  164. anchor_right = 0.0
  165. anchor_bottom = 0.0
  166. margin_left = 13.0
  167. margin_top = 154.0
  168. margin_right = 411.0
  169. margin_bottom = 158.0
  170. rect_pivot_offset = Vector2( 0, 0 )
  171. mouse_filter = 0
  172. mouse_default_cursor_shape = 0
  173. size_flags_horizontal = 1
  174. size_flags_vertical = 1
  175. [node name="Singleplayer" type="Button" parent="." index="7"]
  176. anchor_left = 0.0
  177. anchor_top = 0.0
  178. anchor_right = 0.0
  179. anchor_bottom = 0.0
  180. margin_left = 12.0
  181. margin_top = 174.0
  182. margin_right = 171.0
  183. margin_bottom = 237.0
  184. rect_pivot_offset = Vector2( 0, 0 )
  185. focus_mode = 2
  186. mouse_filter = 0
  187. mouse_default_cursor_shape = 0
  188. size_flags_horizontal = 1
  189. size_flags_vertical = 1
  190. toggle_mode = false
  191. enabled_focus_mode = 2
  192. shortcut = null
  193. group = null
  194. text = "Singleplayer"
  195. flat = false
  196. align = 1
  197. [node name="VSeparator" type="VSeparator" parent="." index="8"]
  198. anchor_left = 0.0
  199. anchor_top = 0.0
  200. anchor_right = 0.0
  201. anchor_bottom = 0.0
  202. margin_left = 431.0
  203. margin_top = -3.0
  204. margin_right = 435.0
  205. margin_bottom = 110.0
  206. rect_pivot_offset = Vector2( 0, 0 )
  207. mouse_filter = 0
  208. mouse_default_cursor_shape = 0
  209. size_flags_horizontal = 1
  210. size_flags_vertical = 1
  211. [node name="Label" type="Label" parent="." index="9"]
  212. anchor_left = 0.0
  213. anchor_top = 0.0
  214. anchor_right = 0.0
  215. anchor_bottom = 0.0
  216. margin_left = 459.0
  217. margin_top = -6.0
  218. margin_right = 564.0
  219. margin_bottom = 13.0
  220. rect_pivot_offset = Vector2( 0, 0 )
  221. mouse_filter = 2
  222. mouse_default_cursor_shape = 0
  223. size_flags_horizontal = 1
  224. size_flags_vertical = 4
  225. text = "Player Settings"
  226. percent_visible = 1.0
  227. lines_skipped = 0
  228. max_lines_visible = -1
  229. [node name="Username" type="TextEdit" parent="." index="10"]
  230. anchor_left = 0.0
  231. anchor_top = 0.0
  232. anchor_right = 0.0
  233. anchor_bottom = 0.0
  234. margin_left = 457.0
  235. margin_top = 27.0
  236. margin_right = 636.0
  237. margin_bottom = 47.0
  238. rect_pivot_offset = Vector2( 0, 0 )
  239. focus_mode = 2
  240. mouse_filter = 0
  241. mouse_default_cursor_shape = 0
  242. size_flags_horizontal = 1
  243. size_flags_vertical = 1
  244. text = "Nickname"
  245. readonly = false
  246. highlight_current_line = false
  247. syntax_highlighting = false
  248. show_line_numbers = false
  249. highlight_all_occurrences = false
  250. override_selected_font_color = false
  251. context_menu_enabled = true
  252. smooth_scrolling = false
  253. v_scroll_speed = 80.0
  254. hiding_enabled = 0
  255. wrap_lines = false
  256. caret_block_mode = false
  257. caret_blink = false
  258. caret_blink_speed = 0.65
  259. caret_moving_by_right_click = true
  260. [node name="HeroSelectLabel" type="Label" parent="." index="11"]
  261. anchor_left = 0.0
  262. anchor_top = 0.0
  263. anchor_right = 0.0
  264. anchor_bottom = 0.0
  265. margin_left = 460.0
  266. margin_top = 66.0
  267. margin_right = 538.0
  268. margin_bottom = 80.0
  269. rect_pivot_offset = Vector2( 0, 0 )
  270. mouse_filter = 2
  271. mouse_default_cursor_shape = 0
  272. size_flags_horizontal = 1
  273. size_flags_vertical = 4
  274. text = "Hero Select:"
  275. percent_visible = 1.0
  276. lines_skipped = 0
  277. max_lines_visible = -1
  278. [node name="HeroSelect" type="OptionButton" parent="." index="12"]
  279. anchor_left = 0.0
  280. anchor_top = 0.0
  281. anchor_right = 0.0
  282. anchor_bottom = 0.0
  283. margin_left = 457.0
  284. margin_top = 94.0
  285. margin_right = 645.0
  286. margin_bottom = 114.0
  287. rect_rotation = -0.0115615
  288. rect_pivot_offset = Vector2( 0, 0 )
  289. focus_mode = 2
  290. mouse_filter = 0
  291. mouse_default_cursor_shape = 0
  292. size_flags_horizontal = 1
  293. size_flags_vertical = 1
  294. toggle_mode = false
  295. action_mode = 0
  296. enabled_focus_mode = 2
  297. shortcut = null
  298. group = null
  299. flat = false
  300. align = 0
  301. selected = -1
  302. items = [ ]
  303. script = ExtResource( 2 )
  304. [node name="HSeparator3" type="HSeparator" parent="." index="13"]
  305. anchor_left = 0.0
  306. anchor_top = 0.0
  307. anchor_right = 0.0
  308. anchor_bottom = 0.0
  309. margin_left = 19.0
  310. margin_top = 254.0
  311. margin_right = 645.0
  312. margin_bottom = 258.0
  313. rect_pivot_offset = Vector2( 0, 0 )
  314. mouse_filter = 0
  315. mouse_default_cursor_shape = 0
  316. size_flags_horizontal = 1
  317. size_flags_vertical = 1
  318. [node name="PlayerListLabel" type="Label" parent="." index="14"]
  319. anchor_left = 0.0
  320. anchor_top = 0.0
  321. anchor_right = 0.0
  322. anchor_bottom = 0.0
  323. margin_left = 14.0
  324. margin_top = 270.0
  325. margin_right = 136.0
  326. margin_bottom = 284.0
  327. rect_pivot_offset = Vector2( 0, 0 )
  328. mouse_filter = 2
  329. mouse_default_cursor_shape = 0
  330. size_flags_horizontal = 1
  331. size_flags_vertical = 4
  332. text = "Connected Players:"
  333. percent_visible = 1.0
  334. lines_skipped = 0
  335. max_lines_visible = -1
  336. [node name="PlayerList" type="Label" parent="." index="15"]
  337. anchor_left = 0.5
  338. anchor_top = 0.5
  339. anchor_right = 0.5
  340. anchor_bottom = 0.5
  341. margin_left = -7.0
  342. margin_top = 270.0
  343. margin_right = 639.0
  344. margin_bottom = 460.0
  345. rect_pivot_offset = Vector2( 0, 0 )
  346. mouse_filter = 2
  347. mouse_default_cursor_shape = 0
  348. size_flags_horizontal = 1
  349. size_flags_vertical = 4
  350. custom_fonts/font = SubResource( 1 )
  351. text = "Waiting for players to connect...."
  352. percent_visible = 1.0
  353. lines_skipped = 0
  354. max_lines_visible = -1
  355. _sections_unfolded = [ "BBCode", "custom_fonts" ]