1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 17:52:56 +08:00

Fix completely incorrect default positioning logic

This commit is contained in:
Dean Herbert 2020-10-15 17:29:40 +09:00
parent d5f2aab52e
commit 9f51327e4b

View File

@ -23,11 +23,6 @@ namespace osu.Game.Screens.Play.HUD
public DefaultComboCounter()
{
Current.Value = DisplayedCount = 0;
Anchor = Anchor.TopCentre;
Origin = Anchor.TopLeft;
Position = offset;
}
[BackgroundDependencyLoader]
@ -40,7 +35,7 @@ namespace osu.Game.Screens.Play.HUD
if (hud != null)
{
// for now align with the score counter. eventually this will be user customisable.
Position += ToLocalSpace(hud.ScoreCounter.ScreenSpaceDrawQuad.TopRight) + offset;
Position = Parent.ToLocalSpace(hud.ScoreCounter.ScreenSpaceDrawQuad.TopRight) + offset;
}
}