[2.0.8] rendering.draw_line returned LuaRenderObject lacks property 'dash_offset'

Riven8192
Manual Inserter
Manual Inserter
Posts: 4
Joined: Fri Mar 15, 2024 9:37 pm
Contact:

[2.0.8] rendering.draw_line returned LuaRenderObject lacks property 'dash_offset'

Post by Riven8192 »

Minor missing feature:


The property 'dash_offset' can be passed to the draw-line call:
https://lua-api.factorio.com/2.0.8/clas ... #draw_line

The property 'dash_offset' is missing in the resulting LuaRenderObject:
https://lua-api.factorio.com/2.0.8/clas ... bject.html


Manipulating the dash_offset is (presumably) cheaper than destroying the existing line and creating a new one in its place.
Bilka
Factorio Staff
Factorio Staff
Posts: 3649
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: [2.0.8] rendering.draw_line returned LuaRenderObject lacks property 'dash_offset'

Post by Bilka »

Okay, added LuaRenderObject::dash_offset read/write 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”