1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-30 06:52:53 +08:00

Rename FlushAnimation to FlushPendingSelections to better match purpose

This commit is contained in:
Dean Herbert 2022-05-04 19:40:08 +09:00
parent f5fa41356e
commit 3eead5a6a3
4 changed files with 6 additions and 6 deletions

View File

@ -435,9 +435,9 @@ namespace osu.Game.Overlays.Mods
} }
/// <summary> /// <summary>
/// Play out all remaining animations immediately to leave mods in a good (final) state. /// Run any delayed selections (due to animation) immediately to leave mods in a good (final) state.
/// </summary> /// </summary>
public void FlushAnimation() public void FlushPendingSelections()
{ {
while (pendingSelectionOperations.TryDequeue(out var dequeuedAction)) while (pendingSelectionOperations.TryDequeue(out var dequeuedAction))
dequeuedAction(); dequeuedAction();

View File

@ -250,9 +250,9 @@ namespace osu.Game.Overlays.Mods
protected virtual ModButton CreateModButton(Mod mod) => new ModButton(mod); protected virtual ModButton CreateModButton(Mod mod) => new ModButton(mod);
/// <summary> /// <summary>
/// Play out all remaining animations immediately to leave mods in a good (final) state. /// Run any delayed selections (due to animation) immediately to leave mods in a good (final) state.
/// </summary> /// </summary>
public void FlushAnimation() public void FlushPendingSelections()
{ {
while (pendingSelectionOperations.TryDequeue(out var dequeuedAction)) while (pendingSelectionOperations.TryDequeue(out var dequeuedAction))
dequeuedAction(); dequeuedAction();

View File

@ -369,7 +369,7 @@ namespace osu.Game.Overlays.Mods
foreach (var section in ModSectionsContainer) foreach (var section in ModSectionsContainer)
{ {
section.FlushAnimation(); section.FlushPendingSelections();
} }
FooterContainer.MoveToX(content_width, WaveContainer.DISAPPEAR_DURATION, Easing.InSine); FooterContainer.MoveToX(content_width, WaveContainer.DISAPPEAR_DURATION, Easing.InSine);

View File

@ -308,7 +308,7 @@ namespace osu.Game.Overlays.Mods
var column = columnFlow[i].Column; var column = columnFlow[i].Column;
column.FlushAnimation(); column.FlushPendingSelections();
column.TopLevelContent 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);