1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-24 05:42:55 +08:00
osu-lazer/osu.Game.Rulesets.Osu/UI/OsuSettingsSubsection.cs

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

60 lines
2.1 KiB
C#
Raw Normal View History

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