mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 18:53:21 +08: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();
|
updateTeams();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void UpdateAfterAutoSize()
|
|
||||||
{
|
|
||||||
// required because the lines rely on flow being completed by other elements.
|
|
||||||
base.UpdateAfterAutoSize();
|
|
||||||
updateProgression();
|
|
||||||
}
|
|
||||||
|
|
||||||
private void updateTeams()
|
private void updateTeams()
|
||||||
{
|
{
|
||||||
if (LoadState != LoadState.Loaded)
|
if (LoadState != LoadState.Loaded)
|
||||||
@ -167,7 +160,7 @@ namespace osu.Game.Tournament.Screens.Ladder.Components
|
|||||||
new DrawableMatchTeam(Pairing.Team2, Pairing)
|
new DrawableMatchTeam(Pairing.Team2, Pairing)
|
||||||
};
|
};
|
||||||
|
|
||||||
updateProgression();
|
SchedulerAfterChildren.Add(() => Scheduler.Add(updateProgression));
|
||||||
updateWinConditions();
|
updateWinConditions();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user