2019-01-24 08:43:03 +00:00
|
|
|
|
// 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 09:19:50 +00:00
|
|
|
|
|
|
|
|
|
using osu.Framework.Configuration.Tracking;
|
|
|
|
|
using osu.Game.Configuration;
|
|
|
|
|
using osu.Game.Rulesets.Configuration;
|
2018-06-11 05:36:19 +00:00
|
|
|
|
using osu.Game.Rulesets.Mania.UI;
|
2018-04-13 09:19:50 +00:00
|
|
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Mania.Configuration
|
|
|
|
|
{
|
|
|
|
|
public class ManiaConfigManager : RulesetConfigManager<ManiaSetting>
|
|
|
|
|
{
|
2018-06-11 04:13:36 +00:00
|
|
|
|
public ManiaConfigManager(SettingsStore settings, RulesetInfo ruleset, int? variant = null)
|
2018-04-13 09:19:50 +00:00
|
|
|
|
: base(settings, ruleset, variant)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override void InitialiseDefaults()
|
|
|
|
|
{
|
|
|
|
|
base.InitialiseDefaults();
|
|
|
|
|
|
2018-10-01 09:30:52 +00:00
|
|
|
|
Set(ManiaSetting.ScrollTime, 2250.0, 50.0, 10000.0, 50.0);
|
2018-06-11 06:56:30 +00:00
|
|
|
|
Set(ManiaSetting.ScrollDirection, ManiaScrollingDirection.Down);
|
2018-04-13 09:19:50 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override TrackedSettings CreateTrackedSettings() => new TrackedSettings
|
|
|
|
|
{
|
|
|
|
|
new TrackedSetting<double>(ManiaSetting.ScrollTime, v => new SettingDescription(v, "Scroll Time", $"{v}ms"))
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public enum ManiaSetting
|
|
|
|
|
{
|
2018-06-11 05:36:19 +00:00
|
|
|
|
ScrollTime,
|
|
|
|
|
ScrollDirection
|
2018-04-13 09:19:50 +00:00
|
|
|
|
}
|
|
|
|
|
}
|