2018-01-17 19:10:35 +08:00
|
|
|
|
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
|
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
|
|
2018-01-18 16:00:41 +08:00
|
|
|
|
using osu.Framework.Configuration.Tracking;
|
2018-01-24 16:35:37 +08:00
|
|
|
|
using osu.Game.Configuration;
|
2018-01-17 19:10:35 +08:00
|
|
|
|
using osu.Game.Rulesets.Configuration;
|
|
|
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Mania.Configuration
|
|
|
|
|
{
|
|
|
|
|
public class ManiaConfigManager : RulesetConfigManager<ManiaSetting>
|
|
|
|
|
{
|
2018-01-25 22:41:03 +08:00
|
|
|
|
public ManiaConfigManager(SettingsStore settings, RulesetInfo ruleset, int variant)
|
|
|
|
|
: base(settings, ruleset, variant)
|
2018-01-17 19:10:35 +08:00
|
|
|
|
{
|
|
|
|
|
}
|
2018-01-17 20:13:14 +08:00
|
|
|
|
|
|
|
|
|
protected override void InitialiseDefaults()
|
|
|
|
|
{
|
|
|
|
|
base.InitialiseDefaults();
|
|
|
|
|
|
|
|
|
|
Set(ManiaSetting.ScrollTime, 1500.0, 50.0, 10000.0, 50.0);
|
|
|
|
|
}
|
2018-01-18 16:00:41 +08:00
|
|
|
|
|
|
|
|
|
public override TrackedSettings CreateTrackedSettings() => new TrackedSettings
|
|
|
|
|
{
|
|
|
|
|
new TrackedSetting<double>(ManiaSetting.ScrollTime, v => new SettingDescription(v, "Scroll Time", $"{v}ms"))
|
|
|
|
|
};
|
2018-01-17 19:10:35 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum ManiaSetting
|
|
|
|
|
{
|
2018-01-17 20:13:14 +08:00
|
|
|
|
ScrollTime
|
2018-01-17 19:10:35 +08:00
|
|
|
|
}
|
|
|
|
|
}
|