mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 15:52:54 +08:00
Update mod columns even if they're not present/offscreen
Important to make "select/deselect all" operations work on all columns simultaneously, even if they're offscreen. Unfortunately by the nature of how the existing selection animation works, it is hard-tied to the update loop, so we need to compensate.
This commit is contained in:
parent
9514a5cef7
commit
18e4c3ed0f
@ -399,7 +399,7 @@ namespace osu.Game.Overlays.Mods
|
|||||||
|
|
||||||
private readonly Queue<Action> pendingSelectionOperations = new Queue<Action>();
|
private readonly Queue<Action> pendingSelectionOperations = new Queue<Action>();
|
||||||
|
|
||||||
protected bool SelectionAnimationRunning => pendingSelectionOperations.Count > 0;
|
internal bool SelectionAnimationRunning => pendingSelectionOperations.Count > 0;
|
||||||
|
|
||||||
protected override void Update()
|
protected override void Update()
|
||||||
{
|
{
|
||||||
|
@ -454,6 +454,8 @@ namespace osu.Game.Overlays.Mods
|
|||||||
FinishTransforms();
|
FinishTransforms();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected override bool RequiresChildrenUpdate => base.RequiresChildrenUpdate || Column.SelectionAnimationRunning;
|
||||||
|
|
||||||
private void updateDim()
|
private void updateDim()
|
||||||
{
|
{
|
||||||
Colour4 targetColour;
|
Colour4 targetColour;
|
||||||
|
Loading…
Reference in New Issue
Block a user