mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 17:43:05 +08:00
readded approach circles
This commit is contained in:
parent
4a6c8785af
commit
e416c87970
@ -8,13 +8,12 @@ using osu.Game.Configuration;
|
||||
using osu.Game.Rulesets.Mods;
|
||||
using osu.Game.Rulesets.Objects.Drawables;
|
||||
using osu.Game.Rulesets.Osu.Objects;
|
||||
using osu.Game.Rulesets.Osu.Objects.Drawables;
|
||||
using osu.Game.Rulesets.Osu.UI;
|
||||
using osu.Game.Rulesets.UI;
|
||||
|
||||
namespace osu.Game.Rulesets.Osu.Mods
|
||||
{
|
||||
public class OsuModFlash : ModWithVisibilityAdjustment, IHidesApproachCircles, IApplicableToDrawableRuleset<OsuHitObject>
|
||||
public class OsuModFreezeFrame : ModWithVisibilityAdjustment, IHidesApproachCircles, IApplicableToDrawableRuleset<OsuHitObject>
|
||||
{
|
||||
public override string Name => "Freeze frame";
|
||||
|
||||
@ -26,7 +25,7 @@ namespace osu.Game.Rulesets.Osu.Mods
|
||||
|
||||
public override ModType Type => ModType.Fun;
|
||||
|
||||
public override IconUsage? Icon => FontAwesome.Solid.Fire;
|
||||
public override IconUsage? Icon => FontAwesome.Solid.Camera;
|
||||
|
||||
public override Type[] IncompatibleMods => new[] { typeof(OsuModTarget), typeof(OsuModStrictTracking) };
|
||||
|
||||
@ -38,7 +37,6 @@ namespace osu.Game.Rulesets.Osu.Mods
|
||||
Precision = .25f
|
||||
};
|
||||
|
||||
|
||||
public void ApplyToDrawableRuleset(DrawableRuleset<OsuHitObject> drawableRuleset)
|
||||
{
|
||||
(drawableRuleset.Playfield as OsuPlayfield)?.FollowPoints.Hide();
|
||||
@ -69,23 +67,8 @@ namespace osu.Game.Rulesets.Osu.Mods
|
||||
|
||||
protected override void ApplyNormalVisibilityState(DrawableHitObject hitObject, ArmedState state) => applyFrozenState(hitObject, state);
|
||||
|
||||
private void applyFrozenState(DrawableHitObject drawable, ArmedState state)
|
||||
private void applyFrozenState(DrawableHitObject drawableObject, ArmedState state)
|
||||
{
|
||||
if (drawable is DrawableSpinner)
|
||||
return;
|
||||
|
||||
var h = (OsuHitObject)drawable.HitObject;
|
||||
/*
|
||||
switch (drawable)
|
||||
{
|
||||
case DrawableHitCircle circle:
|
||||
using (circle.BeginAbsoluteSequence(h.StartTime - h.TimePreempt))
|
||||
{
|
||||
circle.ApproachCircle.Hide();
|
||||
}
|
||||
|
||||
break;
|
||||
}*/
|
||||
}
|
||||
}
|
||||
}
|
@ -202,7 +202,7 @@ namespace osu.Game.Rulesets.Osu
|
||||
new OsuModNoScope(),
|
||||
new MultiMod(new OsuModMagnetised(), new OsuModRepel()),
|
||||
new ModAdaptiveSpeed(),
|
||||
new OsuModFlash()
|
||||
new OsuModFreezeFrame()
|
||||
};
|
||||
|
||||
case ModType.System:
|
||||
|
Loading…
Reference in New Issue
Block a user