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:
parent
b0ee728528
commit
47845a7fbd
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user