main_menu.tscn 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  1. [gd_scene load_steps=11 format=3 uid="uid://csdy1t6j24awl"]
  2. [ext_resource type="Texture2D" uid="uid://c2eorasvxyf5u" path="res://menu/main/title.png" id="1"]
  3. [ext_resource type="Script" path="res://menu/main/splash_text.gd" id="2"]
  4. [ext_resource type="Script" path="res://menu/main/main_menu.gd" id="3"]
  5. [ext_resource type="Texture2D" uid="uid://c514noc8ngc4x" path="res://menu/main/dark_dirt.png" id="4"]
  6. [ext_resource type="PackedScene" uid="uid://e22n700qhxqr" path="res://menu/options/options.tscn" id="5"]
  7. [ext_resource type="Theme" uid="uid://ckax6htygmelo" path="res://menu/theme/theme.tres" id="6"]
  8. [ext_resource type="Texture2D" uid="uid://ej6lqf2fptv8" path="res://menu/button.png" id="7"]
  9. [ext_resource type="Texture2D" uid="uid://blcjvv0p0a6v8" path="res://menu/button_pressed.png" id="7_hsmm5"]
  10. [ext_resource type="Texture2D" uid="uid://cfh73c8wnvgol" path="res://menu/button_hover.png" id="8_tutt7"]
  11. [ext_resource type="Texture2D" uid="uid://h208mfx7dyy2" path="res://menu/button_focus.png" id="9_d3hm1"]
  12. [node name="MainMenu" type="Control"]
  13. layout_mode = 3
  14. anchors_preset = 15
  15. anchor_right = 1.0
  16. anchor_bottom = 1.0
  17. grow_horizontal = 2
  18. grow_vertical = 2
  19. theme = ExtResource("6")
  20. script = ExtResource("3")
  21. [node name="Background" type="TextureRect" parent="."]
  22. layout_mode = 0
  23. anchor_right = 1.0
  24. anchor_bottom = 1.0
  25. grow_horizontal = 2
  26. grow_vertical = 2
  27. texture = ExtResource("4")
  28. stretch_mode = 1
  29. [node name="TitleScreen" type="VBoxContainer" parent="."]
  30. layout_mode = 0
  31. anchor_right = 1.0
  32. anchor_bottom = 1.0
  33. grow_horizontal = 2
  34. grow_vertical = 2
  35. [node name="Logo" type="CenterContainer" parent="TitleScreen"]
  36. texture_repeat = 2
  37. custom_minimum_size = Vector2(0, 350)
  38. layout_mode = 2
  39. [node name="Logo" type="TextureRect" parent="TitleScreen/Logo"]
  40. layout_mode = 2
  41. texture = ExtResource("1")
  42. [node name="SplashHolder" type="Control" parent="TitleScreen/Logo/Logo"]
  43. layout_mode = 1
  44. anchors_preset = 3
  45. anchor_left = 1.0
  46. anchor_top = 1.0
  47. anchor_right = 1.0
  48. anchor_bottom = 1.0
  49. offset_left = -36.0
  50. offset_right = -36.0
  51. grow_horizontal = 0
  52. grow_vertical = 0
  53. script = ExtResource("2")
  54. [node name="SplashText" type="Label" parent="TitleScreen/Logo/Logo/SplashHolder"]
  55. modulate = Color(1, 1, 0, 1)
  56. texture_filter = 1
  57. layout_mode = 0
  58. anchor_left = 1.0
  59. anchor_top = 1.0
  60. anchor_right = 1.0
  61. anchor_bottom = 1.0
  62. offset_left = -120.0
  63. offset_right = 124.0
  64. offset_bottom = 52.0
  65. grow_horizontal = 0
  66. grow_vertical = 0
  67. rotation = -0.261799
  68. theme_override_font_sizes/font_size = 61
  69. text = "Made in Godot!"
  70. [node name="ButtonHolder" type="HBoxContainer" parent="TitleScreen"]
  71. layout_mode = 2
  72. size_flags_vertical = 2
  73. alignment = 1
  74. [node name="MainButtons" type="VBoxContainer" parent="TitleScreen/ButtonHolder"]
  75. layout_mode = 2
  76. theme_override_constants/separation = 20
  77. alignment = 1
  78. [node name="Start" type="TextureButton" parent="TitleScreen/ButtonHolder/MainButtons"]
  79. layout_mode = 2
  80. texture_normal = ExtResource("7")
  81. texture_pressed = ExtResource("7_hsmm5")
  82. texture_hover = ExtResource("8_tutt7")
  83. texture_focused = ExtResource("9_d3hm1")
  84. [node name="Label" type="Label" parent="TitleScreen/ButtonHolder/MainButtons/Start"]
  85. texture_filter = 1
  86. layout_mode = 0
  87. anchor_right = 1.0
  88. anchor_bottom = 1.0
  89. offset_top = -1.0
  90. offset_bottom = -18.0
  91. grow_horizontal = 2
  92. grow_vertical = 2
  93. theme_override_font_sizes/font_size = 60
  94. text = "Start Game"
  95. horizontal_alignment = 1
  96. vertical_alignment = 1
  97. [node name="Options" type="TextureButton" parent="TitleScreen/ButtonHolder/MainButtons"]
  98. layout_mode = 2
  99. texture_normal = ExtResource("7")
  100. texture_pressed = ExtResource("7_hsmm5")
  101. texture_hover = ExtResource("8_tutt7")
  102. texture_focused = ExtResource("9_d3hm1")
  103. [node name="Label" type="Label" parent="TitleScreen/ButtonHolder/MainButtons/Options"]
  104. texture_filter = 1
  105. layout_mode = 0
  106. anchor_right = 1.0
  107. anchor_bottom = 1.0
  108. offset_top = -1.0
  109. offset_bottom = -18.0
  110. grow_horizontal = 2
  111. grow_vertical = 2
  112. theme_override_font_sizes/font_size = 60
  113. text = "Options"
  114. horizontal_alignment = 1
  115. vertical_alignment = 1
  116. [node name="Exit" type="TextureButton" parent="TitleScreen/ButtonHolder/MainButtons"]
  117. layout_mode = 2
  118. texture_normal = ExtResource("7")
  119. texture_pressed = ExtResource("7_hsmm5")
  120. texture_hover = ExtResource("8_tutt7")
  121. texture_focused = ExtResource("9_d3hm1")
  122. [node name="Label" type="Label" parent="TitleScreen/ButtonHolder/MainButtons/Exit"]
  123. texture_filter = 1
  124. layout_mode = 0
  125. anchor_right = 1.0
  126. anchor_bottom = 1.0
  127. offset_top = -1.0
  128. offset_bottom = -18.0
  129. grow_horizontal = 2
  130. grow_vertical = 2
  131. theme_override_font_sizes/font_size = 60
  132. text = "Exit Game"
  133. horizontal_alignment = 1
  134. vertical_alignment = 1
  135. [node name="Spacer" type="Control" parent="TitleScreen"]
  136. layout_mode = 2
  137. [node name="StartGame" type="HBoxContainer" parent="."]
  138. visible = false
  139. layout_mode = 0
  140. anchor_right = 1.0
  141. anchor_bottom = 1.0
  142. grow_horizontal = 2
  143. grow_vertical = 2
  144. alignment = 1
  145. [node name="StartButtons" type="VBoxContainer" parent="StartGame"]
  146. layout_mode = 2
  147. theme_override_constants/separation = 20
  148. alignment = 1
  149. [node name="Spacer" type="Control" parent="StartGame/StartButtons"]
  150. layout_mode = 2
  151. [node name="RandomBlocks" type="TextureButton" parent="StartGame/StartButtons"]
  152. layout_mode = 2
  153. texture_normal = ExtResource("7")
  154. texture_pressed = ExtResource("7_hsmm5")
  155. texture_hover = ExtResource("8_tutt7")
  156. texture_focused = ExtResource("9_d3hm1")
  157. [node name="Label" type="Label" parent="StartGame/StartButtons/RandomBlocks"]
  158. layout_mode = 0
  159. anchor_right = 1.0
  160. anchor_bottom = 1.0
  161. offset_top = -1.0
  162. offset_bottom = -18.0
  163. grow_horizontal = 2
  164. grow_vertical = 2
  165. theme_override_font_sizes/font_size = 60
  166. text = "Random Blocks"
  167. horizontal_alignment = 1
  168. vertical_alignment = 1
  169. [node name="FlatGrass" type="TextureButton" parent="StartGame/StartButtons"]
  170. layout_mode = 2
  171. texture_normal = ExtResource("7")
  172. texture_pressed = ExtResource("7_hsmm5")
  173. texture_hover = ExtResource("8_tutt7")
  174. texture_focused = ExtResource("9_d3hm1")
  175. [node name="Label" type="Label" parent="StartGame/StartButtons/FlatGrass"]
  176. layout_mode = 0
  177. anchor_right = 1.0
  178. anchor_bottom = 1.0
  179. offset_top = -1.0
  180. offset_bottom = -18.0
  181. grow_horizontal = 2
  182. grow_vertical = 2
  183. theme_override_font_sizes/font_size = 60
  184. text = "Flat Grass"
  185. horizontal_alignment = 1
  186. vertical_alignment = 1
  187. [node name="BackToTitle" type="TextureButton" parent="StartGame/StartButtons"]
  188. layout_mode = 2
  189. texture_normal = ExtResource("7")
  190. texture_pressed = ExtResource("7_hsmm5")
  191. texture_hover = ExtResource("8_tutt7")
  192. texture_focused = ExtResource("9_d3hm1")
  193. [node name="Label" type="Label" parent="StartGame/StartButtons/BackToTitle"]
  194. layout_mode = 0
  195. anchor_right = 1.0
  196. anchor_bottom = 1.0
  197. offset_top = -1.0
  198. offset_bottom = -18.0
  199. grow_horizontal = 2
  200. grow_vertical = 2
  201. theme_override_font_sizes/font_size = 60
  202. text = "Back"
  203. horizontal_alignment = 1
  204. vertical_alignment = 1
  205. [node name="Options" parent="." instance=ExtResource("5")]
  206. layout_mode = 0
  207. anchors_preset = 0
  208. anchor_right = 0.0
  209. anchor_bottom = 0.0
  210. grow_horizontal = 1
  211. grow_vertical = 1
  212. [connection signal="pressed" from="TitleScreen/ButtonHolder/MainButtons/Start" to="." method="_on_Start_pressed"]
  213. [connection signal="pressed" from="TitleScreen/ButtonHolder/MainButtons/Options" to="." method="_on_Options_pressed"]
  214. [connection signal="pressed" from="TitleScreen/ButtonHolder/MainButtons/Exit" to="." method="_on_Exit_pressed"]
  215. [connection signal="pressed" from="StartGame/StartButtons/RandomBlocks" to="." method="_on_RandomBlocks_pressed"]
  216. [connection signal="pressed" from="StartGame/StartButtons/FlatGrass" to="." method="_on_FlatGrass_pressed"]
  217. [connection signal="pressed" from="StartGame/StartButtons/BackToTitle" to="." method="_on_BackToTitle_pressed"]