A way to get entity status diode color

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Osmo
Long Handed Inserter
Long Handed Inserter
Posts: 95
Joined: Wed Oct 23, 2024 12:08 pm
Contact:

A way to get entity status diode color

Post by Osmo »

There is a way to get the status of an entity, however it returns a defines enum with around 70 values, and its the job of the mod to match it to the corresponding diode color. This is unnecessary work that must be done if the status needs to be displayed anywhere in the mod, especially so given the corresponding colors are not documented, and what i've seen people do is match only the statuses they think the entity can have, which is error prone. I'm asking for a way to match the status to its diode color
curiosity
Filter Inserter
Filter Inserter
Posts: 668
Joined: Wed Sep 11, 2019 4:13 pm
Contact:

Re: A way to get entity status diode color

Post by curiosity »

Post Reply

Return to “Modding interface requests”