Skip to content

Commit 87e28ea

Browse files
authored
CUI fix for Normalized Positions not being serialised (OxideMod#567)
Value 0 was default and therefore omitted
1 parent 8684aab commit 87e28ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/RustCui.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -867,10 +867,10 @@ public class CuiScrollViewComponent : ICuiComponent, ICuiEnableable
867867
public CuiScrollbar VerticalScrollbar { get; set; }
868868

869869
[JsonProperty("horizontalNormalizedPosition")]
870-
public float HorizontalNormalizedPosition { get; set; }
870+
public float? HorizontalNormalizedPosition { get; set; }
871871

872872
[JsonProperty("verticalNormalizedPosition")]
873-
public float VerticalNormalizedPosition { get; set; }
873+
public float? VerticalNormalizedPosition { get; set; }
874874

875875
public bool? Enabled { get; set; }
876876
}

0 commit comments

Comments
 (0)