2019-01-25 11:17:48 +01: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 18:19:50 +09:00
|
|
|
|
|
|
|
|
|
using osu.Framework.Allocation;
|
|
|
|
|
using osu.Framework.Graphics;
|
2021-07-15 12:50:34 +09:00
|
|
|
|
using osu.Framework.Localisation;
|
2018-04-13 18:19:50 +09:00
|
|
|
|
using osu.Game.Overlays.Settings;
|
2019-01-23 11:46:53 +01:00
|
|
|
|
using osu.Game.Rulesets.Osu.Configuration;
|
2020-10-20 13:59:03 +09:00
|
|
|
|
using osu.Game.Rulesets.UI;
|
2018-04-13 18:19:50 +09:00
|
|
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Osu.UI
|
|
|
|
|
{
|
2019-01-23 11:46:53 +01:00
|
|
|
|
public class OsuSettingsSubsection : RulesetSettingsSubsection
|
2018-04-13 18:19:50 +09:00
|
|
|
|
{
|
2021-07-15 12:50:34 +09:00
|
|
|
|
protected override LocalisableString Header => "osu!";
|
2018-04-13 18:19:50 +09:00
|
|
|
|
|
2019-01-23 11:46:53 +01:00
|
|
|
|
public OsuSettingsSubsection(Ruleset ruleset)
|
2018-06-11 13:28:50 +09:00
|
|
|
|
: base(ruleset)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2018-04-13 18:19:50 +09:00
|
|
|
|
[BackgroundDependencyLoader]
|
2019-01-23 11:46:53 +01:00
|
|
|
|
private void load()
|
2018-04-13 18:19:50 +09:00
|
|
|
|
{
|
2019-01-25 11:14:37 +01:00
|
|
|
|
var config = (OsuRulesetConfigManager)Config;
|
2019-01-23 11:46:53 +01:00
|
|
|
|
|
2018-04-13 18:19:50 +09:00
|
|
|
|
Children = new Drawable[]
|
|
|
|
|
{
|
|
|
|
|
new SettingsCheckbox
|
|
|
|
|
{
|
|
|
|
|
LabelText = "Snaking in sliders",
|
2020-10-06 17:18:41 +09:00
|
|
|
|
Current = config.GetBindable<bool>(OsuRulesetSetting.SnakingInSliders)
|
2018-04-13 18:19:50 +09:00
|
|
|
|
},
|
|
|
|
|
new SettingsCheckbox
|
|
|
|
|
{
|
|
|
|
|
LabelText = "Snaking out sliders",
|
2020-10-06 17:18:41 +09:00
|
|
|
|
Current = config.GetBindable<bool>(OsuRulesetSetting.SnakingOutSliders)
|
2018-04-13 18:19:50 +09:00
|
|
|
|
},
|
2019-01-23 14:27:34 +01:00
|
|
|
|
new SettingsCheckbox
|
|
|
|
|
{
|
2019-04-04 17:18:53 +09:00
|
|
|
|
LabelText = "Cursor trail",
|
2020-10-06 17:18:41 +09:00
|
|
|
|
Current = config.GetBindable<bool>(OsuRulesetSetting.ShowCursorTrail)
|
2019-01-23 14:27:34 +01:00
|
|
|
|
},
|
2020-10-20 13:59:03 +09:00
|
|
|
|
new SettingsEnumDropdown<PlayfieldBorderStyle>
|
2020-10-19 21:00:49 +02:00
|
|
|
|
{
|
2020-10-20 13:59:03 +09:00
|
|
|
|
LabelText = "Playfield border style",
|
|
|
|
|
Current = config.GetBindable<PlayfieldBorderStyle>(OsuRulesetSetting.PlayfieldBorderStyle),
|
2020-10-19 21:00:49 +02:00
|
|
|
|
},
|
2018-04-13 18:19:50 +09:00
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|