123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
- [gd_scene load_steps=6 format=2]
-
- [ext_resource path="res://scenes/PauseMenu.gd" type="Script" id=1]
- [ext_resource path="res://images/pause.png" type="Texture" id=2]
- [ext_resource path="res://fonts/ButtonFont.tres" type="DynamicFont" id=3]
- [ext_resource path="res://fonts/open-sans/OpenSans-Light.ttf" type="DynamicFontData" id=4]
-
- [sub_resource type="DynamicFont" id=1]
- size = 50
- font_data = ExtResource( 4 )
-
- [node name="PauseMenu" type="Control"]
- pause_mode = 2
- anchor_right = 1.0
- anchor_bottom = 1.0
- script = ExtResource( 1 )
- __meta__ = {
- "_edit_use_anchors_": false
- }
-
- [node name="Background" type="ColorRect" parent="."]
- anchor_right = 1.0
- anchor_bottom = 1.0
- color = Color( 0, 0, 0, 0.196078 )
- __meta__ = {
- "_edit_use_anchors_": false
- }
-
- [node name="BackgroundButton" type="TextureButton" parent="."]
- anchor_right = 1.0
- anchor_bottom = 1.0
- expand = true
- __meta__ = {
- "_edit_use_anchors_": false
- }
-
- [node name="MarginContainer" type="MarginContainer" parent="."]
- anchor_right = 1.0
- anchor_bottom = 1.0
- mouse_filter = 2
- custom_constants/margin_right = 400
- custom_constants/margin_top = 100
- custom_constants/margin_left = 400
- custom_constants/margin_bottom = 100
- __meta__ = {
- "_edit_use_anchors_": false
- }
-
- [node name="ColorRect" type="ColorRect" parent="MarginContainer"]
- margin_left = 400.0
- margin_top = 100.0
- margin_right = 1520.0
- margin_bottom = 980.0
- color = Color( 0.164706, 0.180392, 0.196078, 1 )
-
- [node name="MarginContainer2" type="MarginContainer" parent="MarginContainer/ColorRect"]
- anchor_right = 1.0
- anchor_bottom = 1.0
- custom_constants/margin_right = 50
- custom_constants/margin_top = 50
- custom_constants/margin_left = 50
- custom_constants/margin_bottom = 50
- __meta__ = {
- "_edit_use_anchors_": false
- }
-
- [node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/ColorRect/MarginContainer2"]
- margin_left = 50.0
- margin_top = 50.0
- margin_right = 1070.0
- margin_bottom = 830.0
- __meta__ = {
- "_edit_use_anchors_": false
- }
-
- [node name="CenterContainer" type="CenterContainer" parent="MarginContainer/ColorRect/MarginContainer2/VBoxContainer"]
- margin_right = 1020.0
- margin_bottom = 64.0
-
- [node name="TextureRect" type="TextureRect" parent="MarginContainer/ColorRect/MarginContainer2/VBoxContainer/CenterContainer"]
- margin_left = 478.0
- margin_right = 542.0
- margin_bottom = 64.0
- texture = ExtResource( 2 )
-
- [node name="Text" type="Label" parent="MarginContainer/ColorRect/MarginContainer2/VBoxContainer"]
- margin_top = 68.0
- margin_right = 1020.0
- margin_bottom = 728.0
- size_flags_vertical = 3
- custom_fonts/font = SubResource( 1 )
- text = "Le jeu est en pause"
- align = 1
- valign = 1
-
- [node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer/ColorRect/MarginContainer2/VBoxContainer"]
- margin_top = 732.0
- margin_right = 1020.0
- margin_bottom = 780.0
- custom_constants/separation = 50
- alignment = 1
-
- [node name="ExitButton" type="Button" parent="MarginContainer/ColorRect/MarginContainer2/VBoxContainer/HBoxContainer"]
- margin_left = 353.0
- margin_right = 465.0
- margin_bottom = 48.0
- custom_fonts/font = ExtResource( 3 )
- text = "Quitter"
-
- [node name="ContinueButton" type="Button" parent="MarginContainer/ColorRect/MarginContainer2/VBoxContainer/HBoxContainer"]
- margin_left = 515.0
- margin_right = 666.0
- margin_bottom = 48.0
- custom_fonts/font = ExtResource( 3 )
- text = "Continuer"
- [connection signal="pressed" from="BackgroundButton" to="." method="_on_BackgroundButton_pressed"]
- [connection signal="pressed" from="MarginContainer/ColorRect/MarginContainer2/VBoxContainer/HBoxContainer/ExitButton" to="." method="_on_ExitButton_pressed"]
- [connection signal="pressed" from="MarginContainer/ColorRect/MarginContainer2/VBoxContainer/HBoxContainer/ContinueButton" to="." method="_on_ContinueButton_pressed"]
|