mirror of https://github.com/ppy/osu
34 lines
1.1 KiB
C#
34 lines
1.1 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.Sprites;
|
||
|
using osu.Game.Configuration;
|
||
|
using osu.Game.Rulesets.Mania.Objects;
|
||
|
using osu.Game.Rulesets.Mania.UI;
|
||
|
using osu.Game.Rulesets.Mods;
|
||
|
using osu.Game.Rulesets.UI;
|
||
|
|
||
|
namespace osu.Game.Rulesets.Mania.Mods
|
||
|
{
|
||
|
public class ManiaModConstantSpeed : Mod, IApplicableToDrawableRuleset<ManiaHitObject>
|
||
|
{
|
||
|
public override string Name => "Constant Speed";
|
||
|
|
||
|
public override string Acronym => "CS";
|
||
|
|
||
|
public override double ScoreMultiplier => 1;
|
||
|
|
||
|
public override string Description => "No more tricky speed changes!";
|
||
|
|
||
|
public override IconUsage? Icon => FontAwesome.Solid.Equals;
|
||
|
|
||
|
public override ModType Type => ModType.Conversion;
|
||
|
|
||
|
public void ApplyToDrawableRuleset(DrawableRuleset<ManiaHitObject> drawableRuleset)
|
||
|
{
|
||
|
var maniaRuleset = (DrawableManiaRuleset)drawableRuleset;
|
||
|
maniaRuleset.ScrollMethod = ScrollVisualisationMethod.Constant;
|
||
|
}
|
||
|
}
|
||
|
}
|