No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

PauseMenu.tscn 3.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. [gd_scene load_steps=6 format=2]
  2. [ext_resource path="res://scenes/PauseMenu.gd" type="Script" id=1]
  3. [ext_resource path="res://images/pause.png" type="Texture" id=2]
  4. [ext_resource path="res://fonts/ButtonFont.tres" type="DynamicFont" id=3]
  5. [ext_resource path="res://fonts/open-sans/OpenSans-Light.ttf" type="DynamicFontData" id=4]
  6. [sub_resource type="DynamicFont" id=1]
  7. size = 50
  8. font_data = ExtResource( 4 )
  9. [node name="PauseMenu" type="Control"]
  10. pause_mode = 2
  11. anchor_right = 1.0
  12. anchor_bottom = 1.0
  13. script = ExtResource( 1 )
  14. __meta__ = {
  15. "_edit_use_anchors_": false
  16. }
  17. [node name="Background" type="ColorRect" parent="."]
  18. anchor_right = 1.0
  19. anchor_bottom = 1.0
  20. color = Color( 0, 0, 0, 0.196078 )
  21. __meta__ = {
  22. "_edit_use_anchors_": false
  23. }
  24. [node name="BackgroundButton" type="TextureButton" parent="."]
  25. anchor_right = 1.0
  26. anchor_bottom = 1.0
  27. expand = true
  28. __meta__ = {
  29. "_edit_use_anchors_": false
  30. }
  31. [node name="MarginContainer" type="MarginContainer" parent="."]
  32. anchor_right = 1.0
  33. anchor_bottom = 1.0
  34. mouse_filter = 2
  35. custom_constants/margin_right = 400
  36. custom_constants/margin_top = 100
  37. custom_constants/margin_left = 400
  38. custom_constants/margin_bottom = 100
  39. __meta__ = {
  40. "_edit_use_anchors_": false
  41. }
  42. [node name="ColorRect" type="ColorRect" parent="MarginContainer"]
  43. margin_left = 400.0
  44. margin_top = 100.0
  45. margin_right = 1520.0
  46. margin_bottom = 980.0
  47. color = Color( 0.164706, 0.180392, 0.196078, 1 )
  48. [node name="MarginContainer2" type="MarginContainer" parent="MarginContainer/ColorRect"]
  49. anchor_right = 1.0
  50. anchor_bottom = 1.0
  51. custom_constants/margin_right = 50
  52. custom_constants/margin_top = 50
  53. custom_constants/margin_left = 50
  54. custom_constants/margin_bottom = 50
  55. __meta__ = {
  56. "_edit_use_anchors_": false
  57. }
  58. [node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/ColorRect/MarginContainer2"]
  59. margin_left = 50.0
  60. margin_top = 50.0
  61. margin_right = 1070.0
  62. margin_bottom = 830.0
  63. __meta__ = {
  64. "_edit_use_anchors_": false
  65. }
  66. [node name="CenterContainer" type="CenterContainer" parent="MarginContainer/ColorRect/MarginContainer2/VBoxContainer"]
  67. margin_right = 1020.0
  68. margin_bottom = 64.0
  69. [node name="TextureRect" type="TextureRect" parent="MarginContainer/ColorRect/MarginContainer2/VBoxContainer/CenterContainer"]
  70. margin_left = 478.0
  71. margin_right = 542.0
  72. margin_bottom = 64.0
  73. texture = ExtResource( 2 )
  74. [node name="Text" type="Label" parent="MarginContainer/ColorRect/MarginContainer2/VBoxContainer"]
  75. margin_top = 68.0
  76. margin_right = 1020.0
  77. margin_bottom = 728.0
  78. size_flags_vertical = 3
  79. custom_fonts/font = SubResource( 1 )
  80. text = "Le jeu est en pause"
  81. align = 1
  82. valign = 1
  83. [node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer/ColorRect/MarginContainer2/VBoxContainer"]
  84. margin_top = 732.0
  85. margin_right = 1020.0
  86. margin_bottom = 780.0
  87. custom_constants/separation = 50
  88. alignment = 1
  89. [node name="ExitButton" type="Button" parent="MarginContainer/ColorRect/MarginContainer2/VBoxContainer/HBoxContainer"]
  90. margin_left = 353.0
  91. margin_right = 465.0
  92. margin_bottom = 48.0
  93. custom_fonts/font = ExtResource( 3 )
  94. text = "Quitter"
  95. [node name="ContinueButton" type="Button" parent="MarginContainer/ColorRect/MarginContainer2/VBoxContainer/HBoxContainer"]
  96. margin_left = 515.0
  97. margin_right = 666.0
  98. margin_bottom = 48.0
  99. custom_fonts/font = ExtResource( 3 )
  100. text = "Continuer"
  101. [connection signal="pressed" from="BackgroundButton" to="." method="_on_BackgroundButton_pressed"]
  102. [connection signal="pressed" from="MarginContainer/ColorRect/MarginContainer2/VBoxContainer/HBoxContainer/ExitButton" to="." method="_on_ExitButton_pressed"]
  103. [connection signal="pressed" from="MarginContainer/ColorRect/MarginContainer2/VBoxContainer/HBoxContainer/ContinueButton" to="." method="_on_ContinueButton_pressed"]