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:
parent
f5fa41356e
commit
3eead5a6a3
@ -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();
|
||||||
|
@ -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();
|
||||||
|
@ -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);
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user