Skip to content

Commit

Permalink
Make the BaseElement properties virtual
Browse files Browse the repository at this point in the history
Fixes #150
  • Loading branch information
justalemon committed Dec 18, 2023
1 parent c38f79c commit 62f6d7c
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions LemonUI/Elements/BaseElement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,9 @@ public abstract class BaseElement : I2Dimensional
/// <summary>
/// The Position of the drawable.
/// </summary>
public PointF Position
public virtual PointF Position
{
get
{
return literalPosition;
}
get => literalPosition;
set
{
literalPosition = value;
Expand All @@ -49,12 +46,9 @@ public PointF Position
/// <summary>
/// The Size of the drawable.
/// </summary>
public SizeF Size
public virtual SizeF Size
{
get
{
return literalSize;
}
get => literalSize;
set
{
literalSize = value;
Expand All @@ -64,11 +58,11 @@ public SizeF Size
/// <summary>
/// The Color of the drawable.
/// </summary>
public Color Color { get; set; } = Color.FromArgb(255, 255, 255, 255);
public virtual Color Color { get; set; } = Color.FromArgb(255, 255, 255, 255);
/// <summary>
/// The rotation of the drawable.
/// </summary>
public float Heading { get; set; } = 0;
public virtual float Heading { get; set; } = 0;

#endregion

Expand Down

0 comments on commit 62f6d7c

Please sign in to comment.