LuaRendering:bring_to_front()
LuaRendering:bring_to_front()
So, I request a way to manipulate draw order. Because draw order is such a complicated problem, I boiled it down to one thing: rendering.bring_to_front(id). When this function is called, the object is brought to the front of the line, so it is drawn over everything else as if it was just created.
When the tapeline changes size, I could call this function on the green lines, then the border, so the draw order works out like its supposed to.
Thanks!
Don't forget, you're here forever.
Re: LuaRendering:bring_to_front()
Okay, added for the next version. Keep in mind that objects with a limited lifetime are always drawn on top of objects with an unlimited lifetime.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Re: LuaRendering:bring_to_front()
\o/ Thank you, much appreciated!
Don't forget, you're here forever.