mirror of
https://github.com/ppy/osu
synced 2025-01-18 20:10:49 +00:00
revert and make VisibilityContainer not AlwaysPresent
This commit is contained in:
parent
f01ba17d1f
commit
12503b4d07
@ -48,7 +48,6 @@ namespace osu.Game.Screens.Play
|
||||
{
|
||||
visibilityContainer = new Container {
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
AlwaysPresent = true, // The hud may be hidden but certain elements may need to still be updated
|
||||
Children = new Drawable[] {
|
||||
new Container {
|
||||
Anchor = Anchor.TopCentre,
|
||||
@ -102,7 +101,6 @@ namespace osu.Game.Screens.Play
|
||||
{
|
||||
showHud = config.GetBindable<bool>(OsuSetting.ShowInterface);
|
||||
showHud.ValueChanged += hudVisibility => visibilityContainer.FadeTo(hudVisibility ? 1 : 0, duration);
|
||||
showHud.ValueChanged += v => Progress.AllowSeeking = v;
|
||||
showHud.TriggerChange();
|
||||
|
||||
if (!showHud && !hasShownNotificationOnce)
|
||||
|
@ -125,7 +125,6 @@ namespace osu.Game.Screens.Play
|
||||
set
|
||||
{
|
||||
if (allowSeeking == value) return;
|
||||
if (!replayLoaded) return;
|
||||
allowSeeking = value;
|
||||
updateBarVisibility();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user