mirror of
https://github.com/osukey/osukey.git
synced 2025-06-28 22:58:10 +09:00
Revert unnecessary changes
This commit is contained in:
parent
744e651a37
commit
8b4ef52c13
@ -3,7 +3,6 @@
|
|||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
|
||||||
using osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
using osu.Framework.Bindables;
|
using osu.Framework.Bindables;
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
@ -41,7 +40,6 @@ namespace osu.Game.Screens.Play
|
|||||||
private readonly IReadOnlyList<Mod> mods;
|
private readonly IReadOnlyList<Mod> mods;
|
||||||
|
|
||||||
private Bindable<bool> showHud;
|
private Bindable<bool> showHud;
|
||||||
private Bindable<bool> hideHealthbar;
|
|
||||||
private readonly Container visibilityContainer;
|
private readonly Container visibilityContainer;
|
||||||
private readonly BindableBool replayLoaded = new BindableBool();
|
private readonly BindableBool replayLoaded = new BindableBool();
|
||||||
|
|
||||||
@ -79,11 +77,11 @@ namespace osu.Game.Screens.Play
|
|||||||
ComboCounter = CreateComboCounter(),
|
ComboCounter = CreateComboCounter(),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
HealthDisplay = CreateHealthDisplay(),
|
||||||
Progress = CreateProgress(),
|
Progress = CreateProgress(),
|
||||||
ModDisplay = CreateModsContainer(),
|
ModDisplay = CreateModsContainer(),
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
HealthDisplay = CreateHealthDisplay(),
|
|
||||||
PlayerSettingsOverlay = CreatePlayerSettingsOverlay(),
|
PlayerSettingsOverlay = CreatePlayerSettingsOverlay(),
|
||||||
new FillFlowContainer
|
new FillFlowContainer
|
||||||
{
|
{
|
||||||
@ -114,14 +112,8 @@ namespace osu.Game.Screens.Play
|
|||||||
|
|
||||||
ModDisplay.Current.Value = mods;
|
ModDisplay.Current.Value = mods;
|
||||||
|
|
||||||
hideHealthbar = config.GetBindable<bool>(OsuSetting.HideHealthBar);
|
|
||||||
showHud = config.GetBindable<bool>(OsuSetting.ShowInterface);
|
showHud = config.GetBindable<bool>(OsuSetting.ShowInterface);
|
||||||
showHud.ValueChanged += visible =>
|
showHud.ValueChanged += visible => visibilityContainer.FadeTo(visible.NewValue ? 1 : 0, duration);
|
||||||
{
|
|
||||||
visibilityContainer.FadeTo(visible.NewValue ? 1 : 0, duration);
|
|
||||||
if (!(hideHealthbar.Value && mods.OfType<ModBlockFail>().Any()))
|
|
||||||
HealthDisplay.FadeTo(visible.NewValue ? 1 : 0, duration);
|
|
||||||
};
|
|
||||||
showHud.TriggerChange();
|
showHud.TriggerChange();
|
||||||
|
|
||||||
if (!showHud.Value && !hasShownNotificationOnce)
|
if (!showHud.Value && !hasShownNotificationOnce)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user