MainMenu.tscn 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307
  1. [gd_scene load_steps=5 format=3 uid="uid://cmadfyxa24e8d"]
  2. [ext_resource type="Script" path="res://UI/LevelButton.gd" id="1_djey3"]
  3. [ext_resource type="Script" path="res://UI/MainMenu.gd" id="1_srwup"]
  4. [ext_resource type="Texture2D" uid="uid://dveche7lir0rd" path="res://UI/background.png" id="2_mey7p"]
  5. [ext_resource type="Script" path="res://UI/QuitButton.gd" id="3_id0yg"]
  6. [node name="MainMenu" type="Control"]
  7. layout_mode = 3
  8. anchors_preset = 15
  9. anchor_right = 1.0
  10. anchor_bottom = 1.0
  11. grow_horizontal = 2
  12. grow_vertical = 2
  13. script = ExtResource("1_srwup")
  14. [node name="ColorRect" type="ColorRect" parent="."]
  15. layout_mode = 0
  16. anchor_right = 1.0
  17. anchor_bottom = 1.0
  18. grow_horizontal = 2
  19. grow_vertical = 2
  20. color = Color(0.129412, 0.188235, 0.282353, 1)
  21. [node name="TextureRect" type="TextureRect" parent="."]
  22. modulate = Color(1, 1, 1, 0.67451)
  23. layout_mode = 0
  24. anchor_left = 0.5
  25. anchor_top = 1.0
  26. anchor_right = 0.5
  27. anchor_bottom = 1.0
  28. offset_left = -557.0
  29. offset_top = -759.0
  30. offset_right = 565.0
  31. offset_bottom = -20.0
  32. grow_horizontal = 2
  33. grow_vertical = 0
  34. texture = ExtResource("2_mey7p")
  35. stretch_mode = 4
  36. [node name="LevelNotFoundLabel" type="Label" parent="."]
  37. visible = false
  38. layout_mode = 0
  39. offset_left = 183.0
  40. offset_top = 460.0
  41. offset_right = 289.0
  42. offset_bottom = 486.0
  43. text = "no level given"
  44. [node name="VBoxContainer" type="VBoxContainer" parent="."]
  45. layout_mode = 1
  46. anchors_preset = 15
  47. anchor_right = 1.0
  48. anchor_bottom = 1.0
  49. grow_horizontal = 2
  50. grow_vertical = 2
  51. [node name="VSplitContainer3" type="VSplitContainer" parent="VBoxContainer"]
  52. layout_mode = 2
  53. size_flags_vertical = 3
  54. size_flags_stretch_ratio = 0.07
  55. [node name="CenterContainer2" type="CenterContainer" parent="VBoxContainer"]
  56. layout_mode = 2
  57. [node name="VSplitContainer" type="VSplitContainer" parent="VBoxContainer"]
  58. layout_mode = 2
  59. size_flags_vertical = 3
  60. size_flags_stretch_ratio = 0.04
  61. [node name="LevelsEasy" type="CenterContainer" parent="VBoxContainer"]
  62. layout_mode = 2
  63. [node name="Levels001" type="GridContainer" parent="VBoxContainer/LevelsEasy"]
  64. custom_minimum_size = Vector2(800, 400)
  65. layout_mode = 2
  66. columns = 4
  67. [node name="LevelE01" type="Button" parent="VBoxContainer/LevelsEasy/Levels001"]
  68. layout_mode = 2
  69. theme_override_font_sizes/font_size = 16
  70. text = "01
  71. Easy Barrels"
  72. script = ExtResource("1_djey3")
  73. level_path = "res://levels/lv_default/barrels.tscn"
  74. [node name="LevelE02" type="Button" parent="VBoxContainer/LevelsEasy/Levels001"]
  75. layout_mode = 2
  76. theme_override_font_sizes/font_size = 16
  77. text = "02
  78. Nuclear Legacies"
  79. script = ExtResource("1_djey3")
  80. level_path = "res://levels/lv_default/nuclearlegacies.tscn"
  81. [node name="LevelE03" type="Button" parent="VBoxContainer/LevelsEasy/Levels001"]
  82. layout_mode = 2
  83. theme_override_font_sizes/font_size = 16
  84. text = "03
  85. A small Detour"
  86. script = ExtResource("1_djey3")
  87. level_path = "res://levels/lv_default/smalldetour.tscn"
  88. [node name="LevelE04" type="Button" parent="VBoxContainer/LevelsEasy/Levels001"]
  89. layout_mode = 2
  90. theme_override_font_sizes/font_size = 16
  91. text = "04
  92. First Contact
  93. "
  94. script = ExtResource("1_djey3")
  95. level_path = "res://levels/lv_default/firstcontact.tscn"
  96. [node name="LevelE05" type="Button" parent="VBoxContainer/LevelsEasy/Levels001"]
  97. layout_mode = 2
  98. theme_override_font_sizes/font_size = 16
  99. text = "05
  100. Clean me up, Puddle!"
  101. script = ExtResource("1_djey3")
  102. level_path = "res://levels/lv_default/cleanmeup.tscn"
  103. [node name="LevelE06" type="Button" parent="VBoxContainer/LevelsEasy/Levels001"]
  104. layout_mode = 2
  105. theme_override_font_sizes/font_size = 16
  106. text = "06
  107. Explosive Action
  108. "
  109. script = ExtResource("1_djey3")
  110. level_path = "res://levels/lv_default/explosiveaction.tscn"
  111. [node name="LevelE07" type="Button" parent="VBoxContainer/LevelsEasy/Levels001"]
  112. layout_mode = 2
  113. theme_override_font_sizes/font_size = 16
  114. text = "07
  115. Bridge of Barrels
  116. "
  117. script = ExtResource("1_djey3")
  118. level_path = "res://levels/lv_default/barrelbridge.tscn"
  119. [node name="LevelE08" type="Button" parent="VBoxContainer/LevelsEasy/Levels001"]
  120. layout_mode = 2
  121. theme_override_font_sizes/font_size = 16
  122. text = "08
  123. The Pushdozer and the Pulldozer
  124. "
  125. script = ExtResource("1_djey3")
  126. level_path = "res://levels/lv_default/pushdozer.tscn"
  127. [node name="LevelE09" type="Button" parent="VBoxContainer/LevelsEasy/Levels001"]
  128. layout_mode = 2
  129. theme_override_font_sizes/font_size = 16
  130. text = "09
  131. Pushitis
  132. "
  133. script = ExtResource("1_djey3")
  134. level_path = "res://levels/lv_default/pushitis.tscn"
  135. [node name="LevelE10" type="Button" parent="VBoxContainer/LevelsEasy/Levels001"]
  136. layout_mode = 2
  137. theme_override_font_sizes/font_size = 16
  138. text = "10
  139. Rouble Trouble
  140. "
  141. script = ExtResource("1_djey3")
  142. level_path = "res://levels/lv_blocking/bl_roubletrouble.tscn"
  143. [node name="LevelE11" type="Button" parent="VBoxContainer/LevelsEasy/Levels001"]
  144. layout_mode = 2
  145. theme_override_font_sizes/font_size = 16
  146. text = "11
  147. up and down
  148. "
  149. script = ExtResource("1_djey3")
  150. level_path = "res://levels/lv_blocking/bl_upanddown.tscn"
  151. [node name="LevelH01" type="Button" parent="VBoxContainer/LevelsEasy/Levels001"]
  152. layout_mode = 2
  153. theme_override_font_sizes/font_size = 16
  154. text = "12
  155. Narrow Paths
  156. "
  157. script = ExtResource("1_djey3")
  158. level_path = "res://levels/lv_default/narrowpaths.tscn"
  159. [node name="LevelH02" type="Button" parent="VBoxContainer/LevelsEasy/Levels001"]
  160. layout_mode = 2
  161. theme_override_font_sizes/font_size = 16
  162. text = "13
  163. Branched Mines"
  164. script = ExtResource("1_djey3")
  165. level_path = "res://levels/lv_default/branchedmines.tscn"
  166. [node name="LevelH03" type="Button" parent="VBoxContainer/LevelsEasy/Levels001"]
  167. layout_mode = 2
  168. theme_override_font_sizes/font_size = 16
  169. text = "14
  170. Infested Cave"
  171. script = ExtResource("1_djey3")
  172. level_path = "res://levels/lv_default/infestedcave.tscn"
  173. [node name="LevelH04" type="Button" parent="VBoxContainer/LevelsEasy/Levels001"]
  174. layout_mode = 2
  175. theme_override_font_sizes/font_size = 16
  176. text = "15
  177. Into the Acid?"
  178. script = ExtResource("1_djey3")
  179. level_path = "res://levels/lv_default/intoacid.tscn"
  180. [node name="LevelH05" type="Button" parent="VBoxContainer/LevelsEasy/Levels001"]
  181. layout_mode = 2
  182. theme_override_font_sizes/font_size = 16
  183. text = "16
  184. A long way down"
  185. script = ExtResource("1_djey3")
  186. level_path = "res://levels/lv_default/longwaydown.tscn"
  187. [node name="LevelH06" type="Button" parent="VBoxContainer/LevelsEasy/Levels001"]
  188. layout_mode = 2
  189. theme_override_font_sizes/font_size = 16
  190. text = "17
  191. Don't fall down!
  192. "
  193. script = ExtResource("1_djey3")
  194. level_path = "res://levels/lv_default/dontfalldown.tscn"
  195. [node name="LevelH07" type="Button" parent="VBoxContainer/LevelsEasy/Levels001"]
  196. layout_mode = 2
  197. theme_override_font_sizes/font_size = 16
  198. text = "18
  199. Hidden Puddles"
  200. script = ExtResource("1_djey3")
  201. level_path = "res://levels/lv_default/hiddenpuddles.tscn"
  202. [node name="LevelH08" type="Button" parent="VBoxContainer/LevelsEasy/Levels001"]
  203. layout_mode = 2
  204. theme_override_font_sizes/font_size = 16
  205. text = "19
  206. Pushing and beeing pushed"
  207. script = ExtResource("1_djey3")
  208. level_path = "res://levels/lv_default/pushandpush.tscn"
  209. [node name="LevelH09" type="Button" parent="VBoxContainer/LevelsEasy/Levels001"]
  210. layout_mode = 2
  211. theme_override_font_sizes/font_size = 16
  212. text = "20
  213. Cells"
  214. script = ExtResource("1_djey3")
  215. level_path = "res://levels/lv_default/cells.tscn"
  216. [node name="LevelsUnsorted" type="VSplitContainer" parent="VBoxContainer"]
  217. layout_mode = 2
  218. size_flags_vertical = 3
  219. size_flags_stretch_ratio = 0.32
  220. [node name="CenterContainer" type="CenterContainer" parent="VBoxContainer/LevelsUnsorted"]
  221. layout_mode = 2
  222. [node name="GridContainer2" type="GridContainer" parent="VBoxContainer/LevelsUnsorted/CenterContainer"]
  223. custom_minimum_size = Vector2(800, 400)
  224. layout_mode = 2
  225. columns = 5
  226. [node name="testlevel" type="Button" parent="VBoxContainer/LevelsUnsorted/CenterContainer/GridContainer2"]
  227. layout_mode = 2
  228. theme_override_font_sizes/font_size = 16
  229. text = "testlevel
  230. "
  231. script = ExtResource("1_djey3")
  232. level_path = "res://levels/lv_testing/tl_debug_01.tscn"
  233. [node name="CenterContainer3" type="CenterContainer" parent="VBoxContainer"]
  234. layout_mode = 2
  235. [node name="QuitButton" type="Button" parent="VBoxContainer/CenterContainer3"]
  236. custom_minimum_size = Vector2(200, 55)
  237. layout_mode = 2
  238. size_flags_vertical = 4
  239. text = "Quit
  240. "
  241. script = ExtResource("3_id0yg")
  242. [node name="VSplitContainer4" type="VSplitContainer" parent="VBoxContainer"]
  243. layout_mode = 2
  244. size_flags_vertical = 3
  245. size_flags_stretch_ratio = 0.05
  246. [connection signal="pressed" from="VBoxContainer/LevelsEasy/Levels001/LevelE01" to="VBoxContainer/LevelsEasy/Levels001/LevelE01" method="_on_LevelButton_pressed"]
  247. [connection signal="pressed" from="VBoxContainer/LevelsEasy/Levels001/LevelE02" to="VBoxContainer/LevelsEasy/Levels001/LevelE02" method="_on_LevelButton_pressed"]
  248. [connection signal="pressed" from="VBoxContainer/LevelsEasy/Levels001/LevelE03" to="VBoxContainer/LevelsEasy/Levels001/LevelE03" method="_on_LevelButton_pressed"]
  249. [connection signal="pressed" from="VBoxContainer/LevelsEasy/Levels001/LevelE04" to="VBoxContainer/LevelsEasy/Levels001/LevelE04" method="_on_LevelButton_pressed"]
  250. [connection signal="pressed" from="VBoxContainer/LevelsEasy/Levels001/LevelE05" to="VBoxContainer/LevelsEasy/Levels001/LevelE05" method="_on_LevelButton_pressed"]
  251. [connection signal="pressed" from="VBoxContainer/LevelsEasy/Levels001/LevelE06" to="VBoxContainer/LevelsEasy/Levels001/LevelE06" method="_on_LevelButton_pressed"]
  252. [connection signal="pressed" from="VBoxContainer/LevelsEasy/Levels001/LevelE07" to="VBoxContainer/LevelsEasy/Levels001/LevelE07" method="_on_LevelButton_pressed"]
  253. [connection signal="pressed" from="VBoxContainer/LevelsEasy/Levels001/LevelE08" to="VBoxContainer/LevelsEasy/Levels001/LevelE08" method="_on_LevelButton_pressed"]
  254. [connection signal="pressed" from="VBoxContainer/LevelsEasy/Levels001/LevelE09" to="VBoxContainer/LevelsEasy/Levels001/LevelE09" method="_on_LevelButton_pressed"]
  255. [connection signal="pressed" from="VBoxContainer/LevelsEasy/Levels001/LevelE10" to="VBoxContainer/LevelsEasy/Levels001/LevelE10" method="_on_LevelButton_pressed"]
  256. [connection signal="pressed" from="VBoxContainer/LevelsEasy/Levels001/LevelE11" to="VBoxContainer/LevelsEasy/Levels001/LevelE11" method="_on_LevelButton_pressed"]
  257. [connection signal="pressed" from="VBoxContainer/LevelsEasy/Levels001/LevelH01" to="VBoxContainer/LevelsEasy/Levels001/LevelH01" method="_on_LevelButton_pressed"]
  258. [connection signal="pressed" from="VBoxContainer/LevelsEasy/Levels001/LevelH02" to="VBoxContainer/LevelsEasy/Levels001/LevelH02" method="_on_LevelButton_pressed"]
  259. [connection signal="pressed" from="VBoxContainer/LevelsEasy/Levels001/LevelH03" to="VBoxContainer/LevelsEasy/Levels001/LevelH03" method="_on_LevelButton_pressed"]
  260. [connection signal="pressed" from="VBoxContainer/LevelsEasy/Levels001/LevelH04" to="VBoxContainer/LevelsEasy/Levels001/LevelH04" method="_on_LevelButton_pressed"]
  261. [connection signal="pressed" from="VBoxContainer/LevelsEasy/Levels001/LevelH05" to="VBoxContainer/LevelsEasy/Levels001/LevelH05" method="_on_LevelButton_pressed"]
  262. [connection signal="pressed" from="VBoxContainer/LevelsEasy/Levels001/LevelH06" to="VBoxContainer/LevelsEasy/Levels001/LevelH06" method="_on_LevelButton_pressed"]
  263. [connection signal="pressed" from="VBoxContainer/LevelsEasy/Levels001/LevelH07" to="VBoxContainer/LevelsEasy/Levels001/LevelH07" method="_on_LevelButton_pressed"]
  264. [connection signal="pressed" from="VBoxContainer/LevelsEasy/Levels001/LevelH08" to="VBoxContainer/LevelsEasy/Levels001/LevelH08" method="_on_LevelButton_pressed"]
  265. [connection signal="pressed" from="VBoxContainer/LevelsEasy/Levels001/LevelH09" to="VBoxContainer/LevelsEasy/Levels001/LevelH09" method="_on_LevelButton_pressed"]
  266. [connection signal="pressed" from="VBoxContainer/LevelsUnsorted/CenterContainer/GridContainer2/testlevel" to="VBoxContainer/LevelsUnsorted/CenterContainer/GridContainer2/testlevel" method="_on_LevelButton_pressed"]
  267. [connection signal="pressed" from="VBoxContainer/CenterContainer3/QuitButton" to="." method="_on_quit_button_pressed"]