Skip to content

Commit

Permalink
Merge pull request #98 from SecurityRisk/main
Browse files Browse the repository at this point in the history
Solved a bug where the PauseLayer was capturing all gui_input events
  • Loading branch information
davcri committed Jan 24, 2024
2 parents 910cae0 + eadc71b commit d0b2505
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scenes/gameplay/pause-layer/pause-layer.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ script = ExtResource("2")
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
mouse_filter = 2
color = Color(0.243137, 0.211765, 0.290196, 0.717647)

[node name="MarginContainer" type="MarginContainer" parent="."]
Expand All @@ -20,15 +21,18 @@ anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2

[node name="Control" type="Control" parent="MarginContainer"]
layout_mode = 2
mouse_filter = 2

[node name="PauseButton" type="TextureButton" parent="MarginContainer/Control"]
layout_mode = 1
offset_right = 42.0
offset_bottom = 42.0
size_flags_horizontal = 0
mouse_filter = 1
texture_normal = ExtResource("4")
ignore_texture_size = true
stretch_mode = 0
Expand All @@ -46,16 +50,19 @@ offset_right = 58.0
offset_bottom = 38.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
theme_override_constants/separation = 20

[node name="Resume" type="LinkButton" parent="MarginContainer/Control/VBoxOptions"]
layout_mode = 2
focus_mode = 2
mouse_filter = 1
text = "RESUME"

[node name="MainMenu" type="LinkButton" parent="MarginContainer/Control/VBoxOptions"]
layout_mode = 2
focus_mode = 2
mouse_filter = 1
text = "MAIN MENU"

[node name="Label" type="Label" parent="MarginContainer/Control"]
Expand Down

0 comments on commit d0b2505

Please sign in to comment.