Facepunch / Rust.Community

Community Entity to fill Server Side modder requests
MIT License
46 stars 21 forks source link

Added new time formats and support for custom formatting in Countdown #63

Closed DezLife closed 1 month ago

DezLife commented 2 months ago

Added new time formats and support for custom formatting in Countdown

Kulltero commented 1 month ago

me not adding options for displaying Days definitely was a mistake and affects the ability to use the countdown for any timer longer than 24 hours. i think at the time i assumed that the hours on the options i did provide were gonna work more like TimeSpan.TotalHours instead of only displaying the actual hours between 0-24 left

that aside allowing to just specify the custom time string yourself should have been the implementation from the start as it would have avoided these issues and allowed people to localize their timers appropriately, adding it as an enum option to reuse the number field is a great way to add it without sacrifing short but important backwards compatability

hoping this can be added fairly soon to make the countdown component even more robust 👍

ElChupos commented 1 month ago

Thank you, this was merged to main in build 102740 and will roll out in the next update on the 5th of September.