1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-24 13:22:55 +08:00
osu-lazer/osu.Game.Rulesets.Catch/Mods/CatchModFloatingFruits.cs

30 lines
1.0 KiB
C#
Raw Normal View History

2021-04-24 13:33:56 +08:00
// 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;
2021-04-17 22:01:23 +08:00
using osu.Framework.Graphics.Sprites;
using osu.Game.Rulesets.Catch.Objects;
2021-04-17 22:01:23 +08:00
using osu.Game.Rulesets.Mods;
using osu.Game.Rulesets.UI;
2021-04-24 13:33:56 +08:00
using osuTK;
2021-04-17 22:01:23 +08:00
namespace osu.Game.Rulesets.Catch.Mods
{
public class CatchModFloatingFruits : Mod, IApplicableToDrawableRuleset<CatchHitObject>
2021-04-17 22:01:23 +08:00
{
public override string Name => "Floating Fruits";
public override string Acronym => "FF";
public override string Description => "The fruits are... floating?";
public override double ScoreMultiplier => 1;
2021-04-18 05:55:39 +08:00
public override IconUsage? Icon => FontAwesome.Solid.Cloud;
2021-04-17 22:01:23 +08:00
public void ApplyToDrawableRuleset(DrawableRuleset<CatchHitObject> drawableRuleset)
2021-04-17 22:01:23 +08:00
{
drawableRuleset.Anchor = Anchor.Centre;
drawableRuleset.Origin = Anchor.Centre;
2021-04-24 13:33:56 +08:00
drawableRuleset.Scale = new Vector2(1, -1);
2021-04-17 22:01:23 +08:00
}
}
}