New event on_entity_color_changed

Post Reply
Xorimuth
Filter Inserter
Filter Inserter
Posts: 639
Joined: Sat Mar 02, 2019 9:39 pm
Contact:

New event on_entity_color_changed

Post by Xorimuth »

I'm currently having to use `on_gui_closed` for this one, but it only takes effect when the overall GUI is closed, not immediately.

Why? I'm kind of trying to re-create the line on the ground from a spidertron to its destination, which is coloured the same colour as the spidertron. I can't detect the colour changing in order to change the colours of my LuaRendering lines.

Alternative name: on_entity_recolored
My mods
Content: Lunar Landings | Freight Forwarding | Spidertron Patrols | Spidertron Enhancements | Power Overload
QoL: Factory Search | Remote Configuration | Module Inserter Simplified | Wire Shortcuts X | Ghost Warnings

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

Re: New event on_entity_color_changed

Post by Bilka »

Hello, this was added at some point: https://lua-api.factorio.com/latest/eve ... or_changed
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”