1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-13 15:43:21 +08:00

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;
}
}

View File

@ -53,7 +53,7 @@ namespace osu.Game.Screens.Play.HUD
Anchor = Anchor.BottomLeft;
Origin = Anchor.BottomLeft;
Margin = new MarginPadding { Bottom = 10, Left = 10 };
Margin = new MarginPadding(10);
Scale = new Vector2(1.2f);
}