mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Also serialise Origin
out
This commit is contained in:
@ -55,6 +55,7 @@ namespace osu.Game.Extensions
|
|||||||
component.Rotation = info.Rotation;
|
component.Rotation = info.Rotation;
|
||||||
component.Scale = info.Scale;
|
component.Scale = info.Scale;
|
||||||
component.Anchor = info.Anchor;
|
component.Anchor = info.Anchor;
|
||||||
|
component.Origin = info.Origin;
|
||||||
|
|
||||||
if (component is Container container)
|
if (component is Container container)
|
||||||
{
|
{
|
||||||
|
@ -29,6 +29,8 @@ namespace osu.Game.Screens.Play.HUD
|
|||||||
|
|
||||||
public Anchor Anchor { get; set; }
|
public Anchor Anchor { get; set; }
|
||||||
|
|
||||||
|
public Anchor Origin { get; set; }
|
||||||
|
|
||||||
public List<SkinnableInfo> Children { get; } = new List<SkinnableInfo>();
|
public List<SkinnableInfo> Children { get; } = new List<SkinnableInfo>();
|
||||||
|
|
||||||
public SkinnableInfo()
|
public SkinnableInfo()
|
||||||
@ -43,6 +45,7 @@ namespace osu.Game.Screens.Play.HUD
|
|||||||
Rotation = component.Rotation;
|
Rotation = component.Rotation;
|
||||||
Scale = component.Scale;
|
Scale = component.Scale;
|
||||||
Anchor = component.Anchor;
|
Anchor = component.Anchor;
|
||||||
|
Origin = component.Origin;
|
||||||
|
|
||||||
if (component is Container container)
|
if (component is Container container)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user