Remove spinner support for now

This commit is contained in:
Dean Herbert 2022-02-02 16:15:49 +09:00
parent 987aa5a21c
commit 2e46404fe5
1 changed files with 0 additions and 30 deletions

View File

@ -37,8 +37,6 @@ internal class OsuModAimAssist : Mod, IUpdatableByPlayfield, IApplicableToDrawab
MaxValue = 1.0f,
};
private const float spin_radius = 50;
private OsuInputManager inputManager;
public void ApplyToDrawableRuleset(DrawableRuleset<OsuHitObject> drawableRuleset)
@ -82,34 +80,6 @@ public void Update(Playfield playfield)
{
slider.HeadCircle.Hide(); // hide flash, triangles, ... so they don't move with slider
easeTo(slider, cursorPos - slider.Ball.DrawPosition);
// FIXME: some sliders re-appearing at their original position for a single frame when they're done
}
break;
case DrawableSpinner spinner:
// Move spinner _next_ to cursor
if (currentTime < h.StartTime)
{
easeTo(spinner, cursorPos + new Vector2(0, -spin_radius));
}
else
{
// Move spinner visually
Vector2 delta = new Vector2(spin_radius);
float angle = (float)gameplayClock.CurrentTime * 10;
// Move spinner logically
if (inputManager?.PressedActions.Any(x => x == OsuAction.LeftButton || x == OsuAction.RightButton) ?? false)
{
var targetPos = new Vector2(
delta.X * MathF.Cos(angle) - delta.Y * MathF.Sin(angle) + cursorPos.X,
delta.X * MathF.Sin(angle) + delta.Y * MathF.Cos(angle) + cursorPos.Y
);
easeTo(spinner, targetPos);
}
}
break;