mirror of
https://github.com/ppy/osu.git
synced 2025-01-30 03:42:56 +08:00
Hide health bar in no fail
This commit is contained in:
parent
d37cefbad8
commit
41597efdf7
@ -4,10 +4,11 @@
|
|||||||
using System;
|
using System;
|
||||||
using osu.Framework.Graphics.Sprites;
|
using osu.Framework.Graphics.Sprites;
|
||||||
using osu.Game.Graphics;
|
using osu.Game.Graphics;
|
||||||
|
using osu.Game.Screens.Play;
|
||||||
|
|
||||||
namespace osu.Game.Rulesets.Mods
|
namespace osu.Game.Rulesets.Mods
|
||||||
{
|
{
|
||||||
public abstract class ModNoFail : Mod, IApplicableFailOverride
|
public abstract class ModNoFail : Mod, IApplicableFailOverride, IApplicableToHUD
|
||||||
{
|
{
|
||||||
public override string Name => "No Fail";
|
public override string Name => "No Fail";
|
||||||
public override string Acronym => "NF";
|
public override string Acronym => "NF";
|
||||||
@ -22,5 +23,7 @@ namespace osu.Game.Rulesets.Mods
|
|||||||
/// We never fail, 'yo.
|
/// We never fail, 'yo.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool AllowFail => false;
|
public bool AllowFail => false;
|
||||||
|
|
||||||
|
public void ApplyToHUD(HUDOverlay overlay) => overlay.HealthDisplay.Hide();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user