mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 16:43:52 +09:00
add mania FadeIn mod configuration
This commit is contained in:
@ -20,8 +20,12 @@ namespace osu.Game.Rulesets.Mania.Mods
|
|||||||
|
|
||||||
protected override CoverExpandDirection ExpandDirection => CoverExpandDirection.AlongScroll;
|
protected override CoverExpandDirection ExpandDirection => CoverExpandDirection.AlongScroll;
|
||||||
|
|
||||||
// This could be customisable like ManiaModHidden in the future if there's any demand.
|
public override BindableNumber<float> Coverage { get; } = new BindableFloat(0.5f)
|
||||||
// At that point, the bindable could be moved to `ManiaModPlayfieldCover`.
|
{
|
||||||
public override BindableNumber<float> Coverage { get; } = new BindableFloat(0.5f);
|
Precision = 0.1f,
|
||||||
|
MinValue = 0.1f,
|
||||||
|
MaxValue = 0.7f,
|
||||||
|
Default = 0.5f,
|
||||||
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -15,7 +15,6 @@ namespace osu.Game.Rulesets.Mania.Mods
|
|||||||
public override LocalisableString Description => @"Keys fade out before you hit them!";
|
public override LocalisableString Description => @"Keys fade out before you hit them!";
|
||||||
public override double ScoreMultiplier => 1;
|
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)
|
public override BindableNumber<float> Coverage { get; } = new BindableFloat(0.5f)
|
||||||
{
|
{
|
||||||
Precision = 0.1f,
|
Precision = 0.1f,
|
||||||
|
@ -6,6 +6,7 @@ using System.Linq;
|
|||||||
using osu.Framework.Bindables;
|
using osu.Framework.Bindables;
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
using osu.Framework.Graphics.Containers;
|
using osu.Framework.Graphics.Containers;
|
||||||
|
using osu.Game.Configuration;
|
||||||
using osu.Game.Rulesets.Mania.Objects;
|
using osu.Game.Rulesets.Mania.Objects;
|
||||||
using osu.Game.Rulesets.Mania.UI;
|
using osu.Game.Rulesets.Mania.UI;
|
||||||
using osu.Game.Rulesets.Mods;
|
using osu.Game.Rulesets.Mods;
|
||||||
@ -23,6 +24,7 @@ namespace osu.Game.Rulesets.Mania.Mods
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
protected abstract CoverExpandDirection ExpandDirection { get; }
|
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 abstract BindableNumber<float> Coverage { get; }
|
||||||
|
|
||||||
public virtual void ApplyToDrawableRuleset(DrawableRuleset<ManiaHitObject> drawableRuleset)
|
public virtual void ApplyToDrawableRuleset(DrawableRuleset<ManiaHitObject> drawableRuleset)
|
||||||
|
Reference in New Issue
Block a user