mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Framework updates.
This commit is contained in:
@ -181,6 +181,8 @@ namespace osu.Game.GameModes.Menu
|
||||
|
||||
MenuState state;
|
||||
|
||||
public override bool HandleInput => state != MenuState.Exit;
|
||||
|
||||
public MenuState State
|
||||
{
|
||||
get
|
||||
@ -239,8 +241,6 @@ namespace osu.Game.GameModes.Menu
|
||||
b.State = Button.ButtonState.Expanded;
|
||||
break;
|
||||
case MenuState.Exit:
|
||||
HandleInput = false;
|
||||
|
||||
buttonArea.FadeOut(200);
|
||||
|
||||
foreach (Button b in buttonsTopLevel)
|
||||
@ -587,9 +587,10 @@ namespace osu.Game.GameModes.Menu
|
||||
//box.FlashColour(ColourHelper.Lighten2(colour, 0.7f), 200);
|
||||
}
|
||||
|
||||
public override bool HandleInput => state != ButtonState.Exploded && box.Scale.X >= 0.8f;
|
||||
|
||||
protected override void Update()
|
||||
{
|
||||
HandleInput = state != ButtonState.Exploded && box.Scale.X >= 0.8f;
|
||||
iconText.Alpha = MathHelper.Clamp((box.Scale.X - 0.5f) / 0.3f, 0, 1);
|
||||
base.Update();
|
||||
}
|
||||
|
Reference in New Issue
Block a user