2017-08-15 23:08:59 +08:00
|
|
|
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
|
|
|
|
using osu.Framework.Input.Bindings;
|
|
|
|
using osu.Game.Graphics;
|
2017-08-23 11:49:30 +08:00
|
|
|
using osu.Game.Overlays.Settings;
|
2017-08-15 23:08:59 +08:00
|
|
|
|
2017-08-16 16:19:27 +08:00
|
|
|
namespace osu.Game.Overlays.KeyBinding
|
2017-08-15 23:08:59 +08:00
|
|
|
{
|
2017-08-23 11:49:30 +08:00
|
|
|
public class GlobalKeyBindingsSection : SettingsSection
|
2017-08-15 23:08:59 +08:00
|
|
|
{
|
2017-08-23 11:49:30 +08:00
|
|
|
public override FontAwesome Icon => FontAwesome.fa_osu_hot;
|
|
|
|
public override string Header => "Global";
|
2017-08-15 23:08:59 +08:00
|
|
|
|
2017-08-23 11:49:30 +08:00
|
|
|
public GlobalKeyBindingsSection(KeyBindingInputManager manager)
|
|
|
|
{
|
|
|
|
Add(new DefaultBindingsSubsection(manager));
|
|
|
|
}
|
2017-08-15 23:08:59 +08:00
|
|
|
|
2017-08-23 11:49:30 +08:00
|
|
|
private class DefaultBindingsSubsection : KeyBindingsSubsection
|
2017-08-15 23:08:59 +08:00
|
|
|
{
|
2017-08-23 11:49:30 +08:00
|
|
|
protected override string Header => string.Empty;
|
2017-08-15 23:08:59 +08:00
|
|
|
|
2017-08-23 11:49:30 +08:00
|
|
|
public DefaultBindingsSubsection(KeyBindingInputManager manager)
|
|
|
|
: base(0)
|
|
|
|
{
|
|
|
|
Defaults = manager.DefaultKeyBindings;
|
|
|
|
}
|
2017-08-15 23:08:59 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|