kovarex wrote:This looks better, but it is still far from perfect.
Well, it's a fixed offset as i said. I haven't had the time to implement the proper dynamic positioning that considers string length, resolution and display scale. But...
To make it look reasonable, I implemented your request, so now there is LuaSpriteButton::number read/write property.
Apparently now i don't need to do that anymore and can just use built-in functionality
. Which will also hopefully benefit many other mods. How does that work internally btw, is it also a label or some secret magic?
kovarex wrote:When not 0, it will draw number the same way as vanilla does. It includes the proper positioning and usage of shortNumber format (5K, 1.5M etc.)
Does it format numbers with decimal places like vanilla does too?
Also "while your at it" (tm) (yes, now i'm beein greedy) there might be some situations where LuaSpriteButton::string read/write would have some applications....