1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 12:57:36 +08:00

Flip anchors and origins

This commit is contained in:
smoogipoo 2020-03-31 15:59:52 +09:00
parent 9a37a328b6
commit b805ed6bf1

View File

@ -31,7 +31,7 @@ namespace osu.Game.Rulesets.Mania.Skinning
{
InternalChild = directionContainer = new Container
{
Anchor = Anchor.TopCentre,
Origin = Anchor.BottomCentre,
RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y,
Child = noteSprite = new Sprite { Texture = GetTexture(skin) }
@ -56,12 +56,12 @@ namespace osu.Game.Rulesets.Mania.Skinning
{
if (direction.NewValue == ScrollingDirection.Up)
{
directionContainer.Origin = Anchor.BottomCentre;
directionContainer.Anchor = Anchor.TopCentre;
directionContainer.Scale = new Vector2(1, -1);
}
else
{
directionContainer.Origin = Anchor.TopCentre;
directionContainer.Anchor = Anchor.BottomCentre;
directionContainer.Scale = Vector2.One;
}
}