Add read access to "alert_icon_shift" property of entity prototype

Post Reply
User avatar
Arcitos
Inserter
Inserter
Posts: 38
Joined: Sat Dec 03, 2016 1:50 pm
Contact:

Add read access to "alert_icon_shift" property of entity prototype

Post 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

Bilka
Factorio Staff
Factorio Staff
Posts: 3132
Joined: Sat Aug 13, 2016 9:20 am
Contact:

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

Post by Bilka »

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.

User avatar
Arcitos
Inserter
Inserter
Posts: 38
Joined: Sat Dec 03, 2016 1:50 pm
Contact:

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

Post by Arcitos »

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

Post Reply

Return to “Implemented mod requests”