2019-01-25 18:17:48 +08: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 18:46:53 +08:00
|
|
|
|
|
|
|
using osu.Game.Configuration;
|
|
|
|
using osu.Game.Rulesets.Configuration;
|
2020-10-20 12:59:03 +08:00
|
|
|
using osu.Game.Rulesets.UI;
|
2019-01-23 18:46:53 +08:00
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Osu.Configuration
|
|
|
|
{
|
2019-01-25 18:14:37 +08:00
|
|
|
public class OsuRulesetConfigManager : RulesetConfigManager<OsuRulesetSetting>
|
2019-01-23 18:46:53 +08:00
|
|
|
{
|
2024-09-04 18:28:07 +08:00
|
|
|
public OsuRulesetConfigManager(SettingsStore? settings, RulesetInfo ruleset, int? variant = null)
|
2019-01-23 18:46:53 +08:00
|
|
|
: base(settings, ruleset, variant)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
protected override void InitialiseDefaults()
|
|
|
|
{
|
|
|
|
base.InitialiseDefaults();
|
2021-03-17 15:10:16 +08:00
|
|
|
SetDefault(OsuRulesetSetting.SnakingInSliders, true);
|
|
|
|
SetDefault(OsuRulesetSetting.SnakingOutSliders, true);
|
|
|
|
SetDefault(OsuRulesetSetting.ShowCursorTrail, true);
|
2023-04-29 15:05:45 +08:00
|
|
|
SetDefault(OsuRulesetSetting.ShowCursorRipples, false);
|
2021-03-17 15:10:16 +08:00
|
|
|
SetDefault(OsuRulesetSetting.PlayfieldBorderStyle, PlayfieldBorderStyle.None);
|
2024-09-04 15:37:52 +08:00
|
|
|
|
2024-09-05 14:15:15 +08:00
|
|
|
SetDefault(OsuRulesetSetting.ReplayClickMarkersEnabled, false);
|
|
|
|
SetDefault(OsuRulesetSetting.ReplayFrameMarkersEnabled, false);
|
|
|
|
SetDefault(OsuRulesetSetting.ReplayCursorPathEnabled, false);
|
2024-09-04 15:37:52 +08:00
|
|
|
SetDefault(OsuRulesetSetting.ReplayCursorHideEnabled, false);
|
2024-09-05 14:53:53 +08:00
|
|
|
SetDefault(OsuRulesetSetting.ReplayAnalysisDisplayLength, 750);
|
2019-01-23 18:46:53 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-01-25 18:14:37 +08:00
|
|
|
public enum OsuRulesetSetting
|
2019-01-23 18:46:53 +08:00
|
|
|
{
|
|
|
|
SnakingInSliders,
|
2019-04-04 16:09:11 +08:00
|
|
|
SnakingOutSliders,
|
2020-10-20 03:00:49 +08:00
|
|
|
ShowCursorTrail,
|
2023-04-29 15:05:45 +08:00
|
|
|
ShowCursorRipples,
|
2020-10-20 12:59:03 +08:00
|
|
|
PlayfieldBorderStyle,
|
2024-09-04 15:37:52 +08:00
|
|
|
|
|
|
|
// Replay
|
2024-09-05 14:15:15 +08:00
|
|
|
ReplayClickMarkersEnabled,
|
|
|
|
ReplayFrameMarkersEnabled,
|
|
|
|
ReplayCursorPathEnabled,
|
2024-09-04 15:37:52 +08:00
|
|
|
ReplayCursorHideEnabled,
|
2024-09-05 14:53:53 +08:00
|
|
|
ReplayAnalysisDisplayLength,
|
2019-01-23 18:46:53 +08:00
|
|
|
}
|
|
|
|
}
|