Update combo counter to read from default score display's position correctly

This commit is contained in:
Dean Herbert
2020-10-15 16:55:47 +09:00
parent 950c47287c
commit b210147c2e
2 changed files with 3 additions and 3 deletions

View File

@ -37,10 +37,10 @@ namespace osu.Game.Screens.Play.HUD
{
base.Update();
if (hud != null)
if (hud?.ScoreCounter.Drawable is DefaultScoreCounter score)
{
// for now align with the score counter. eventually this will be user customisable.
Position += ToLocalSpace(hud.ScoreCounter.ScreenSpaceDrawQuad.TopRight) + offset;
Position += ToLocalSpace(score.ScreenSpaceDrawQuad.TopRight) + offset;
}
}