1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 09:22:54 +08:00

Fix button input handling.

This commit is contained in:
Dean Herbert 2017-03-03 16:54:43 +09:00
parent b0ee728528
commit 47845a7fbd
No known key found for this signature in database
GPG Key ID: 46D71BF4958ABB49

View File

@ -21,6 +21,7 @@ namespace osu.Game.Screens.Select.Options
private Box background, flash; private Box background, flash;
private TextAwesome iconText; private TextAwesome iconText;
private OsuSpriteText firstLine, secondLine; private OsuSpriteText firstLine, secondLine;
private Container box;
public Color4 ButtonColour public Color4 ButtonColour
{ {
@ -67,6 +68,8 @@ namespace osu.Game.Screens.Select.Options
return base.OnClick(state); return base.OnClick(state);
} }
public override bool Contains(Vector2 screenSpacePos) => box.Contains(screenSpacePos);
public BeatmapOptionsButton() public BeatmapOptionsButton()
{ {
Width = width; Width = width;
@ -74,7 +77,7 @@ namespace osu.Game.Screens.Select.Options
Children = new Drawable[] Children = new Drawable[]
{ {
new Container box = new Container
{ {
Anchor = Anchor.Centre, Anchor = Anchor.Centre,
Origin = Anchor.Centre, Origin = Anchor.Centre,