Add support for x/y position and scale back in

This commit is contained in:
Dean Herbert
2021-04-28 15:28:32 +09:00
parent 1cb8fc9a24
commit 59339aa4fd
2 changed files with 29 additions and 10 deletions

View File

@ -98,7 +98,10 @@ namespace osu.Game.Skinning.Editor
adjustScaleFromAnchor(ref scale, anchor);
foreach (var c in SelectedBlueprints)
c.Item.SkinScale.Value += scale.X * 0.01f;
{
c.Item.SkinScaleX.Value += scale.X * 0.01f;
c.Item.SkinScaleY.Value += scale.Y * 0.01f;
}
return true;
}
@ -106,7 +109,11 @@ namespace osu.Game.Skinning.Editor
public override bool HandleMovement(MoveSelectionEvent<SkinnableHUDComponent> moveEvent)
{
foreach (var c in SelectedBlueprints)
c.Item.SkinPosition.Value += moveEvent.InstantDelta.X;
{
c.Item.SkinPositionX.Value += moveEvent.InstantDelta.X;
c.Item.SkinPositionY.Value += moveEvent.InstantDelta.Y;
}
return true;
}