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.7KB

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