pause_menu.tscn 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. [gd_scene load_steps=4 format=3 uid="uid://c68bdcjpdm1y2"]
  2. [ext_resource type="Script" path="res://component/ui/pause/pause_menu.gd" id="1_yqs56"]
  3. [sub_resource type="InputEventAction" id="InputEventAction_ucj0l"]
  4. action = &"ui_cancel"
  5. [sub_resource type="Shortcut" id="Shortcut_2elwo"]
  6. events = [SubResource("InputEventAction_ucj0l")]
  7. [node name="PauseMenu" type="VSplitContainer"]
  8. process_mode = 3
  9. visible = false
  10. anchors_preset = 15
  11. anchor_right = 1.0
  12. anchor_bottom = 1.0
  13. grow_horizontal = 2
  14. grow_vertical = 2
  15. size_flags_horizontal = 4
  16. script = ExtResource("1_yqs56")
  17. [node name="Title" type="Label" parent="."]
  18. layout_mode = 2
  19. theme_override_font_sizes/font_size = 40
  20. text = "Pause"
  21. horizontal_alignment = 1
  22. [node name="Buttons" type="VBoxContainer" parent="."]
  23. process_mode = 2
  24. layout_mode = 2
  25. size_flags_horizontal = 4
  26. size_flags_vertical = 4
  27. [node name="ResumeButton" type="Button" parent="Buttons"]
  28. unique_name_in_owner = true
  29. layout_mode = 2
  30. theme_override_font_sizes/font_size = 33
  31. text = "Resume"
  32. [node name="TitleButton" type="Button" parent="Buttons"]
  33. layout_mode = 2
  34. theme_override_font_sizes/font_size = 33
  35. text = "Return to title screen"
  36. [node name="QuitButton" type="Button" parent="Buttons"]
  37. layout_mode = 2
  38. theme_override_font_sizes/font_size = 33
  39. shortcut = SubResource("Shortcut_2elwo")
  40. text = "Quit"
  41. [connection signal="visibility_changed" from="." to="." method="_on_visibility_changed"]
  42. [connection signal="pressed" from="Buttons/ResumeButton" to="." method="_on_resume_button_pressed"]
  43. [connection signal="pressed" from="Buttons/TitleButton" to="." method="_on_title_button_pressed"]
  44. [connection signal="pressed" from="Buttons/QuitButton" to="." method="_on_quit_button_pressed"]