1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 13:27:23 +08:00

Merge pull request #1315 from peppy/close-beatmap-overlay

Close BeatmapSetOverlay when clicking outside of it
This commit is contained in:
Dan Balasescu 2017-09-27 14:02:08 +09:00 committed by GitHub
commit 9be595a234
2 changed files with 4 additions and 0 deletions

View File

@ -23,6 +23,9 @@ namespace osu.Game.Overlays
private readonly Header header;
private readonly Info info;
// receive input outside our bounds so we can trigger a close event on ourselves.
public override bool ReceiveMouseInputAt(Vector2 screenSpacePos) => true;
public BeatmapSetOverlay()
{
FirstWaveColour = OsuColour.Gray(0.4f);

View File

@ -34,6 +34,7 @@ namespace osu.Game.Overlays
public const float CONTENT_X_MARGIN = 50;
// receive input outside our bounds so we can trigger a close event on ourselves.
public override bool ReceiveMouseInputAt(Vector2 screenSpacePos) => true;
protected override bool OnClick(InputState state)