mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 23:24:04 +09:00
Fix centering of labels using Height
instead of location to better handle rotations
This commit is contained in:
@ -294,20 +294,20 @@ namespace osu.Game.Screens.Play.HUD.HitErrorMeters
|
|||||||
case LabelStyles.Text:
|
case LabelStyles.Text:
|
||||||
labelEarly = new OsuSpriteText
|
labelEarly = new OsuSpriteText
|
||||||
{
|
{
|
||||||
X = -1,
|
|
||||||
Y = -10,
|
Y = -10,
|
||||||
Text = "Early",
|
Text = "Early",
|
||||||
Font = OsuFont.Default.With(size: 10),
|
Font = OsuFont.Default.With(size: 10),
|
||||||
|
Height = 12,
|
||||||
Anchor = Anchor.TopCentre,
|
Anchor = Anchor.TopCentre,
|
||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
};
|
};
|
||||||
|
|
||||||
labelLate = new OsuSpriteText
|
labelLate = new OsuSpriteText
|
||||||
{
|
{
|
||||||
X = -1,
|
|
||||||
Y = 10,
|
Y = 10,
|
||||||
Text = "Late",
|
Text = "Late",
|
||||||
Font = OsuFont.Default.With(size: 10),
|
Font = OsuFont.Default.With(size: 10),
|
||||||
|
Height = 12,
|
||||||
Anchor = Anchor.BottomCentre,
|
Anchor = Anchor.BottomCentre,
|
||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user