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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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://scenes/typo/Button.tscn" type="PackedScene" 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. visible = false
  12. anchor_right = 1.0
  13. anchor_bottom = 1.0
  14. script = ExtResource( 1 )
  15. __meta__ = {
  16. "_edit_use_anchors_": false
  17. }
  18. [node name="Background" type="ColorRect" parent="."]
  19. anchor_right = 1.0
  20. anchor_bottom = 1.0
  21. color = Color( 0, 0, 0, 0.196078 )
  22. __meta__ = {
  23. "_edit_use_anchors_": false
  24. }
  25. [node name="BackgroundButton" type="TextureButton" parent="."]
  26. anchor_right = 1.0
  27. anchor_bottom = 1.0
  28. expand = true
  29. __meta__ = {
  30. "_edit_use_anchors_": false
  31. }
  32. [node name="MarginContainer" type="MarginContainer" parent="."]
  33. anchor_right = 1.0
  34. anchor_bottom = 1.0
  35. mouse_filter = 2
  36. custom_constants/margin_right = 400
  37. custom_constants/margin_top = 100
  38. custom_constants/margin_left = 400
  39. custom_constants/margin_bottom = 100
  40. __meta__ = {
  41. "_edit_use_anchors_": false
  42. }
  43. [node name="ColorRect" type="ColorRect" parent="MarginContainer"]
  44. margin_left = 400.0
  45. margin_top = 100.0
  46. margin_right = 1520.0
  47. margin_bottom = 980.0
  48. color = Color( 0.164706, 0.180392, 0.196078, 1 )
  49. [node name="MarginContainer2" type="MarginContainer" parent="MarginContainer/ColorRect"]
  50. anchor_right = 1.0
  51. anchor_bottom = 1.0
  52. custom_constants/margin_right = 50
  53. custom_constants/margin_top = 50
  54. custom_constants/margin_left = 50
  55. custom_constants/margin_bottom = 50
  56. __meta__ = {
  57. "_edit_use_anchors_": false
  58. }
  59. [node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/ColorRect/MarginContainer2"]
  60. margin_left = 50.0
  61. margin_top = 50.0
  62. margin_right = 1070.0
  63. margin_bottom = 830.0
  64. __meta__ = {
  65. "_edit_use_anchors_": false
  66. }
  67. [node name="CenterContainer" type="CenterContainer" parent="MarginContainer/ColorRect/MarginContainer2/VBoxContainer"]
  68. margin_right = 1020.0
  69. margin_bottom = 64.0
  70. [node name="TextureRect" type="TextureRect" parent="MarginContainer/ColorRect/MarginContainer2/VBoxContainer/CenterContainer"]
  71. margin_left = 478.0
  72. margin_right = 542.0
  73. margin_bottom = 64.0
  74. texture = ExtResource( 2 )
  75. [node name="Text" type="Label" parent="MarginContainer/ColorRect/MarginContainer2/VBoxContainer"]
  76. margin_top = 68.0
  77. margin_right = 1020.0
  78. margin_bottom = 724.0
  79. size_flags_vertical = 3
  80. custom_fonts/font = SubResource( 1 )
  81. text = "Le jeu est en pause"
  82. align = 1
  83. valign = 1
  84. [node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer/ColorRect/MarginContainer2/VBoxContainer"]
  85. margin_top = 728.0
  86. margin_right = 1020.0
  87. margin_bottom = 780.0
  88. custom_constants/separation = 50
  89. alignment = 1
  90. [node name="MenuButton" parent="MarginContainer/ColorRect/MarginContainer2/VBoxContainer/HBoxContainer" instance=ExtResource( 3 )]
  91. margin_left = 355.0
  92. margin_top = 0.0
  93. margin_right = 455.0
  94. margin_bottom = 52.0
  95. text = "Menu"
  96. [node name="ContinueButton" parent="MarginContainer/ColorRect/MarginContainer2/VBoxContainer/HBoxContainer" instance=ExtResource( 3 )]
  97. margin_left = 505.0
  98. margin_top = 0.0
  99. margin_right = 664.0
  100. margin_bottom = 52.0
  101. text = "Continuer"
  102. [connection signal="pressed" from="BackgroundButton" to="." method="_on_BackgroundButton_pressed"]
  103. [connection signal="pressed" from="MarginContainer/ColorRect/MarginContainer2/VBoxContainer/HBoxContainer/MenuButton" to="." method="_on_MenuButton_pressed"]
  104. [connection signal="pressed" from="MarginContainer/ColorRect/MarginContainer2/VBoxContainer/HBoxContainer/ContinueButton" to="." method="_on_ContinueButton_pressed"]