mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 06:42:54 +08:00
Make toolbar inherit overlay container
This commit is contained in:
parent
570d36fde7
commit
da3fa9304a
@ -18,7 +18,7 @@ using osu.Game.Input.Bindings;
|
||||
|
||||
namespace osu.Game.Overlays.Toolbar
|
||||
{
|
||||
public class Toolbar : VisibilityContainer, IKeyBindingHandler<GlobalAction>
|
||||
public class Toolbar : OverlayContainer, IKeyBindingHandler<GlobalAction>
|
||||
{
|
||||
public const float HEIGHT = 40;
|
||||
public const float TOOLTIP_HEIGHT = 30;
|
||||
@ -41,8 +41,6 @@ namespace osu.Game.Overlays.Toolbar
|
||||
// Toolbar and its components need keyboard input even when hidden.
|
||||
public override bool PropagateNonPositionalInputSubTree => true;
|
||||
|
||||
protected override bool Handle(UIEvent e) => e is MouseEvent;
|
||||
|
||||
public Toolbar()
|
||||
{
|
||||
RelativeSizeAxes = Axes.X;
|
||||
|
Loading…
Reference in New Issue
Block a user