1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-18 11:32:56 +08:00

Change close action from PopOut to Hide and switched to TriangleButton.Click()

This commit is contained in:
Welsar55 2019-06-05 13:01:21 -05:00
parent 194bb80354
commit c04c6693c2

View File

@ -198,9 +198,9 @@ namespace osu.Game.Overlays.Mods
protected override bool OnKeyDown(KeyDownEvent e) protected override bool OnKeyDown(KeyDownEvent e)
{ {
if (e.Key == Key.Number1) if (e.Key == Key.Number1)
DeselectAll(); DeselectAllButton.Click();
else if (e.Key == Key.Number2) else if (e.Key == Key.Number2)
PopOut(); CloseButton.Click();
return base.OnKeyDown(e); return base.OnKeyDown(e);
} }
@ -381,7 +381,7 @@ namespace osu.Game.Overlays.Mods
{ {
Width = 180, Width = 180,
Text = "2. Close", Text = "2. Close",
Action = PopOut, Action = Hide,
Margin = new MarginPadding Margin = new MarginPadding
{ {
Right = 20 Right = 20