mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 00:40:09 +09:00
Return to large logo after idle period
This commit is contained in:
@ -84,6 +84,9 @@ namespace osu.Game
|
|||||||
|
|
||||||
public float ToolbarOffset => Toolbar.Position.Y + Toolbar.DrawHeight;
|
public float ToolbarOffset => Toolbar.Position.Y + Toolbar.DrawHeight;
|
||||||
|
|
||||||
|
private InputManager inputManager;
|
||||||
|
public double IdleTime => inputManager?.IdleTime ?? 0;
|
||||||
|
|
||||||
public readonly Bindable<OverlayActivation> OverlayActivationMode = new Bindable<OverlayActivation>();
|
public readonly Bindable<OverlayActivation> OverlayActivationMode = new Bindable<OverlayActivation>();
|
||||||
|
|
||||||
private OsuScreen screenStack;
|
private OsuScreen screenStack;
|
||||||
@ -446,6 +449,7 @@ namespace osu.Game
|
|||||||
|
|
||||||
settings.StateChanged += _ => updateScreenOffset();
|
settings.StateChanged += _ => updateScreenOffset();
|
||||||
notifications.StateChanged += _ => updateScreenOffset();
|
notifications.StateChanged += _ => updateScreenOffset();
|
||||||
|
inputManager = GetContainingInputManager();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void forwardLoggedErrorsToNotifications()
|
private void forwardLoggedErrorsToNotifications()
|
||||||
|
@ -266,8 +266,8 @@ namespace osu.Game.Screens.Menu
|
|||||||
|
|
||||||
protected override void Update()
|
protected override void Update()
|
||||||
{
|
{
|
||||||
//if (OsuGame.IdleTime > 6000 && State != MenuState.Exit)
|
if (game.IdleTime > 6000 && State != ButtonSystemState.Exit)
|
||||||
// State = MenuState.Initial;
|
State = ButtonSystemState.Initial;
|
||||||
|
|
||||||
base.Update();
|
base.Update();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user