fixed a bug where the puase menu couldnt be closed by pressing the pause button again

This commit is contained in:
JHDev2006
2025-09-28 21:52:14 +01:00
parent c0f2044a1e
commit 1711402a6a
4 changed files with 36 additions and 22 deletions

View File

@@ -8,6 +8,21 @@
[sub_resource type="RectangleShape2D" id="RectangleShape2D_dnx1i"]
size = Vector2(10, 8)
[sub_resource type="Animation" id="Animation_5y583"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite:offset")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(0, 0)]
}
[sub_resource type="Animation" id="Animation_dnx1i"]
resource_name = "Shake"
length = 0.2
@@ -25,21 +40,6 @@ tracks/0/keys = {
"values": [Vector2(-1, 0), Vector2(1, 0)]
}
[sub_resource type="Animation" id="Animation_5y583"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Sprite:offset")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(0, 0)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_2sios"]
_data = {
&"RESET": SubResource("Animation_5y583"),

View File

@@ -105,6 +105,7 @@ visible = true
[node name="LabelFontChanger" parent="SettingsMenu" index="1" node_paths=PackedStringArray("labels")]
labels = [NodePath("../PanelContainer/MarginContainer/VBoxContainer/Title"), NodePath("../PanelContainer/MarginContainer/VBoxContainer/CategorySelect/HBoxContainer/Category"), null, null, null, null, null, null, null, NodePath("../PanelContainer/MarginContainer/VBoxContainer/Audio/SelectableOptionNode/Value"), null, NodePath("../PanelContainer/MarginContainer/VBoxContainer/Audio/SelectableOptionNode2/Value"), null, NodePath("../PanelContainer/MarginContainer/VBoxContainer/Audio/SelectableOptionNode3/Value"), NodePath("../PanelContainer/MarginContainer/VBoxContainer/Difficulty/Description/AutoScrollContainer/MarginContainer/Desc")]
[connection signal="closed" from="." to="SettingsMenu" method="close"]
[connection signal="option_3_selected" from="." to="." method="open_settings"]
[editable path="SettingsMenu"]

View File

@@ -221,12 +221,14 @@ metadata/_custom_type_script = "uid://364rywt44hy6"
[node name="6" type="Sprite2D" parent="Panel/MarginContainer/VBoxContainer/HBoxContainer/ScrollContainer/SlotContainer/Slot1/ChallengeModeBits"]
position = Vector2(41, 4)
texture = ExtResource("11_sk22j")
region_enabled = true
hframes = 3
vframes = 2
region_rect = Rect2(0, 0, 8, 8)
script = ExtResource("6_x05vu")
metadata/_custom_type_script = "uid://364rywt44hy6"
[node name="Full" type="Sprite2D" parent="Panel/MarginContainer/VBoxContainer/HBoxContainer/ScrollContainer/SlotContainer/Slot1/ChallengeModeBits/6"]
visible = false
texture = ExtResource("11_sk22j")
region_enabled = true
region_rect = Rect2(8, 0, 8, 8)
@@ -417,14 +419,16 @@ metadata/_custom_type_script = "uid://364rywt44hy6"
[node name="6" type="Sprite2D" parent="Panel/MarginContainer/VBoxContainer/HBoxContainer/ScrollContainer/SlotContainer/Slot2/ChallengeModeBits"]
position = Vector2(41, 4)
texture = ExtResource("11_sk22j")
region_enabled = true
hframes = 3
vframes = 2
region_rect = Rect2(0, 0, 8, 8)
script = ExtResource("6_x05vu")
metadata/_custom_type_script = "uid://364rywt44hy6"
[node name="Full" type="Sprite2D" parent="Panel/MarginContainer/VBoxContainer/HBoxContainer/ScrollContainer/SlotContainer/Slot2/ChallengeModeBits/6"]
texture = ExtResource("11_sk22j")
region_enabled = true
hframes = 3
vframes = 2
region_rect = Rect2(16, 0, 8, 8)
script = ExtResource("6_x05vu")
metadata/_custom_type_script = "uid://364rywt44hy6"
@@ -613,14 +617,16 @@ metadata/_custom_type_script = "uid://364rywt44hy6"
[node name="6" type="Sprite2D" parent="Panel/MarginContainer/VBoxContainer/HBoxContainer/ScrollContainer/SlotContainer/Slot3/ChallengeModeBits"]
position = Vector2(41, 4)
texture = ExtResource("11_sk22j")
region_enabled = true
hframes = 3
vframes = 2
region_rect = Rect2(0, 0, 8, 8)
script = ExtResource("6_x05vu")
metadata/_custom_type_script = "uid://364rywt44hy6"
[node name="Full" type="Sprite2D" parent="Panel/MarginContainer/VBoxContainer/HBoxContainer/ScrollContainer/SlotContainer/Slot3/ChallengeModeBits/6"]
texture = ExtResource("11_sk22j")
region_enabled = true
hframes = 3
vframes = 2
region_rect = Rect2(0, 8, 8, 8)
script = ExtResource("6_x05vu")
metadata/_custom_type_script = "uid://364rywt44hy6"
@@ -809,14 +815,16 @@ metadata/_custom_type_script = "uid://364rywt44hy6"
[node name="6" type="Sprite2D" parent="Panel/MarginContainer/VBoxContainer/HBoxContainer/ScrollContainer/SlotContainer/Slot4/ChallengeModeBits"]
position = Vector2(41, 4)
texture = ExtResource("11_sk22j")
region_enabled = true
hframes = 3
vframes = 2
region_rect = Rect2(0, 0, 8, 8)
script = ExtResource("6_x05vu")
metadata/_custom_type_script = "uid://364rywt44hy6"
[node name="Full" type="Sprite2D" parent="Panel/MarginContainer/VBoxContainer/HBoxContainer/ScrollContainer/SlotContainer/Slot4/ChallengeModeBits/6"]
texture = ExtResource("11_sk22j")
region_enabled = true
hframes = 3
vframes = 2
region_rect = Rect2(8, 8, 8, 8)
script = ExtResource("6_x05vu")
metadata/_custom_type_script = "uid://364rywt44hy6"