mirror of
https://github.com/ppy/osu.git
synced 2024-12-16 05:42:54 +08:00
Fix multiselection operation not flushing on close
This commit is contained in:
parent
746a4a7403
commit
fe59f4ae58
@ -364,6 +364,15 @@ namespace osu.Game.Overlays.Mods
|
|||||||
pendingSelectionOperations.Enqueue(() => button.Active.Value = false);
|
pendingSelectionOperations.Enqueue(() => button.Active.Value = false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Play out all remaining animations immediately to leave mods in a good (final) state.
|
||||||
|
/// </summary>
|
||||||
|
public void FlushAnimation()
|
||||||
|
{
|
||||||
|
while (pendingSelectionOperations.TryDequeue(out var dequeuedAction))
|
||||||
|
dequeuedAction();
|
||||||
|
}
|
||||||
|
|
||||||
private class ToggleAllCheckbox : OsuCheckbox
|
private class ToggleAllCheckbox : OsuCheckbox
|
||||||
{
|
{
|
||||||
private Color4 accentColour;
|
private Color4 accentColour;
|
||||||
|
@ -313,8 +313,10 @@ namespace osu.Game.Overlays.Mods
|
|||||||
{
|
{
|
||||||
const float distance = 700;
|
const float distance = 700;
|
||||||
|
|
||||||
columnFlow[i].Column
|
var column = columnFlow[i].Column;
|
||||||
.TopLevelContent
|
|
||||||
|
column.FlushAnimation();
|
||||||
|
column.TopLevelContent
|
||||||
.MoveToY(i % 2 == 0 ? -distance : distance, fade_out_duration, Easing.OutQuint)
|
.MoveToY(i % 2 == 0 ? -distance : distance, fade_out_duration, Easing.OutQuint)
|
||||||
.FadeOut(fade_out_duration, Easing.OutQuint);
|
.FadeOut(fade_out_duration, Easing.OutQuint);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user