Add editor key bindings to switch between screens

This commit is contained in:
Dean Herbert
2020-09-22 15:55:25 +09:00
parent e52a330dd8
commit 3062fe4411
3 changed files with 62 additions and 11 deletions

View File

@ -22,6 +22,7 @@ namespace osu.Game.Overlays.KeyBinding
Add(new DefaultBindingsSubsection(manager));
Add(new AudioControlKeyBindingsSubsection(manager));
Add(new InGameKeyBindingsSubsection(manager));
Add(new EditorKeyBindingsSubsection(manager));
}
private class DefaultBindingsSubsection : KeyBindingsSubsection
@ -56,5 +57,16 @@ namespace osu.Game.Overlays.KeyBinding
Defaults = manager.AudioControlKeyBindings;
}
}
private class EditorKeyBindingsSubsection : KeyBindingsSubsection
{
protected override string Header => "Editor";
public EditorKeyBindingsSubsection(GlobalActionContainer manager)
: base(null)
{
Defaults = manager.EditorKeyBindings;
}
}
}
}