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.
|
2018-04-13 09:19:50 +00:00
|
|
|
|
|
2017-07-11 18:25:24 +00:00
|
|
|
|
using osu.Framework.Allocation;
|
|
|
|
|
using osu.Framework.Graphics;
|
2021-07-15 03:50:34 +00:00
|
|
|
|
using osu.Framework.Localisation;
|
2023-01-15 20:29:58 +00:00
|
|
|
|
using osu.Game.Localisation;
|
2017-07-11 18:25:24 +00:00
|
|
|
|
using osu.Game.Overlays.Settings;
|
2019-01-23 10:46:53 +00:00
|
|
|
|
using osu.Game.Rulesets.Osu.Configuration;
|
2020-10-20 04:59:03 +00:00
|
|
|
|
using osu.Game.Rulesets.UI;
|
2018-04-13 09:19:50 +00:00
|
|
|
|
|
2017-07-13 06:44:42 +00:00
|
|
|
|
namespace osu.Game.Rulesets.Osu.UI
|
2017-07-11 18:25:24 +00:00
|
|
|
|
{
|
2019-01-23 10:46:53 +00:00
|
|
|
|
public partial class OsuSettingsSubsection : RulesetSettingsSubsection
|
2017-07-11 18:25:24 +00:00
|
|
|
|
{
|
2021-07-15 03:50:34 +00:00
|
|
|
|
protected override LocalisableString Header => "osu!";
|
2018-04-13 09:19:50 +00:00
|
|
|
|
|
2019-01-23 10:46:53 +00:00
|
|
|
|
public OsuSettingsSubsection(Ruleset ruleset)
|
2018-06-11 04:28:50 +00:00
|
|
|
|
: base(ruleset)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2017-07-11 18:25:24 +00:00
|
|
|
|
[BackgroundDependencyLoader]
|
2019-01-23 10:46:53 +00:00
|
|
|
|
private void load()
|
2017-07-11 18:25:24 +00:00
|
|
|
|
{
|
2019-01-25 10:14:37 +00:00
|
|
|
|
var config = (OsuRulesetConfigManager)Config;
|
2019-01-23 10:46:53 +00:00
|
|
|
|
|
2017-07-11 18:25:24 +00:00
|
|
|
|
Children = new Drawable[]
|
|
|
|
|
{
|
|
|
|
|
new SettingsCheckbox
|
|
|
|
|
{
|
2023-01-15 20:29:58 +00:00
|
|
|
|
LabelText = RulesetSettingsStrings.SnakingInSliders,
|
2020-10-06 08:18:41 +00:00
|
|
|
|
Current = config.GetBindable<bool>(OsuRulesetSetting.SnakingInSliders)
|
2017-07-11 18:25:24 +00:00
|
|
|
|
},
|
|
|
|
|
new SettingsCheckbox
|
|
|
|
|
{
|
2022-04-26 06:06:27 +00:00
|
|
|
|
ClassicDefault = false,
|
2023-01-15 20:29:58 +00:00
|
|
|
|
LabelText = RulesetSettingsStrings.SnakingOutSliders,
|
2020-10-06 08:18:41 +00:00
|
|
|
|
Current = config.GetBindable<bool>(OsuRulesetSetting.SnakingOutSliders)
|
2017-07-11 18:25:24 +00:00
|
|
|
|
},
|
2019-01-23 13:27:34 +00:00
|
|
|
|
new SettingsCheckbox
|
|
|
|
|
{
|
2023-01-15 20:29:58 +00:00
|
|
|
|
LabelText = RulesetSettingsStrings.CursorTrail,
|
2020-10-06 08:18:41 +00:00
|
|
|
|
Current = config.GetBindable<bool>(OsuRulesetSetting.ShowCursorTrail)
|
2019-01-23 13:27:34 +00:00
|
|
|
|
},
|
2020-10-20 04:59:03 +00:00
|
|
|
|
new SettingsEnumDropdown<PlayfieldBorderStyle>
|
2020-10-19 19:00:49 +00:00
|
|
|
|
{
|
2023-01-15 20:29:58 +00:00
|
|
|
|
LabelText = RulesetSettingsStrings.PlayfieldBorderStyle,
|
2020-10-20 04:59:03 +00:00
|
|
|
|
Current = config.GetBindable<PlayfieldBorderStyle>(OsuRulesetSetting.PlayfieldBorderStyle),
|
2020-10-19 19:00:49 +00:00
|
|
|
|
},
|
2017-07-11 18:25:24 +00:00
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|