Hi, I propose the exposition of the "alert_icon_shift" property that's currently available only on prototype load.
I'm using the new lua.renderer functions to draw an warning icon on top of an entity. However, this function will place the icon at the center of the target entity and not at the position where all "normal" warning icons are drawn.
The picture above shows a custom item-request-proxy icon that's correctly placed and a custom icon drawn with lua.renderer that is wrongly positioned at the center of the entity. If you would make the "alert_icon_shift property" accessible by the modding api, you would help me very much.
Regards,
Arcitos
Add read access to "alert_icon_shift" property of entity prototype
Re: Add read access to "alert_icon_shift" property of entity prototype
Okay, added to the next version.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.