1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 01:02:55 +08:00

Refactor ModDisplay flag usage

This commit is contained in:
smoogipoo 2021-02-02 13:41:01 +09:00
parent 87f9e46b16
commit 1d3dff8c75

View File

@ -113,14 +113,10 @@ namespace osu.Game.Screens.Play.HUD
else
unrankedText.Hide();
if (ExpandOnAppear)
{
expand();
using (iconsContainer.BeginDelayedSequence(1200))
contract();
}
else
iconsContainer.TransformSpacingTo(new Vector2(-25, 0));
expand();
using (iconsContainer.BeginDelayedSequence(ExpandOnAppear ? 1200 : 0))
contract();
}
private void expand()