mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
@ -70,6 +70,11 @@ namespace osu.Game.Screens.Play.HUD
|
||||
return base.OnMouseMove(e);
|
||||
}
|
||||
|
||||
public bool GameInactive
|
||||
{
|
||||
set => button.GameInactive = value;
|
||||
}
|
||||
|
||||
protected override void Update()
|
||||
{
|
||||
base.Update();
|
||||
@ -184,6 +189,25 @@ namespace osu.Game.Screens.Play.HUD
|
||||
base.OnHoverLost(e);
|
||||
}
|
||||
|
||||
private bool gameInactive;
|
||||
|
||||
public bool GameInactive
|
||||
{
|
||||
get => gameInactive;
|
||||
set
|
||||
{
|
||||
if (gameInactive == value)
|
||||
return;
|
||||
|
||||
gameInactive = value;
|
||||
|
||||
if (gameInactive)
|
||||
BeginConfirm();
|
||||
else
|
||||
AbortConfirm();
|
||||
}
|
||||
}
|
||||
|
||||
public bool OnPressed(GlobalAction action)
|
||||
{
|
||||
switch (action)
|
||||
|
Reference in New Issue
Block a user