1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-06 23:27:25 +08:00
osu-lazer/osu.Game.Rulesets.Catch/Mods/CatchModFloatingFruits.cs

28 lines
1.1 KiB
C#
Raw Normal View History

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