1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 11:07:52 +08:00

add mania FadeIn mod configuration

This commit is contained in:
Dylan Nantz 2023-01-11 14:13:29 -05:00
parent efded323e4
commit 1f4e0303f7
3 changed files with 9 additions and 4 deletions

View File

@ -20,8 +20,12 @@ namespace osu.Game.Rulesets.Mania.Mods
protected override CoverExpandDirection ExpandDirection => CoverExpandDirection.AlongScroll;
// This could be customisable like ManiaModHidden in the future if there's any demand.
// At that point, the bindable could be moved to `ManiaModPlayfieldCover`.
public override BindableNumber<float> Coverage { get; } = new BindableFloat(0.5f);
public override BindableNumber<float> Coverage { get; } = new BindableFloat(0.5f)
{
Precision = 0.1f,
MinValue = 0.1f,
MaxValue = 0.7f,
Default = 0.5f,
};
}
}

View File

@ -15,7 +15,6 @@ namespace osu.Game.Rulesets.Mania.Mods
public override LocalisableString Description => @"Keys fade out before you hit them!";
public override double ScoreMultiplier => 1;
[SettingSource("Coverage", "The proportion of playfield height that notes will be hidden for.")]
public override BindableNumber<float> Coverage { get; } = new BindableFloat(0.5f)
{
Precision = 0.1f,

View File

@ -6,6 +6,7 @@ using System.Linq;
using osu.Framework.Bindables;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Configuration;
using osu.Game.Rulesets.Mania.Objects;
using osu.Game.Rulesets.Mania.UI;
using osu.Game.Rulesets.Mods;
@ -23,6 +24,7 @@ namespace osu.Game.Rulesets.Mania.Mods
/// </summary>
protected abstract CoverExpandDirection ExpandDirection { get; }
[SettingSource("Coverage", "The proportion of playfield height that notes will be hidden for.")]
public abstract BindableNumber<float> Coverage { get; }
public virtual void ApplyToDrawableRuleset(DrawableRuleset<ManiaHitObject> drawableRuleset)