fix: clone Enabled and Opacity, too

This commit is contained in:
Anna 2021-03-13 18:59:02 -05:00
parent d3a1693726
commit 553e29885f
1 changed files with 2 additions and 0 deletions

View File

@ -80,6 +80,7 @@ namespace HUD_Manager.Structs {
public Element Clone() { public Element Clone() {
return new() { return new() {
Enabled = this.Enabled,
Id = this.Id, Id = this.Id,
X = this.X, X = this.X,
Y = this.Y, Y = this.Y,
@ -90,6 +91,7 @@ namespace HUD_Manager.Structs {
MeasuredFrom = this.MeasuredFrom, MeasuredFrom = this.MeasuredFrom,
Visibility = this.Visibility, Visibility = this.Visibility,
Unknown6 = this.Unknown6, Unknown6 = this.Unknown6,
Opacity = this.Opacity,
Unknown8 = (byte[]) this.Unknown8.Clone(), Unknown8 = (byte[]) this.Unknown8.Clone(),
}; };
} }