pause_menu.tscn 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. [gd_scene load_steps=9 format=3 uid="uid://dk8arl1if3lyr"]
  2. [ext_resource type="Texture2D" uid="uid://cgv7xgoy43rbc" path="res://player/crosshair.svg" id="1"]
  3. [ext_resource type="Theme" uid="uid://ckax6htygmelo" path="res://menu/theme/theme.tres" id="2"]
  4. [ext_resource type="PackedScene" uid="uid://e22n700qhxqr" path="res://menu/options/options.tscn" id="3"]
  5. [ext_resource type="Script" path="res://menu/ingame/pause_menu.gd" id="4"]
  6. [ext_resource type="Texture2D" uid="uid://ej6lqf2fptv8" path="res://menu/button.png" id="5"]
  7. [ext_resource type="Texture2D" uid="uid://blcjvv0p0a6v8" path="res://menu/button_pressed.png" id="5_sc8eq"]
  8. [ext_resource type="Texture2D" uid="uid://cfh73c8wnvgol" path="res://menu/button_hover.png" id="6_xrlxa"]
  9. [ext_resource type="Texture2D" uid="uid://h208mfx7dyy2" path="res://menu/button_focus.png" id="7_elacb"]
  10. [node name="PauseMenu" type="Control"]
  11. layout_mode = 3
  12. anchors_preset = 15
  13. anchor_right = 1.0
  14. anchor_bottom = 1.0
  15. grow_horizontal = 2
  16. grow_vertical = 2
  17. theme = ExtResource("2")
  18. script = ExtResource("4")
  19. [node name="Crosshair" type="CenterContainer" parent="."]
  20. anchors_preset = 15
  21. anchor_right = 1.0
  22. anchor_bottom = 1.0
  23. grow_horizontal = 2
  24. grow_vertical = 2
  25. [node name="TextureRect" type="TextureRect" parent="Crosshair"]
  26. modulate = Color(1, 1, 1, 0.501961)
  27. offset_left = 784.0
  28. offset_top = 434.0
  29. offset_right = 816.0
  30. offset_bottom = 466.0
  31. texture = ExtResource("1")
  32. [node name="Pause" type="VBoxContainer" parent="."]
  33. visible = false
  34. anchors_preset = 15
  35. anchor_right = 1.0
  36. anchor_bottom = 1.0
  37. grow_horizontal = 2
  38. grow_vertical = 2
  39. [node name="ButtonHolder" type="HBoxContainer" parent="Pause"]
  40. offset_right = 1024.0
  41. offset_bottom = 600.0
  42. size_flags_vertical = 3
  43. alignment = 1
  44. [node name="MainButtons" type="VBoxContainer" parent="Pause/ButtonHolder"]
  45. offset_left = 320.0
  46. offset_right = 704.0
  47. offset_bottom = 600.0
  48. theme_override_constants/separation = 20
  49. alignment = 1
  50. [node name="Resume" type="TextureButton" parent="Pause/ButtonHolder/MainButtons"]
  51. offset_top = 142.0
  52. offset_right = 384.0
  53. offset_bottom = 206.0
  54. texture_normal = ExtResource("5")
  55. texture_pressed = ExtResource("5_sc8eq")
  56. texture_hover = ExtResource("6_xrlxa")
  57. texture_focused = ExtResource("7_elacb")
  58. [node name="Label" type="Label" parent="Pause/ButtonHolder/MainButtons/Resume"]
  59. anchors_preset = 15
  60. anchor_right = 1.0
  61. anchor_bottom = 1.0
  62. offset_top = -1.0
  63. offset_bottom = -18.0
  64. grow_horizontal = 2
  65. grow_vertical = 2
  66. theme_override_font_sizes/font_size = 60
  67. text = "Resume Game"
  68. horizontal_alignment = 1
  69. vertical_alignment = 1
  70. [node name="Options" type="TextureButton" parent="Pause/ButtonHolder/MainButtons"]
  71. offset_top = 226.0
  72. offset_right = 384.0
  73. offset_bottom = 290.0
  74. texture_normal = ExtResource("5")
  75. texture_pressed = ExtResource("5_sc8eq")
  76. texture_hover = ExtResource("6_xrlxa")
  77. texture_focused = ExtResource("7_elacb")
  78. [node name="Label" type="Label" parent="Pause/ButtonHolder/MainButtons/Options"]
  79. anchors_preset = 15
  80. anchor_right = 1.0
  81. anchor_bottom = 1.0
  82. offset_top = -1.0
  83. offset_bottom = -18.0
  84. grow_horizontal = 2
  85. grow_vertical = 2
  86. theme_override_font_sizes/font_size = 60
  87. text = "Options"
  88. horizontal_alignment = 1
  89. vertical_alignment = 1
  90. [node name="MainMenu" type="TextureButton" parent="Pause/ButtonHolder/MainButtons"]
  91. offset_top = 310.0
  92. offset_right = 384.0
  93. offset_bottom = 374.0
  94. texture_normal = ExtResource("5")
  95. texture_pressed = ExtResource("5_sc8eq")
  96. texture_hover = ExtResource("6_xrlxa")
  97. texture_focused = ExtResource("7_elacb")
  98. [node name="Label" type="Label" parent="Pause/ButtonHolder/MainButtons/MainMenu"]
  99. anchors_preset = 15
  100. anchor_right = 1.0
  101. anchor_bottom = 1.0
  102. offset_top = -1.0
  103. offset_bottom = -18.0
  104. grow_horizontal = 2
  105. grow_vertical = 2
  106. theme_override_font_sizes/font_size = 60
  107. text = "Main Menu"
  108. horizontal_alignment = 1
  109. vertical_alignment = 1
  110. [node name="Exit" type="TextureButton" parent="Pause/ButtonHolder/MainButtons"]
  111. offset_top = 394.0
  112. offset_right = 384.0
  113. offset_bottom = 458.0
  114. texture_normal = ExtResource("5")
  115. texture_pressed = ExtResource("5_sc8eq")
  116. texture_hover = ExtResource("6_xrlxa")
  117. texture_focused = ExtResource("7_elacb")
  118. [node name="Label" type="Label" parent="Pause/ButtonHolder/MainButtons/Exit"]
  119. anchors_preset = 15
  120. anchor_right = 1.0
  121. anchor_bottom = 1.0
  122. offset_top = -1.0
  123. offset_bottom = -18.0
  124. grow_horizontal = 2
  125. grow_vertical = 2
  126. theme_override_font_sizes/font_size = 60
  127. text = "Exit Game"
  128. horizontal_alignment = 1
  129. vertical_alignment = 1
  130. [node name="Options" parent="." instance=ExtResource("3")]
  131. [connection signal="pressed" from="Pause/ButtonHolder/MainButtons/Resume" to="." method="_on_Resume_pressed"]
  132. [connection signal="pressed" from="Pause/ButtonHolder/MainButtons/Options" to="." method="_on_Options_pressed"]
  133. [connection signal="pressed" from="Pause/ButtonHolder/MainButtons/MainMenu" to="." method="_on_MainMenu_pressed"]
  134. [connection signal="pressed" from="Pause/ButtonHolder/MainButtons/Exit" to="." method="_on_Exit_pressed"]