It came up in one of the discord servers today that Icon procs can be cumbersome under some circumstances, the exact use-case was reading the size of the sprite itself.
Would it be possible to have the icon dimensions added to appearance as two read-only vars? icon_width and icon_height perhaps?
ID:2667503
Mar 25 2021, 8:54 pm
|
|||||||
| |||||||
Mar 26 2021, 10:29 am
|
|
This could not be added to appearance, but it could be added as read-only vars to atoms and images. Under the hood it would still call the internal routines for checking width and height, though, and the only benefit you'd get would be that these are cached on a per-icon basis. The visual bounds system the server uses already has to read this info so it should be available.
|