1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-22 22:20:53 +08:00

Fix attempting to add key counter controller to hierarchy in multiple places

This commit is contained in:
Bartłomiej Dach
2023-06-26 19:02:49 +02:00
Unverified
parent cc45ec4fff
commit dbd76c1193
+3 -1
View File
@@ -111,12 +111,14 @@ namespace osu.Game.Screens.Play
RelativeSizeAxes = Axes.Both;
// intentionally not added to hierarchy here as it will be attached via `BindDrawableRuleset()`.
KeyCounter = new KeyCounterController();
Children = new[]
{
CreateFailingLayer(),
//Needs to be initialized before skinnable drawables.
tally = new JudgementTally(),
KeyCounter = new KeyCounterController(),
mainComponents = new HUDComponentsContainer { AlwaysPresent = true, },
rulesetComponents = drawableRuleset != null
? new HUDComponentsContainer(drawableRuleset.Ruleset.RulesetInfo) { AlwaysPresent = true, }