PauseGameMenu.tscn 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. [gd_scene load_steps=3 format=2]
  2. [ext_resource path="res://Scripts/UI/PauseGameMenu.gd" type="Script" id=1]
  3. [ext_resource path="res://Fonts/hanken/hanken_48.tres" type="DynamicFont" id=2]
  4. [node name="PauseGameMenu" type="Control"]
  5. anchor_left = 0.0
  6. anchor_top = 0.0
  7. anchor_right = 1.0
  8. anchor_bottom = 1.0
  9. rect_pivot_offset = Vector2( 0, 0 )
  10. rect_clip_content = false
  11. mouse_filter = 0
  12. mouse_default_cursor_shape = 0
  13. size_flags_horizontal = 1
  14. size_flags_vertical = 1
  15. script = ExtResource( 1 )
  16. [node name="Menu" type="VBoxContainer" parent="." index="0"]
  17. anchor_left = 0.5
  18. anchor_top = 0.0
  19. anchor_right = 0.5
  20. anchor_bottom = 0.0
  21. margin_left = -160.0
  22. margin_top = 200.0
  23. margin_right = 160.0
  24. margin_bottom = 200.0
  25. rect_pivot_offset = Vector2( 0, 0 )
  26. rect_clip_content = false
  27. mouse_filter = 1
  28. mouse_default_cursor_shape = 0
  29. size_flags_horizontal = 1
  30. size_flags_vertical = 1
  31. alignment = 0
  32. _sections_unfolded = [ "Margin" ]
  33. [node name="Title" type="Label" parent="Menu" index="0"]
  34. anchor_left = 0.0
  35. anchor_top = 0.0
  36. anchor_right = 0.0
  37. anchor_bottom = 0.0
  38. margin_right = 320.0
  39. margin_bottom = 48.0
  40. rect_pivot_offset = Vector2( 0, 0 )
  41. rect_clip_content = false
  42. mouse_filter = 2
  43. mouse_default_cursor_shape = 0
  44. size_flags_horizontal = 1
  45. size_flags_vertical = 4
  46. custom_fonts/font = ExtResource( 2 )
  47. custom_colors/font_color = Color( 0.925842, 1, 0.0507812, 1 )
  48. text = "game paused"
  49. align = 1
  50. percent_visible = 1.0
  51. lines_skipped = 0
  52. max_lines_visible = -1
  53. _sections_unfolded = [ "Margin", "custom_colors", "custom_fonts" ]
  54. [node name="ResumeGameButton" type="Button" parent="Menu" index="1"]
  55. anchor_left = 0.0
  56. anchor_top = 0.0
  57. anchor_right = 0.0
  58. anchor_bottom = 0.0
  59. margin_top = 52.0
  60. margin_right = 320.0
  61. margin_bottom = 97.0
  62. rect_min_size = Vector2( 0, 45 )
  63. rect_pivot_offset = Vector2( 0, 0 )
  64. rect_clip_content = false
  65. focus_mode = 2
  66. mouse_filter = 0
  67. mouse_default_cursor_shape = 0
  68. size_flags_horizontal = 3
  69. size_flags_vertical = 3
  70. toggle_mode = false
  71. enabled_focus_mode = 2
  72. shortcut = null
  73. group = null
  74. flat = false
  75. align = 1
  76. _sections_unfolded = [ "Rect", "Size Flags" ]
  77. [node name="resume" type="Label" parent="Menu/ResumeGameButton" index="0"]
  78. anchor_left = 0.0
  79. anchor_top = 0.0
  80. anchor_right = 1.0
  81. anchor_bottom = 1.0
  82. rect_pivot_offset = Vector2( 0, 0 )
  83. rect_clip_content = false
  84. mouse_filter = 2
  85. mouse_default_cursor_shape = 0
  86. size_flags_horizontal = 1
  87. size_flags_vertical = 4
  88. custom_fonts/font = ExtResource( 2 )
  89. custom_colors/font_color = Color( 0.892081, 0.914062, 0.210663, 1 )
  90. custom_colors/font_color_shadow = Color( 0.152344, 0.111877, 0.111877, 1 )
  91. custom_constants/shadow_offset_x = 0
  92. custom_constants/shadow_offset_y = 0
  93. text = "resume"
  94. align = 1
  95. valign = 1
  96. percent_visible = 1.0
  97. lines_skipped = 0
  98. max_lines_visible = -1
  99. _sections_unfolded = [ "custom_colors", "custom_constants", "custom_fonts" ]
  100. [node name="RestartGameButton" type="Button" parent="Menu" index="2"]
  101. anchor_left = 0.0
  102. anchor_top = 0.0
  103. anchor_right = 0.0
  104. anchor_bottom = 0.0
  105. margin_top = 101.0
  106. margin_right = 320.0
  107. margin_bottom = 146.0
  108. rect_min_size = Vector2( 0, 45 )
  109. rect_pivot_offset = Vector2( 0, 0 )
  110. rect_clip_content = false
  111. focus_mode = 2
  112. mouse_filter = 0
  113. mouse_default_cursor_shape = 0
  114. size_flags_horizontal = 3
  115. size_flags_vertical = 3
  116. toggle_mode = false
  117. enabled_focus_mode = 2
  118. shortcut = null
  119. group = null
  120. flat = false
  121. align = 1
  122. _sections_unfolded = [ "Grow Direction", "Margin", "Rect", "Size Flags" ]
  123. [node name="restart" type="Label" parent="Menu/RestartGameButton" index="0"]
  124. anchor_left = 0.0
  125. anchor_top = 0.0
  126. anchor_right = 1.0
  127. anchor_bottom = 1.0
  128. rect_pivot_offset = Vector2( 0, 0 )
  129. rect_clip_content = false
  130. mouse_filter = 2
  131. mouse_default_cursor_shape = 0
  132. size_flags_horizontal = 1
  133. size_flags_vertical = 4
  134. custom_fonts/font = ExtResource( 2 )
  135. custom_colors/font_color = Color( 0.892081, 0.914062, 0.210663, 1 )
  136. custom_colors/font_color_shadow = Color( 0.152344, 0.111877, 0.111877, 1 )
  137. custom_constants/shadow_offset_x = 0
  138. custom_constants/shadow_offset_y = 0
  139. text = "restart"
  140. align = 1
  141. valign = 1
  142. percent_visible = 1.0
  143. lines_skipped = 0
  144. max_lines_visible = -1
  145. _sections_unfolded = [ "custom_colors", "custom_constants", "custom_fonts" ]
  146. [node name="ExitGameButton" type="Button" parent="Menu" index="3"]
  147. anchor_left = 0.0
  148. anchor_top = 0.0
  149. anchor_right = 0.0
  150. anchor_bottom = 0.0
  151. margin_top = 150.0
  152. margin_right = 320.0
  153. margin_bottom = 195.0
  154. rect_min_size = Vector2( 0, 45 )
  155. rect_pivot_offset = Vector2( 0, 0 )
  156. rect_clip_content = false
  157. focus_mode = 2
  158. mouse_filter = 0
  159. mouse_default_cursor_shape = 0
  160. size_flags_horizontal = 3
  161. size_flags_vertical = 3
  162. toggle_mode = false
  163. enabled_focus_mode = 2
  164. shortcut = null
  165. group = null
  166. flat = false
  167. align = 1
  168. _sections_unfolded = [ "Rect", "Size Flags" ]
  169. [node name="exit" type="Label" parent="Menu/ExitGameButton" index="0"]
  170. anchor_left = 0.0
  171. anchor_top = 0.0
  172. anchor_right = 1.0
  173. anchor_bottom = 1.0
  174. rect_pivot_offset = Vector2( 0, 0 )
  175. rect_clip_content = false
  176. mouse_filter = 2
  177. mouse_default_cursor_shape = 0
  178. size_flags_horizontal = 1
  179. size_flags_vertical = 4
  180. custom_fonts/font = ExtResource( 2 )
  181. custom_colors/font_color = Color( 0.892081, 0.914062, 0.210663, 1 )
  182. custom_colors/font_color_shadow = Color( 0.152344, 0.111877, 0.111877, 1 )
  183. custom_constants/shadow_offset_x = 0
  184. custom_constants/shadow_offset_y = 0
  185. text = "exit to menu"
  186. align = 1
  187. valign = 1
  188. percent_visible = 1.0
  189. lines_skipped = 0
  190. max_lines_visible = -1
  191. _sections_unfolded = [ "custom_colors", "custom_constants", "custom_fonts" ]
  192. [connection signal="pressed" from="Menu/ResumeGameButton" to="." method="_on_ResumeGameButton_pressed"]
  193. [connection signal="pressed" from="Menu/RestartGameButton" to="." method="_on_RestartGameButton_pressed"]
  194. [connection signal="pressed" from="Menu/ExitGameButton" to="." method="_on_ExitGameButton_pressed"]