2019-01-24 16:43:03 +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-06-11 13:36:19 +08:00
|
|
|
|
|
|
|
|
|
using osu.Framework.Allocation;
|
|
|
|
|
using osu.Framework.Graphics;
|
2021-06-26 01:10:04 +08:00
|
|
|
|
using osu.Framework.Localisation;
|
2019-01-25 00:39:23 +08:00
|
|
|
|
using osu.Game.Graphics.UserInterface;
|
2018-06-11 13:36:19 +08:00
|
|
|
|
using osu.Game.Overlays.Settings;
|
|
|
|
|
using osu.Game.Rulesets.Mania.Configuration;
|
|
|
|
|
using osu.Game.Rulesets.Mania.UI;
|
|
|
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Mania
|
|
|
|
|
{
|
|
|
|
|
public class ManiaSettingsSubsection : RulesetSettingsSubsection
|
|
|
|
|
{
|
2021-07-15 11:50:34 +08:00
|
|
|
|
protected override LocalisableString Header => "osu!mania";
|
2018-06-11 13:36:19 +08:00
|
|
|
|
|
|
|
|
|
public ManiaSettingsSubsection(ManiaRuleset ruleset)
|
|
|
|
|
: base(ruleset)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[BackgroundDependencyLoader]
|
2018-07-11 16:25:57 +08:00
|
|
|
|
private void load()
|
2018-06-11 13:36:19 +08:00
|
|
|
|
{
|
2019-01-25 18:14:37 +08:00
|
|
|
|
var config = (ManiaRulesetConfigManager)Config;
|
2019-01-25 00:39:23 +08:00
|
|
|
|
|
2018-06-11 13:36:19 +08:00
|
|
|
|
Children = new Drawable[]
|
|
|
|
|
{
|
|
|
|
|
new SettingsEnumDropdown<ManiaScrollingDirection>
|
|
|
|
|
{
|
|
|
|
|
LabelText = "Scrolling direction",
|
2020-10-06 16:18:41 +08:00
|
|
|
|
Current = config.GetBindable<ManiaScrollingDirection>(ManiaRulesetSetting.ScrollDirection)
|
2019-01-25 00:39:23 +08:00
|
|
|
|
},
|
|
|
|
|
new SettingsSlider<double, TimeSlider>
|
|
|
|
|
{
|
|
|
|
|
LabelText = "Scroll speed",
|
2020-10-06 16:18:41 +08:00
|
|
|
|
Current = config.GetBindable<double>(ManiaRulesetSetting.ScrollTime),
|
2020-09-15 14:24:01 +08:00
|
|
|
|
KeyboardStep = 5
|
2019-01-25 00:39:23 +08:00
|
|
|
|
},
|
2021-04-24 20:39:22 +08:00
|
|
|
|
new SettingsCheckbox
|
2021-04-24 16:23:52 +08:00
|
|
|
|
{
|
2021-04-26 19:05:12 +08:00
|
|
|
|
LabelText = "Timing-based note colouring",
|
|
|
|
|
Current = config.GetBindable<bool>(ManiaRulesetSetting.TimingBasedNoteColouring),
|
2021-04-24 16:23:52 +08:00
|
|
|
|
}
|
2018-06-11 13:36:19 +08:00
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|