mirror of
https://github.com/ppy/osu
synced 2025-01-04 21:30:08 +00:00
Fix ModDisplay
expanding on load with "always contracted/expanded" modes
This is especially visible when reloading `SongSelectFooterV2` while multiple mods are already selected. The mods will appear expanded then contract.
This commit is contained in:
parent
d7b658ec76
commit
49692e168e
@ -60,6 +60,9 @@ namespace osu.Game.Screens.Play.HUD
|
|||||||
Current.BindValueChanged(updateDisplay, true);
|
Current.BindValueChanged(updateDisplay, true);
|
||||||
|
|
||||||
iconsContainer.FadeInFromZero(fade_duration, Easing.OutQuint);
|
iconsContainer.FadeInFromZero(fade_duration, Easing.OutQuint);
|
||||||
|
|
||||||
|
if (ExpansionMode == ExpansionMode.AlwaysExpanded || ExpansionMode == ExpansionMode.AlwaysContracted)
|
||||||
|
FinishTransforms(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void updateDisplay(ValueChangedEvent<IReadOnlyList<Mod>> mods)
|
private void updateDisplay(ValueChangedEvent<IReadOnlyList<Mod>> mods)
|
||||||
|
Loading…
Reference in New Issue
Block a user