mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 08:20:00 +09:00
Apply more missed cases
This commit is contained in:
@ -260,6 +260,7 @@ namespace osu.Game.Screens.Menu
|
||||
box.ScaleTo(new Vector2(0, 1), 500, Easing.OutExpo);
|
||||
this.FadeOut(500);
|
||||
break;
|
||||
|
||||
case 1:
|
||||
box.ScaleTo(new Vector2(0, 1), 400, Easing.InSine);
|
||||
this.FadeOut(800);
|
||||
@ -267,11 +268,13 @@ namespace osu.Game.Screens.Menu
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
case ButtonState.Expanded:
|
||||
const int expand_duration = 500;
|
||||
box.ScaleTo(new Vector2(1, 1), expand_duration, Easing.OutExpo);
|
||||
this.FadeIn(expand_duration / 6f);
|
||||
break;
|
||||
|
||||
case ButtonState.Exploded:
|
||||
const int explode_duration = 200;
|
||||
box.ScaleTo(new Vector2(2, 1), explode_duration, Easing.OutExpo);
|
||||
@ -294,10 +297,12 @@ namespace osu.Game.Screens.Menu
|
||||
case ButtonSystemState.Initial:
|
||||
State = ButtonState.Contracted;
|
||||
break;
|
||||
|
||||
case ButtonSystemState.EnteringMode:
|
||||
ContractStyle = 1;
|
||||
State = ButtonState.Contracted;
|
||||
break;
|
||||
|
||||
default:
|
||||
if (value == VisibleState)
|
||||
State = ButtonState.Expanded;
|
||||
|
Reference in New Issue
Block a user