mirror of
https://github.com/ppy/osu.git
synced 2025-02-22 20:12:56 +08:00
Adjust transitions a tad
This commit is contained in:
parent
aa81c95f30
commit
f51be4c4fe
@ -58,8 +58,8 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
|
|
||||||
protected override void PopOut()
|
protected override void PopOut()
|
||||||
{
|
{
|
||||||
button.MoveToX(-TwoLayerButton.SIZE_EXTENDED.X / 2, 400);
|
button.MoveToX(-TwoLayerButton.SIZE_EXTENDED.X / 2, 400, Easing.OutQuint);
|
||||||
button.FadeOut(200);
|
button.FadeOut(400, Easing.OutQuint);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -165,7 +165,8 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
protected override bool OnHover(HoverEvent e)
|
protected override bool OnHover(HoverEvent e)
|
||||||
{
|
{
|
||||||
this.ResizeTo(SIZE_EXTENDED, transform_time, Easing.OutElastic);
|
this.ResizeTo(SIZE_EXTENDED, transform_time, Easing.OutElastic);
|
||||||
IconLayer.FadeColour(HoverColour, transform_time, Easing.OutElastic);
|
|
||||||
|
IconLayer.FadeColour(HoverColour, transform_time / 2f, Easing.OutQuint);
|
||||||
|
|
||||||
bouncingIcon.ScaleTo(1.1f, transform_time, Easing.OutElastic);
|
bouncingIcon.ScaleTo(1.1f, transform_time, Easing.OutElastic);
|
||||||
|
|
||||||
@ -174,16 +175,13 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
|
|
||||||
protected override void OnHoverLost(HoverLostEvent e)
|
protected override void OnHoverLost(HoverLostEvent e)
|
||||||
{
|
{
|
||||||
this.ResizeTo(SIZE_RETRACTED, transform_time, Easing.OutElastic);
|
this.ResizeTo(SIZE_RETRACTED, transform_time, Easing.Out);
|
||||||
IconLayer.FadeColour(TextLayer.Colour, transform_time, Easing.OutElastic);
|
IconLayer.FadeColour(TextLayer.Colour, transform_time, Easing.Out);
|
||||||
|
|
||||||
bouncingIcon.ScaleTo(1, transform_time, Easing.OutElastic);
|
bouncingIcon.ScaleTo(1, transform_time, Easing.Out);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override bool OnMouseDown(MouseDownEvent e)
|
protected override bool OnMouseDown(MouseDownEvent e) => true;
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected override bool OnClick(ClickEvent e)
|
protected override bool OnClick(ClickEvent e)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user