1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-18 06:52:55 +08:00
osu-lazer/osu.Game.Rulesets.Mania/Mods/ManiaModHidden.cs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
1.2 KiB
C#
Raw Normal View History

// 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.
2018-04-13 17:19:50 +08:00
using System;
using System.Linq;
2022-08-11 04:09:11 +08:00
using osu.Framework.Localisation;
2022-12-20 07:31:28 +08:00
using osu.Game.Configuration;
2021-02-24 14:05:12 +08:00
using osu.Game.Rulesets.Mania.UI;
2022-12-20 07:31:28 +08:00
using osu.Framework.Bindables;
2018-04-13 17:19:50 +08:00
namespace osu.Game.Rulesets.Mania.Mods
{
public class ManiaModHidden : ManiaModPlayfieldCover
{
2022-08-11 04:09:11 +08:00
public override LocalisableString Description => @"Keys fade out before you hit them!";
public override double ScoreMultiplier => 1;
2022-12-21 02:33:33 +08:00
[SettingSource("Coverage", "The proportion of playfield height that notes will be hidden for.")]
2022-12-20 07:31:28 +08:00
public BindableNumber<float> CoverageAmount { get; } = new BindableFloat(0.5f)
{
Precision = 0.01f,
MinValue = 0.2f,
MaxValue = 0.8f,
Default = 0.5f,
};
2022-12-21 02:33:33 +08:00
protected override float Coverage => CoverageAmount.Value;
2022-12-20 07:31:28 +08:00
public override Type[] IncompatibleMods => base.IncompatibleMods.Append(typeof(ManiaModFadeIn)).ToArray();
2021-02-24 14:05:12 +08:00
protected override CoverExpandDirection ExpandDirection => CoverExpandDirection.AgainstScroll;
}
}