mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 16:59:53 +09:00
Initial implementation of new flow (only working for approach rate)
This commit is contained in:
20
osu.Game/Rulesets/Mods/ApproachRateSettingsControl.cs
Normal file
20
osu.Game/Rulesets/Mods/ApproachRateSettingsControl.cs
Normal file
@ -0,0 +1,20 @@
|
||||
// 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.Game.Beatmaps;
|
||||
|
||||
namespace osu.Game.Rulesets.Mods
|
||||
{
|
||||
public class ApproachRateSettingsControl : DifficultyAdjustSettingsControl
|
||||
{
|
||||
public ApproachRateSettingsControl()
|
||||
{
|
||||
CurrentNumber.Precision = 0.1f;
|
||||
|
||||
CurrentNumber.MinValue = 0;
|
||||
CurrentNumber.MaxValue = 10;
|
||||
}
|
||||
|
||||
protected override float UpdateFromDifficulty(BeatmapDifficulty difficulty) => difficulty.ApproachRate;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user