1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-23 04:59:53 +08:00

Fix button input handling.

This commit is contained in:
Dean Herbert
2017-03-03 16:54:43 +09:00
Unverified
parent b0ee728528
commit 47845a7fbd
@@ -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,