1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 11:37:28 +08:00

revert and make VisibilityContainer not AlwaysPresent

This commit is contained in:
chrisny286 2019-01-23 02:37:17 +01:00
parent f01ba17d1f
commit 12503b4d07
2 changed files with 0 additions and 3 deletions

View File

@ -48,7 +48,6 @@ namespace osu.Game.Screens.Play
{ {
visibilityContainer = new Container { visibilityContainer = new Container {
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
AlwaysPresent = true, // The hud may be hidden but certain elements may need to still be updated
Children = new Drawable[] { Children = new Drawable[] {
new Container { new Container {
Anchor = Anchor.TopCentre, Anchor = Anchor.TopCentre,
@ -102,7 +101,6 @@ namespace osu.Game.Screens.Play
{ {
showHud = config.GetBindable<bool>(OsuSetting.ShowInterface); showHud = config.GetBindable<bool>(OsuSetting.ShowInterface);
showHud.ValueChanged += hudVisibility => visibilityContainer.FadeTo(hudVisibility ? 1 : 0, duration); showHud.ValueChanged += hudVisibility => visibilityContainer.FadeTo(hudVisibility ? 1 : 0, duration);
showHud.ValueChanged += v => Progress.AllowSeeking = v;
showHud.TriggerChange(); showHud.TriggerChange();
if (!showHud && !hasShownNotificationOnce) if (!showHud && !hasShownNotificationOnce)

View File

@ -125,7 +125,6 @@ namespace osu.Game.Screens.Play
set set
{ {
if (allowSeeking == value) return; if (allowSeeking == value) return;
if (!replayLoaded) return;
allowSeeking = value; allowSeeking = value;
updateBarVisibility(); updateBarVisibility();
} }