Make item_draw_specification availible to read at runtime

User avatar
Osmo
Fast Inserter
Fast Inserter
Posts: 156
Joined: Wed Oct 23, 2024 12:08 pm
Contact:

Make item_draw_specification availible to read at runtime

Post by Osmo »

Add https://lua-api.factorio.com/latest/pro ... cification to the runtime LuaEntityPrototype. Useful for mods that want to draw their own icons over entites such as https://mods.factorio.com/mod/alt-alt-mode.
LeonSkills
Inserter
Inserter
Posts: 27
Joined: Mon Feb 11, 2019 12:37 pm
Contact:

Re: Make item_draw_specification availible to read at runtime

Post by LeonSkills »

As the author of that mod, support.

Same for EntityPrototype.icons_positioning.

For now I'm gathering the info in a lua file to be read at runtime, but preferably I'd just use LuaEntity.prototype.item_draw_specification so it also works for all modded entities.
Bilka
Factorio Staff
Factorio Staff
Posts: 3647
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: Make item_draw_specification availible to read at runtime

Post by Bilka »

Okay, added LuaEntityPrototype::icons_positioning and icon_draw_specification for 2.0.66.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Post Reply

Return to “Implemented mod requests”