Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 26 additions & 3 deletions src/RustCui.cs
Original file line number Diff line number Diff line change
Expand Up @@ -403,19 +403,42 @@ public class CuiCountdownComponent : ICuiComponent
public string Type => "Countdown";

[JsonProperty("endTime")]
public int EndTime { get; set; }
public float EndTime { get; set; }

[JsonProperty("startTime")]
public int StartTime { get; set; }
public float StartTime { get; set; }

[JsonProperty("step")]
public int Step { get; set; }
public float Step { get; set; }

[JsonProperty("interval")]
public float Interval { get; set; }

[JsonConverter(typeof(StringEnumConverter))]
[JsonProperty("timerFormat")]
public TimerFormatEnum TimerFormat { get; set; }

[JsonProperty("numberFormat")]
public string NumberFormat { get; set; }

[JsonProperty("destroyIfDone")]
public bool DestroyIfDone { get; set; }

[JsonProperty("command")]
public string Command { get; set; }

[JsonProperty("fadeIn")]
public float FadeIn { get; set; }

public enum TimerFormatEnum
{
None,
SecondsHundreth,
MinutesSeconds,
MinutesSecondsHundreth,
HoursMinutes,
HoursMinutesSeconds
}
}

public class CuiNeedsCursorComponent : ICuiComponent
Expand Down