mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 08:49:59 +09:00
Add support for x/y position and scale back in
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user