osu/osu.Game/Rulesets/Mods/ModWindUp.cs

50 lines
1.6 KiB
C#
Raw Normal View History

2019-01-26 05:43:27 +00: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 System;
using System.Linq;
2019-12-09 10:58:51 +00:00
using osu.Framework.Bindables;
using osu.Framework.Graphics.Sprites;
2019-12-09 10:58:51 +00:00
using osu.Game.Configuration;
2019-01-26 04:15:45 +00:00
namespace osu.Game.Rulesets.Mods
{
public class ModWindUp : ModTimeRamp
2019-01-26 04:15:45 +00:00
{
public override string Name => "Wind Up";
public override string Acronym => "WU";
2019-03-04 09:39:13 +00:00
public override string Description => "Can you keep up?";
2020-01-14 13:22:00 +00:00
public override IconUsage? Icon => FontAwesome.Solid.ChevronCircleUp;
public override double ScoreMultiplier => 1.0;
[SettingSource("Initial rate", "The starting speed of the track")]
public override BindableNumber<double> InitialRate { get; } = new BindableDouble
{
MinValue = 0.5,
MaxValue = 1,
Default = 1,
Value = 1,
Precision = 0.01,
};
2019-12-09 10:58:51 +00:00
[SettingSource("Final rate", "The speed increase to ramp towards")]
public override BindableNumber<double> FinalRate { get; } = new BindableDouble
{
2019-12-12 08:45:11 +00:00
MinValue = 1.01,
2019-12-09 10:58:51 +00:00
MaxValue = 2,
Default = 1.5,
Value = 1.5,
Precision = 0.01,
};
2020-06-13 15:30:21 +00:00
[SettingSource("Adjust pitch", "Should pitch be adjusted with speed")]
public override BindableBool AdjustPitch { get; } = new BindableBool
{
Default = true,
Value = true
};
public override Type[] IncompatibleMods => base.IncompatibleMods.Append(typeof(ModWindDown)).ToArray();
2019-01-26 04:15:45 +00:00
}
}