mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Eliminate Overlay.KeyBinding namespace and move everything to Settings.Section.Input
This commit is contained in:
@ -0,0 +1,24 @@
|
||||
// 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.Localisation;
|
||||
using osu.Game.Rulesets;
|
||||
|
||||
namespace osu.Game.Overlays.Settings.Sections.Input
|
||||
{
|
||||
public class VariantBindingsSubsection : KeyBindingsSubsection
|
||||
{
|
||||
protected override LocalisableString Header { get; }
|
||||
|
||||
public VariantBindingsSubsection(RulesetInfo ruleset, int variant)
|
||||
: base(variant)
|
||||
{
|
||||
Ruleset = ruleset;
|
||||
|
||||
var rulesetInstance = ruleset.CreateInstance();
|
||||
|
||||
Header = rulesetInstance.GetVariantName(variant);
|
||||
Defaults = rulesetInstance.GetDefaultKeyBindings(variant);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user