mirror of
https://github.com/ppy/osu
synced 2025-02-17 19:07:07 +00:00
Add chevron transition to CommentRepliesButton
This commit is contained in:
parent
7dc901df11
commit
73d164e0d0
@ -89,7 +89,7 @@ namespace osu.Game.Overlays.Comments.Buttons
|
|||||||
background.Colour = colourProvider.Background2;
|
background.Colour = colourProvider.Background2;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void SetIconDirection(bool upwards) => icon.ScaleTo(new Vector2(1, upwards ? -1 : 1));
|
protected void SetIconDirection(bool upwards) => icon.ScaleTo(upwards ? new Vector2(1f, -1f) : Vector2.One, 300, Easing.OutQuint);
|
||||||
|
|
||||||
public void ToggleTextVisibility(bool visible) => text.FadeTo(visible ? 1 : 0, 200, Easing.OutQuint);
|
public void ToggleTextVisibility(bool visible) => text.FadeTo(visible ? 1 : 0, 200, Easing.OutQuint);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user