Changed the countdown component to be useful for any counting/timer operation by supporting float parameters
fully ensuring backwards compatibility (as JSON auto converts ints to float)
added optional interval component to seperately control update rate from step amount
added optional destroyIfDone parameter (defaults to true to maintain old behaviour), allows keeping the timer text arround after its finished counting
added timerFormat enum that formats the number into a variety of timer presets
added numberFormat option to be passed into the ToString() function
Improving the Countdown Component
Changed the countdown component to be useful for any counting/timer operation by supporting float parameters fully ensuring backwards compatibility (as JSON auto converts ints to float) added optional
interval
component to seperately control update rate from step amount added optionaldestroyIfDone
parameter (defaults to true to maintain old behaviour), allows keeping the timer text arround after its finished counting addedtimerFormat
enum that formats the number into a variety of timer presets addednumberFormat
option to be passed into the ToString() functionhttps://github.com/Facepunch/Rust.Community/assets/33698270/f8bb378f-cfff-4865-971b-c92e0fa28691