mirror of
https://github.com/ppy/osu
synced 2024-12-14 10:57:41 +00:00
Don't require every-frame update
This commit is contained in:
parent
e4ea802c7b
commit
6e6b6b285a
@ -144,13 +144,6 @@ namespace osu.Game.Tournament.Screens.Ladder.Components
|
||||
updateTeams();
|
||||
}
|
||||
|
||||
protected override void UpdateAfterAutoSize()
|
||||
{
|
||||
// required because the lines rely on flow being completed by other elements.
|
||||
base.UpdateAfterAutoSize();
|
||||
updateProgression();
|
||||
}
|
||||
|
||||
private void updateTeams()
|
||||
{
|
||||
if (LoadState != LoadState.Loaded)
|
||||
@ -167,7 +160,7 @@ namespace osu.Game.Tournament.Screens.Ladder.Components
|
||||
new DrawableMatchTeam(Pairing.Team2, Pairing)
|
||||
};
|
||||
|
||||
updateProgression();
|
||||
SchedulerAfterChildren.Add(() => Scheduler.Add(updateProgression));
|
||||
updateWinConditions();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user