pause_menu.tscn 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. [gd_scene load_steps=4 format=3 uid="uid://dh71g61cm8k44"]
  2. [ext_resource type="Theme" uid="uid://da4noqsij73it" path="res://gui/theme.tres" id="1"]
  3. [ext_resource type="Script" path="res://gui/pause_menu.gd" id="2"]
  4. [ext_resource type="PackedScene" uid="uid://bsyqg6eh3wl5i" path="res://gui/coins_counter.tscn" id="4"]
  5. [node name="PauseMenu" type="Control"]
  6. process_mode = 3
  7. layout_mode = 3
  8. anchors_preset = 15
  9. anchor_right = 1.0
  10. anchor_bottom = 1.0
  11. grow_horizontal = 2
  12. grow_vertical = 2
  13. theme = ExtResource("1")
  14. script = ExtResource("2")
  15. [node name="ColorRect" type="ColorRect" parent="."]
  16. layout_mode = 1
  17. anchors_preset = 15
  18. anchor_right = 1.0
  19. anchor_bottom = 1.0
  20. grow_horizontal = 2
  21. grow_vertical = 2
  22. color = Color(0, 0, 0, 0.294118)
  23. [node name="CenterContainer" type="CenterContainer" parent="ColorRect"]
  24. layout_mode = 1
  25. anchors_preset = -1
  26. anchor_right = 1.0
  27. anchor_bottom = 1.0
  28. grow_horizontal = 2
  29. grow_vertical = 2
  30. [node name="VBoxContainer" type="VBoxContainer" parent="ColorRect/CenterContainer"]
  31. layout_mode = 2
  32. alignment = 1
  33. [node name="Label" type="Label" parent="ColorRect/CenterContainer/VBoxContainer"]
  34. layout_mode = 2
  35. text = "Game Paused"
  36. horizontal_alignment = 1
  37. [node name="MarginContainer" type="MarginContainer" parent="ColorRect/CenterContainer/VBoxContainer"]
  38. layout_mode = 2
  39. [node name="ResumeButton" type="Button" parent="ColorRect/CenterContainer/VBoxContainer"]
  40. layout_mode = 2
  41. size_flags_horizontal = 4
  42. text = "Resume"
  43. [node name="QuitButton" type="Button" parent="ColorRect/CenterContainer/VBoxContainer"]
  44. layout_mode = 2
  45. size_flags_horizontal = 4
  46. text = "Quit"
  47. [node name="CoinsCounter" parent="ColorRect" instance=ExtResource("4")]
  48. layout_mode = 0
  49. offset_left = 0.0
  50. offset_top = 0.0
  51. offset_right = 105.0
  52. offset_bottom = 50.0
  53. [connection signal="pressed" from="ColorRect/CenterContainer/VBoxContainer/ResumeButton" to="." method="_on_resume_button_pressed"]
  54. [connection signal="pressed" from="ColorRect/CenterContainer/VBoxContainer/QuitButton" to="." method="_on_quit_button_pressed"]