Skip to content

Commit 3f60411

Browse files
committed
Fix controls always being interactive even when hidden
1 parent 545e195 commit 3f60411

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

osu.Game/Screens/Play/HUD/ReplayOverlay.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,18 @@ public partial class ReplayOverlay : CompositeDrawable, IKeyBindingHandler<Globa
2020

2121
private Bindable<bool> configSettingsOverlay = null!;
2222
private Container messageContainer = null!;
23+
private Container content = null!;
2324

2425
[BackgroundDependencyLoader]
2526
private void load(OsuConfigManager config)
2627
{
2728
RelativeSizeAxes = Axes.Both;
28-
AlwaysPresent = true;
29-
Alpha = 0;
3029

3130
configSettingsOverlay = config.GetBindable<bool>(OsuSetting.ReplaySettingsOverlay);
3231

33-
InternalChild = new Container
32+
InternalChild = content = new Container
3433
{
34+
Alpha = 0,
3535
RelativeSizeAxes = Axes.Both,
3636
Children = new Drawable[]
3737
{
@@ -54,9 +54,9 @@ protected override void LoadComplete()
5454
private void updateVisibility()
5555
{
5656
if (configSettingsOverlay.Value)
57-
Show();
57+
content.FadeIn(fade_duration, Easing.OutQuint);
5858
else
59-
Hide();
59+
content.FadeOut(fade_duration, Easing.OutQuint);
6060
}
6161

6262
public bool OnPressed(KeyBindingPressEvent<GlobalAction> e)

0 commit comments

Comments
 (0)