mirror of
https://github.com/ppy/osu.git
synced 2025-01-06 10:22:54 +08:00
Give SerialisedDrawableInfo sane defaults
This commit is contained in:
parent
6f84467190
commit
bac70da1a1
@ -34,15 +34,15 @@ namespace osu.Game.Skinning
|
|||||||
|
|
||||||
public float Rotation { get; set; }
|
public float Rotation { get; set; }
|
||||||
|
|
||||||
public Vector2 Scale { get; set; }
|
public Vector2 Scale { get; set; } = Vector2.One;
|
||||||
|
|
||||||
public float? Width { get; set; }
|
public float? Width { get; set; }
|
||||||
|
|
||||||
public float? Height { get; set; }
|
public float? Height { get; set; }
|
||||||
|
|
||||||
public Anchor Anchor { get; set; }
|
public Anchor Anchor { get; set; } = Anchor.TopLeft;
|
||||||
|
|
||||||
public Anchor Origin { get; set; }
|
public Anchor Origin { get; set; } = Anchor.TopLeft;
|
||||||
|
|
||||||
/// <inheritdoc cref="ISerialisableDrawable.UsesFixedAnchor"/>
|
/// <inheritdoc cref="ISerialisableDrawable.UsesFixedAnchor"/>
|
||||||
public bool UsesFixedAnchor { get; set; }
|
public bool UsesFixedAnchor { get; set; }
|
||||||
|
Loading…
Reference in New Issue
Block a user