ui.tscn 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377
  1. [gd_scene load_steps=25 format=3 uid="uid://blcuyr3jmgqjn"]
  2. [ext_resource type="PackedScene" uid="uid://2wtd5v2wm5ym" path="res://scene/ui/speedrun_timer.tscn" id="1_aoia5"]
  3. [ext_resource type="Texture2D" uid="uid://0f8gj2t81y04" path="res://res/missdemandrake_icon.png" id="2_ktgqv"]
  4. [ext_resource type="Texture2D" uid="uid://cankh6gqcfwh8" path="res://res/wheat.png" id="2_okcwu"]
  5. [ext_resource type="PackedScene" uid="uid://d0myc3w8eieve" path="res://scene/ui/plant_button.tscn" id="2_veu5b"]
  6. [ext_resource type="Texture2D" uid="uid://ml2fn217nq0a" path="res://res/carrot_icon.png" id="3_hykl0"]
  7. [ext_resource type="PackedScene" uid="uid://barkhw1dcvol6" path="res://scene/entity/carrot.tscn" id="4_qd155"]
  8. [ext_resource type="PackedScene" uid="uid://dhc4lumda0bk5" path="res://scene/entity/missdemandrake.tscn" id="6_benw2"]
  9. [ext_resource type="Texture2D" uid="uid://boqf8yjg8vjj" path="res://res/carrot_icon_1.png" id="6_laq2b"]
  10. [ext_resource type="PackedScene" uid="uid://7xbagi7msusx" path="res://scene/entity/carrot2.tscn" id="7_xdref"]
  11. [ext_resource type="Theme" uid="uid://dswou24s4dr5e" path="res://scene/core/main_menu_thenme.tres" id="8_402o7"]
  12. [ext_resource type="Script" path="res://scene/core/restart_button.gd" id="8_ao4uf"]
  13. [ext_resource type="Texture2D" uid="uid://c6g3vxs1w2cyx" path="res://res/cucumber.png" id="8_yg5q2"]
  14. [ext_resource type="PackedScene" uid="uid://bxrjfsowqkb86" path="res://scene/entity/carrot3.tscn" id="9_si7tt"]
  15. [ext_resource type="Texture2D" uid="uid://cx5md40xbjcwp" path="res://res/dragonfruit.png" id="10_vimv2"]
  16. [ext_resource type="PackedScene" uid="uid://bam5e7b0rnfnm" path="res://scene/entity/carrot4.tscn" id="11_t5qna"]
  17. [ext_resource type="Texture2D" uid="uid://qtverddtembb" path="res://res/shallot.png" id="12_12d5p"]
  18. [ext_resource type="PackedScene" uid="uid://b7cuabx3ghe01" path="res://scene/entity/aoe.tscn" id="13_1l6ff"]
  19. [sub_resource type="ImageTexture" id="ImageTexture_pcdim"]
  20. [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_x4eiv"]
  21. content_margin_left = 4.0
  22. content_margin_top = 4.0
  23. content_margin_right = 4.0
  24. content_margin_bottom = 4.0
  25. bg_color = Color(1, 1, 1, 0)
  26. corner_radius_top_left = 10
  27. corner_radius_top_right = 10
  28. corner_radius_bottom_right = 10
  29. corner_radius_bottom_left = 10
  30. corner_detail = 6
  31. [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_asdkn"]
  32. content_margin_left = 4.0
  33. content_margin_top = 4.0
  34. content_margin_right = 4.0
  35. content_margin_bottom = 4.0
  36. bg_color = Color(1, 1, 1, 0.75)
  37. corner_radius_top_left = 10
  38. corner_radius_top_right = 10
  39. corner_radius_bottom_right = 10
  40. corner_radius_bottom_left = 10
  41. corner_detail = 6
  42. [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_oa5x8"]
  43. content_margin_left = 4.0
  44. content_margin_top = 4.0
  45. content_margin_right = 4.0
  46. content_margin_bottom = 4.0
  47. bg_color = Color(0.75, 0.75, 0.75, 0.75)
  48. corner_radius_top_left = 10
  49. corner_radius_top_right = 10
  50. corner_radius_bottom_right = 10
  51. corner_radius_bottom_left = 10
  52. corner_detail = 6
  53. [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_tadec"]
  54. content_margin_left = 4.0
  55. content_margin_top = 4.0
  56. content_margin_right = 4.0
  57. content_margin_bottom = 4.0
  58. bg_color = Color(0.101961, 0.101961, 0.101961, 0)
  59. corner_radius_top_left = 10
  60. corner_radius_top_right = 10
  61. corner_radius_bottom_right = 10
  62. corner_radius_bottom_left = 10
  63. corner_detail = 6
  64. [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_gi33v"]
  65. content_margin_left = 4.0
  66. content_margin_top = 4.0
  67. content_margin_right = 4.0
  68. content_margin_bottom = 4.0
  69. bg_color = Color(1, 1, 1, 0.75)
  70. draw_center = false
  71. border_width_left = 2
  72. border_width_top = 2
  73. border_width_right = 2
  74. border_width_bottom = 2
  75. corner_radius_top_left = 3
  76. corner_radius_top_right = 3
  77. corner_radius_bottom_right = 3
  78. corner_radius_bottom_left = 3
  79. corner_detail = 5
  80. expand_margin_left = 2.0
  81. expand_margin_top = 2.0
  82. expand_margin_right = 2.0
  83. expand_margin_bottom = 2.0
  84. [sub_resource type="Theme" id="Theme_uwr4e"]
  85. VScrollBar/icons/decrement = SubResource("ImageTexture_pcdim")
  86. VScrollBar/icons/decrement_highlight = SubResource("ImageTexture_pcdim")
  87. VScrollBar/icons/decrement_pressed = SubResource("ImageTexture_pcdim")
  88. VScrollBar/icons/increment = SubResource("ImageTexture_pcdim")
  89. VScrollBar/icons/increment_highlight = SubResource("ImageTexture_pcdim")
  90. VScrollBar/icons/increment_pressed = SubResource("ImageTexture_pcdim")
  91. VScrollBar/styles/grabber = SubResource("StyleBoxFlat_x4eiv")
  92. VScrollBar/styles/grabber_highlight = SubResource("StyleBoxFlat_asdkn")
  93. VScrollBar/styles/grabber_pressed = SubResource("StyleBoxFlat_oa5x8")
  94. VScrollBar/styles/scroll = SubResource("StyleBoxFlat_tadec")
  95. VScrollBar/styles/scroll_focus = SubResource("StyleBoxFlat_gi33v")
  96. [node name="UI" type="Control"]
  97. layout_mode = 3
  98. anchors_preset = 15
  99. anchor_right = 1.0
  100. anchor_bottom = 1.0
  101. grow_horizontal = 2
  102. grow_vertical = 2
  103. [node name="SpeedrunTimer" parent="." instance=ExtResource("1_aoia5")]
  104. anchors_preset = 3
  105. anchor_left = 1.0
  106. anchor_right = 1.0
  107. grow_horizontal = 0
  108. [node name="Wheat" type="MarginContainer" parent="."]
  109. offset_right = 40.0
  110. offset_bottom = 40.0
  111. theme_override_constants/margin_left = 30
  112. theme_override_constants/margin_top = 30
  113. [node name="HBoxContainer" type="HBoxContainer" parent="Wheat"]
  114. offset_left = 30.0
  115. offset_top = 30.0
  116. offset_right = 105.0
  117. offset_bottom = 88.0
  118. [node name="TextureRect" type="TextureRect" parent="Wheat/HBoxContainer"]
  119. custom_minimum_size = Vector2(24, 0)
  120. offset_right = 24.0
  121. offset_bottom = 58.0
  122. texture = ExtResource("2_okcwu")
  123. ignore_texture_size = true
  124. stretch_mode = 5
  125. [node name="Label" type="Label" parent="Wheat/HBoxContainer"]
  126. offset_left = 28.0
  127. offset_right = 75.0
  128. offset_bottom = 58.0
  129. theme_override_font_sizes/font_size = 40
  130. text = "nil"
  131. [node name="NextWave" type="MarginContainer" parent="."]
  132. anchors_preset = 1
  133. anchor_left = 1.0
  134. anchor_right = 1.0
  135. offset_left = -105.0
  136. offset_bottom = 88.0
  137. grow_horizontal = 0
  138. theme_override_constants/margin_top = 30
  139. theme_override_constants/margin_right = 30
  140. [node name="HB" type="HBoxContainer" parent="NextWave"]
  141. offset_top = 30.0
  142. offset_right = 132.0
  143. offset_bottom = 88.0
  144. [node name="Button" type="Button" parent="NextWave/HB"]
  145. offset_top = 13.0
  146. offset_right = 90.0
  147. offset_bottom = 44.0
  148. size_flags_vertical = 4
  149. text = "Next wave"
  150. [node name="Label" type="Label" parent="NextWave/HB"]
  151. offset_left = 94.0
  152. offset_top = 16.0
  153. offset_right = 132.0
  154. offset_bottom = 42.0
  155. theme_override_font_sizes/font_size = 16
  156. text = "in nil"
  157. [node name="Log" type="MarginContainer" parent="."]
  158. anchors_preset = 2
  159. anchor_top = 1.0
  160. anchor_bottom = 1.0
  161. offset_top = -88.0
  162. offset_right = 105.0
  163. grow_vertical = 0
  164. theme_override_constants/margin_left = 30
  165. theme_override_constants/margin_bottom = 30
  166. [node name="PC" type="PanelContainer" parent="Log"]
  167. offset_left = 30.0
  168. offset_right = 246.0
  169. offset_bottom = 116.0
  170. [node name="MC" type="MarginContainer" parent="Log/PC"]
  171. offset_right = 216.0
  172. offset_bottom = 116.0
  173. theme_override_constants/margin_left = 8
  174. theme_override_constants/margin_top = 8
  175. theme_override_constants/margin_right = 8
  176. theme_override_constants/margin_bottom = 8
  177. [node name="Label" type="RichTextLabel" parent="Log/PC/MC"]
  178. custom_minimum_size = Vector2(200, 100)
  179. offset_left = 8.0
  180. offset_top = 8.0
  181. offset_right = 208.0
  182. offset_bottom = 108.0
  183. theme = SubResource("Theme_uwr4e")
  184. bbcode_enabled = true
  185. text = "nil"
  186. scroll_following = true
  187. [node name="Plants" type="VBoxContainer" parent="."]
  188. anchors_preset = 6
  189. anchor_left = 1.0
  190. anchor_top = 0.5
  191. anchor_right = 1.0
  192. anchor_bottom = 0.5
  193. offset_left = -48.0
  194. offset_top = -24.0
  195. offset_bottom = 24.0
  196. grow_horizontal = 0
  197. grow_vertical = 2
  198. alignment = 1
  199. [node name="Carrot" parent="Plants" instance=ExtResource("2_veu5b")]
  200. offset_right = 80.0
  201. offset_bottom = 72.0
  202. description = "[center][font_size=18]METEOR CARROT (Q)[/font_size][/center][font size=14]
  203. This plant has evolved a machine gun for self-defense.
  204. [color=#8888FF]Low-range rapid-fire gun[/color]"
  205. icon = ExtResource("3_hykl0")
  206. plant = ExtResource("4_qd155")
  207. hotkey = 81
  208. [node name="Carrot2" parent="Plants" instance=ExtResource("2_veu5b")]
  209. offset_top = 76.0
  210. offset_right = 80.0
  211. offset_bottom = 148.0
  212. description = "[center][font_size=18]METEOR PARSLEY (W)[/font_size][/center][font size=14]
  213. Has a superiority complex over Meteor Carrot.
  214. [color=#8888FF]Medium-range rapid-fire gun[/color]"
  215. icon = ExtResource("6_laq2b")
  216. plant = ExtResource("7_xdref")
  217. hotkey = 87
  218. [node name="Cucumber" parent="Plants" instance=ExtResource("2_veu5b")]
  219. offset_top = 152.0
  220. offset_right = 80.0
  221. offset_bottom = 224.0
  222. description = "[center][font_size=18]CUCUMBER (E)[/font_size][/center][font size=14]
  223. Used to be a rock, but it turned itself into a cucumber.
  224. [color=#8888FF]Long-range ballista[/color]"
  225. icon = ExtResource("8_yg5q2")
  226. plant = ExtResource("9_si7tt")
  227. hotkey = 69
  228. [node name="Dragon" parent="Plants" instance=ExtResource("2_veu5b")]
  229. offset_top = 228.0
  230. offset_right = 80.0
  231. offset_bottom = 300.0
  232. description = "[center][font_size=18]FLAMEFRUIT (R)[/font_size][/center][font size=14]
  233. Said to host a miniature dragon den.
  234. [color=#8888FF]Short-range incinerator[/color]"
  235. icon = ExtResource("10_vimv2")
  236. plant = ExtResource("11_t5qna")
  237. hotkey = 82
  238. [node name="Shallot" parent="Plants" instance=ExtResource("2_veu5b")]
  239. offset_top = 304.0
  240. offset_right = 80.0
  241. offset_bottom = 376.0
  242. description = "[center][font_size=18]SHALLOT HEAD (T)[/font_size][/center][font size=14]
  243. [img width=14]res://res/uoh.png[/img][img width=14]res://res/uoh.png[/img][img width=14]res://res/uoh.png[/img]
  244. [color=#8888FF]Damages every enemy within range[/color]"
  245. icon = ExtResource("12_12d5p")
  246. plant = ExtResource("13_1l6ff")
  247. hotkey = 84
  248. [node name="Missdemandrake" parent="Plants" instance=ExtResource("2_veu5b")]
  249. offset_top = 380.0
  250. offset_right = 80.0
  251. offset_bottom = 452.0
  252. description = "[center][font_size=18]MISSDEMANDRAKE (Y)[/font_size][/center][font size=14]
  253. A curious hybrid of mandrake and electric cabbage.
  254. [color=#8888FF]Strikes the healthiest enemy with lightning.[/color]"
  255. icon = ExtResource("2_ktgqv")
  256. plant = ExtResource("6_benw2")
  257. hotkey = 89
  258. [node name="DefeatScreen" type="Control" parent="."]
  259. visible = false
  260. layout_mode = 3
  261. anchors_preset = 15
  262. anchor_right = 1.0
  263. anchor_bottom = 1.0
  264. grow_horizontal = 2
  265. grow_vertical = 2
  266. mouse_default_cursor_shape = 3
  267. [node name="ColorRect" type="ColorRect" parent="DefeatScreen"]
  268. anchors_preset = 15
  269. anchor_right = 1.0
  270. anchor_bottom = 1.0
  271. grow_horizontal = 2
  272. grow_vertical = 2
  273. mouse_default_cursor_shape = 3
  274. color = Color(0.215492, 1.05286e-07, 4.21144e-08, 0.784314)
  275. [node name="VBoxContainer" type="VBoxContainer" parent="DefeatScreen"]
  276. anchors_preset = 8
  277. anchor_left = 0.5
  278. anchor_top = 0.5
  279. anchor_right = 0.5
  280. anchor_bottom = 0.5
  281. offset_left = -93.5
  282. offset_top = -46.5
  283. offset_right = 93.5
  284. offset_bottom = 46.5
  285. grow_horizontal = 2
  286. grow_vertical = 2
  287. [node name="Label" type="Label" parent="DefeatScreen/VBoxContainer"]
  288. mouse_default_cursor_shape = 3
  289. theme_override_colors/font_color = Color(0.521569, 0, 0, 1)
  290. theme_override_font_sizes/font_size = 40
  291. text = "YOU DIED"
  292. [node name="Button" type="Button" parent="DefeatScreen/VBoxContainer"]
  293. size_flags_horizontal = 4
  294. size_flags_vertical = 4
  295. theme = ExtResource("8_402o7")
  296. text = "Restart"
  297. script = ExtResource("8_ao4uf")
  298. [node name="VictoryScreen" type="Control" parent="."]
  299. visible = false
  300. layout_mode = 3
  301. anchors_preset = 15
  302. anchor_right = 1.0
  303. anchor_bottom = 1.0
  304. grow_horizontal = 2
  305. grow_vertical = 2
  306. [node name="ColorRect" type="ColorRect" parent="VictoryScreen"]
  307. anchors_preset = 15
  308. anchor_right = 1.0
  309. anchor_bottom = 1.0
  310. grow_horizontal = 2
  311. grow_vertical = 2
  312. color = Color(0, 0, 0, 0.784314)
  313. [node name="VBoxContainer" type="VBoxContainer" parent="VictoryScreen"]
  314. anchors_preset = 8
  315. anchor_left = 0.5
  316. anchor_top = 0.5
  317. anchor_right = 0.5
  318. anchor_bottom = 0.5
  319. offset_left = -93.5
  320. offset_top = -46.5
  321. offset_right = 93.5
  322. offset_bottom = 46.5
  323. grow_horizontal = 2
  324. grow_vertical = 2
  325. [node name="Label" type="Label" parent="VictoryScreen/VBoxContainer"]
  326. mouse_default_cursor_shape = 3
  327. theme_override_font_sizes/font_size = 40
  328. text = "Victory"
  329. horizontal_alignment = 1
  330. [node name="Button" type="Button" parent="VictoryScreen/VBoxContainer"]
  331. size_flags_horizontal = 4
  332. size_flags_vertical = 4
  333. theme = ExtResource("8_402o7")
  334. text = "Restart"
  335. script = ExtResource("8_ao4uf")
  336. [connection signal="pressed" from="DefeatScreen/VBoxContainer/Button" to="DefeatScreen/VBoxContainer/Button" method="_on_pressed"]
  337. [connection signal="pressed" from="VictoryScreen/VBoxContainer/Button" to="VictoryScreen/VBoxContainer/Button" method="_on_pressed"]