mirror of
https://github.com/ppy/osu.git
synced 2025-02-08 13:13:16 +08:00
Fix results screen sounds persisting after exit
This commit is contained in:
parent
d3b233b08f
commit
cf2d0e6911
@ -64,6 +64,7 @@ namespace osu.Game.Screens.Ranking
|
|||||||
|
|
||||||
private Drawable bottomPanel = null!;
|
private Drawable bottomPanel = null!;
|
||||||
private Container<ScorePanel> detachedPanelContainer = null!;
|
private Container<ScorePanel> detachedPanelContainer = null!;
|
||||||
|
private AudioContainer audioContainer = null!;
|
||||||
|
|
||||||
private bool lastFetchCompleted;
|
private bool lastFetchCompleted;
|
||||||
|
|
||||||
@ -100,7 +101,10 @@ namespace osu.Game.Screens.Ranking
|
|||||||
|
|
||||||
popInSample = audio.Samples.Get(@"UI/overlay-pop-in");
|
popInSample = audio.Samples.Get(@"UI/overlay-pop-in");
|
||||||
|
|
||||||
InternalChild = new PopoverContainer
|
InternalChild = audioContainer = new AudioContainer
|
||||||
|
{
|
||||||
|
RelativeSizeAxes = Axes.Both,
|
||||||
|
Child = new PopoverContainer
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
Child = new GridContainer
|
Child = new GridContainer
|
||||||
@ -172,6 +176,7 @@ namespace osu.Game.Screens.Ranking
|
|||||||
new Dimension(GridSizeMode.AutoSize)
|
new Dimension(GridSizeMode.AutoSize)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
if (Score != null)
|
if (Score != null)
|
||||||
@ -330,6 +335,8 @@ namespace osu.Game.Screens.Ranking
|
|||||||
|
|
||||||
if (!skipExitTransition)
|
if (!skipExitTransition)
|
||||||
this.FadeOut(100);
|
this.FadeOut(100);
|
||||||
|
|
||||||
|
audioContainer.Volume.Value = 0;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user