mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 16:57:25 +08:00
30 lines
1.0 KiB
C#
30 lines
1.0 KiB
C#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
using osu.Framework.Graphics;
|
|
using osu.Framework.Graphics.Sprites;
|
|
using osu.Game.Rulesets.Catch.Objects;
|
|
using osu.Game.Rulesets.Mods;
|
|
using osu.Game.Rulesets.UI;
|
|
using osuTK;
|
|
|
|
namespace osu.Game.Rulesets.Catch.Mods
|
|
{
|
|
public class CatchModFloatingFruits : Mod, IApplicableToDrawableRuleset<CatchHitObject>
|
|
{
|
|
public override string Name => "Floating Fruits";
|
|
public override string Acronym => "FF";
|
|
public override string Description => "The fruits are... floating?";
|
|
public override double ScoreMultiplier => 1;
|
|
public override IconUsage? Icon => FontAwesome.Solid.Cloud;
|
|
|
|
public void ApplyToDrawableRuleset(DrawableRuleset<CatchHitObject> drawableRuleset)
|
|
{
|
|
drawableRuleset.Anchor = Anchor.Centre;
|
|
drawableRuleset.Origin = Anchor.Centre;
|
|
|
|
drawableRuleset.Scale = new Vector2(1, -1);
|
|
}
|
|
}
|
|
}
|