mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 20:32:55 +08:00
Ensure both sprites are centered
This commit is contained in:
parent
2f7c0b4934
commit
4944128631
@ -41,10 +41,21 @@ namespace osu.Game.Rulesets.Taiko.Skinning
|
||||
|
||||
AutoSizeAxes = Axes.Both;
|
||||
|
||||
AddInternal(sprite);
|
||||
AddInternal(sprite.With(s =>
|
||||
{
|
||||
s.Anchor = Anchor.Centre;
|
||||
s.Origin = Anchor.Centre;
|
||||
}));
|
||||
|
||||
if (strongSprite != null)
|
||||
AddInternal(strongSprite.With(s => s.Alpha = 0));
|
||||
{
|
||||
AddInternal(strongSprite.With(s =>
|
||||
{
|
||||
s.Alpha = 0;
|
||||
s.Anchor = Anchor.Centre;
|
||||
s.Origin = Anchor.Centre;
|
||||
}));
|
||||
}
|
||||
|
||||
if (judgedObject is DrawableHit h)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user