osu/osu.Game.Rulesets.Osu/Configuration/OsuRulesetConfigManager.cs

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

37 lines
1.1 KiB
C#
Raw Normal View History

2019-01-25 10:17:48 +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.
2019-01-23 10:46:53 +00:00
2022-06-17 07:37:17 +00:00
#nullable disable
2019-01-23 10:46:53 +00:00
using osu.Game.Configuration;
using osu.Game.Rulesets.Configuration;
2020-10-20 04:59:03 +00:00
using osu.Game.Rulesets.UI;
2019-01-23 10:46:53 +00:00
namespace osu.Game.Rulesets.Osu.Configuration
{
public class OsuRulesetConfigManager : RulesetConfigManager<OsuRulesetSetting>
2019-01-23 10:46:53 +00:00
{
public OsuRulesetConfigManager(SettingsStore settings, RulesetInfo ruleset, int? variant = null)
2019-01-23 10:46:53 +00:00
: base(settings, ruleset, variant)
{
}
protected override void InitialiseDefaults()
{
base.InitialiseDefaults();
SetDefault(OsuRulesetSetting.SnakingInSliders, true);
SetDefault(OsuRulesetSetting.SnakingOutSliders, true);
SetDefault(OsuRulesetSetting.ShowCursorTrail, true);
SetDefault(OsuRulesetSetting.PlayfieldBorderStyle, PlayfieldBorderStyle.None);
2019-01-23 10:46:53 +00:00
}
}
public enum OsuRulesetSetting
2019-01-23 10:46:53 +00:00
{
SnakingInSliders,
SnakingOutSliders,
ShowCursorTrail,
2020-10-20 04:59:03 +00:00
PlayfieldBorderStyle,
2019-01-23 10:46:53 +00:00
}
}