Adjust default location slightly, fix alignment of "pp" subtext

This commit is contained in:
Dean Herbert 2021-10-05 15:23:34 +09:00
parent b6af93d434
commit 81a13566bc
2 changed files with 3 additions and 2 deletions

View File

@ -133,7 +133,8 @@ namespace osu.Game.Screens.Play.HUD
Anchor = Anchor.BottomLeft, Anchor = Anchor.BottomLeft,
Origin = Anchor.BottomLeft, Origin = Anchor.BottomLeft,
Text = @"pp", Text = @"pp",
Font = OsuFont.Numeric.With(size: 8) Font = OsuFont.Numeric.With(size: 8),
Padding = new MarginPadding { Bottom = 1.5f }, // align baseline better
} }
} }
}; };

View File

@ -84,7 +84,7 @@ namespace osu.Game.Skinning
if (ppCounter != null) if (ppCounter != null)
{ {
ppCounter.Y = score.Position.Y + score.ScreenSpaceDrawQuad.Size.Y; ppCounter.Y = score.Position.Y + ppCounter.ScreenSpaceDeltaToParentSpace(score.ScreenSpaceDrawQuad.Size).Y - 4;
ppCounter.Origin = Anchor.TopCentre; ppCounter.Origin = Anchor.TopCentre;
ppCounter.Anchor = Anchor.TopCentre; ppCounter.Anchor = Anchor.TopCentre;
} }