mirror of
https://github.com/ppy/osu.git
synced 2024-12-18 00:23:22 +08:00
37 lines
1.1 KiB
C#
37 lines
1.1 KiB
C#
// 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.
|
|
|
|
using osu.Framework.Allocation;
|
|
using osu.Framework.Graphics;
|
|
using osu.Framework.Localisation;
|
|
using osu.Game.Overlays.Settings;
|
|
using osu.Game.Rulesets.Taiko.Configuration;
|
|
|
|
namespace osu.Game.Rulesets.Taiko
|
|
{
|
|
public partial class TaikoSettingsSubsection : RulesetSettingsSubsection
|
|
{
|
|
protected override LocalisableString Header => "osu!taiko";
|
|
|
|
public TaikoSettingsSubsection(TaikoRuleset ruleset)
|
|
: base(ruleset)
|
|
{
|
|
}
|
|
|
|
[BackgroundDependencyLoader]
|
|
private void load()
|
|
{
|
|
var config = (TaikoRulesetConfigManager)Config;
|
|
|
|
Children = new Drawable[]
|
|
{
|
|
new SettingsEnumDropdown<TaikoTouchControlScheme>
|
|
{
|
|
LabelText = "Touch control scheme",
|
|
Current = config.GetBindable<TaikoTouchControlScheme>(TaikoRulesetSetting.TouchControlScheme)
|
|
}
|
|
};
|
|
}
|
|
}
|
|
}
|