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