Fix centering of labels using `Height` instead of location to better handle rotations

This commit is contained in:
Dean Herbert 2022-03-18 20:17:04 +09:00
parent bd488d139d
commit ed90dc6d6b
1 changed files with 2 additions and 2 deletions

View File

@ -294,20 +294,20 @@ private void recreateLabels(LabelStyles style)
case LabelStyles.Text:
labelEarly = new OsuSpriteText
{
X = -1,
Y = -10,
Text = "Early",
Font = OsuFont.Default.With(size: 10),
Height = 12,
Anchor = Anchor.TopCentre,
Origin = Anchor.Centre,
};
labelLate = new OsuSpriteText
{
X = -1,
Y = 10,
Text = "Late",
Font = OsuFont.Default.With(size: 10),
Height = 12,
Anchor = Anchor.BottomCentre,
Origin = Anchor.Centre,
};