mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 07:22:55 +08:00
Make osu! logo at song select correctly handle mouse focus.
This commit is contained in:
parent
a3cdbe234e
commit
04346dbb92
@ -195,11 +195,12 @@ namespace osu.Game.Screens.Menu
|
|||||||
|
|
||||||
protected override bool OnMouseUp(InputState state, MouseUpEventArgs args)
|
protected override bool OnMouseUp(InputState state, MouseUpEventArgs args)
|
||||||
{
|
{
|
||||||
|
|
||||||
logoBounceContainer.ScaleTo(1f, 500, EasingTypes.OutElastic);
|
logoBounceContainer.ScaleTo(1f, 500, EasingTypes.OutElastic);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected override bool OnDragStart(InputState state) => true;
|
||||||
|
|
||||||
protected override bool OnClick(InputState state)
|
protected override bool OnClick(InputState state)
|
||||||
{
|
{
|
||||||
if (!Interactive) return false;
|
if (!Interactive) return false;
|
||||||
|
@ -25,6 +25,8 @@ namespace osu.Game.Screens.Select
|
|||||||
|
|
||||||
private const float padding = 80;
|
private const float padding = 80;
|
||||||
|
|
||||||
|
public override bool Contains(Vector2 screenSpacePos) => true;
|
||||||
|
|
||||||
public Action OnBack;
|
public Action OnBack;
|
||||||
public Action OnStart;
|
public Action OnStart;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user