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-12-06 22:03:31 +08:00
|
|
|
public GlobalKeyBindingsSection(KeyBindingContainer manager)
|
2017-08-23 11:49:30 +08:00
|
|
|
{
|
|
|
|
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-12-06 22:03:31 +08:00
|
|
|
public DefaultBindingsSubsection(KeyBindingContainer manager)
|
2017-08-23 15:10:31 +08:00
|
|
|
: base(null)
|
2017-08-23 11:49:30 +08:00
|
|
|
{
|
|
|
|
Defaults = manager.DefaultKeyBindings;
|
|
|
|
}
|
2017-08-15 23:08:59 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|