1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 13:32:54 +08:00

Fix centering being incorrect for some skins

This commit is contained in:
Dean Herbert 2019-07-30 23:07:41 +09:00
parent e6bd02d276
commit 6d279dba5c

View File

@ -281,7 +281,9 @@ namespace osu.Game.Skinning
hitCircleSprite = new Sprite
{
Texture = skin.GetTexture("hitcircle"),
Colour = drawableObject.AccentColour.Value
Colour = drawableObject.AccentColour.Value,
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
},
new SkinnableSpriteText("Play/osu/number-text", _ => new OsuSpriteText
{
@ -291,7 +293,12 @@ namespace osu.Game.Skinning
{
Text = (((IHasComboInformation)drawableObject.HitObject).IndexInCurrentCombo + 1).ToString()
},
new Sprite { Texture = skin.GetTexture("hitcircleoverlay") }
new Sprite
{
Texture = skin.GetTexture("hitcircleoverlay"),
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
}
};
state.BindTo(drawableObject.State);