Page 1 of 1

Add read access to "alert_icon_shift" property of entity prototype

Posted: Sat Apr 06, 2019 6:34 pm
by Arcitos
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.
Image
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

Re: Add read access to "alert_icon_shift" property of entity prototype

Posted: Sat Apr 06, 2019 6:57 pm
by Bilka
Okay, added to the next version.

Re: Add read access to "alert_icon_shift" property of entity prototype

Posted: Sat Apr 06, 2019 6:59 pm
by Arcitos
Bilka wrote: Sat Apr 06, 2019 6:57 pm Okay, added to the next version.
Thank you :)