PauseGameMenu.tscn 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. [gd_scene load_steps=3 format=2]
  2. [ext_resource path="res://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_right = 1.0
  6. anchor_bottom = 1.0
  7. script = ExtResource( 1 )
  8. [node name="Menu" type="VBoxContainer" parent="."]
  9. anchor_left = 0.5
  10. anchor_right = 0.5
  11. margin_left = -160.0
  12. margin_top = 200.0
  13. margin_right = 160.0
  14. margin_bottom = 200.0
  15. [node name="Title" type="Label" parent="Menu"]
  16. margin_right = 320.0
  17. margin_bottom = 48.0
  18. custom_fonts/font = ExtResource( 2 )
  19. custom_colors/font_color = Color( 0.925842, 1, 0.0507812, 1 )
  20. text = "game paused"
  21. align = 1
  22. [node name="ResumeGameButton" type="Button" parent="Menu"]
  23. margin_top = 52.0
  24. margin_right = 320.0
  25. margin_bottom = 97.0
  26. rect_min_size = Vector2( 0, 45 )
  27. size_flags_horizontal = 3
  28. size_flags_vertical = 3
  29. [node name="resume" type="Label" parent="Menu/ResumeGameButton"]
  30. anchor_right = 1.0
  31. anchor_bottom = 1.0
  32. custom_fonts/font = ExtResource( 2 )
  33. custom_colors/font_color = Color( 0.892081, 0.914062, 0.210663, 1 )
  34. custom_colors/font_color_shadow = Color( 0.152344, 0.111877, 0.111877, 1 )
  35. custom_constants/shadow_offset_x = 0
  36. custom_constants/shadow_offset_y = 0
  37. text = "resume"
  38. align = 1
  39. valign = 1
  40. [node name="RestartGameButton" type="Button" parent="Menu"]
  41. margin_top = 101.0
  42. margin_right = 320.0
  43. margin_bottom = 146.0
  44. rect_min_size = Vector2( 0, 45 )
  45. size_flags_horizontal = 3
  46. size_flags_vertical = 3
  47. [node name="restart" type="Label" parent="Menu/RestartGameButton"]
  48. anchor_right = 1.0
  49. anchor_bottom = 1.0
  50. custom_fonts/font = ExtResource( 2 )
  51. custom_colors/font_color = Color( 0.892081, 0.914062, 0.210663, 1 )
  52. custom_colors/font_color_shadow = Color( 0.152344, 0.111877, 0.111877, 1 )
  53. custom_constants/shadow_offset_x = 0
  54. custom_constants/shadow_offset_y = 0
  55. text = "reset level"
  56. align = 1
  57. valign = 1
  58. [node name="ExitGameButton" type="Button" parent="Menu"]
  59. margin_top = 150.0
  60. margin_right = 320.0
  61. margin_bottom = 195.0
  62. rect_min_size = Vector2( 0, 45 )
  63. size_flags_horizontal = 3
  64. size_flags_vertical = 3
  65. [node name="exit" type="Label" parent="Menu/ExitGameButton"]
  66. anchor_right = 1.0
  67. anchor_bottom = 1.0
  68. custom_fonts/font = ExtResource( 2 )
  69. custom_colors/font_color = Color( 0.892081, 0.914062, 0.210663, 1 )
  70. custom_colors/font_color_shadow = Color( 0.152344, 0.111877, 0.111877, 1 )
  71. custom_constants/shadow_offset_x = 0
  72. custom_constants/shadow_offset_y = 0
  73. text = "exit to menu"
  74. align = 1
  75. valign = 1
  76. [connection signal="pressed" from="Menu/ResumeGameButton" to="." method="_on_ResumeGameButton_pressed"]
  77. [connection signal="pressed" from="Menu/RestartGameButton" to="." method="_on_RestartGameButton_pressed"]
  78. [connection signal="pressed" from="Menu/ExitGameButton" to="." method="_on_ExitGameButton_pressed"]