mirror of https://github.com/ppy/osu
Fix centering of labels using `Height` instead of location to better handle rotations
This commit is contained in:
parent
bd488d139d
commit
ed90dc6d6b
|
@ -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,
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue