Page 1 of 1

LuaRendering .draw_xyz { target = "construction preview of player 1" }

Posted: Sat May 04, 2019 3:18 pm
by eradicator
What?

The ability to specify that a custom render should be at the position of a players current construction preview, and only visible to that one player. (This is different from the precise cursor position, as buildings snap to the tile grid.)

Why?

To allow custom construction overlays. I.e. a turrent will show it's range while building, but if i have i.e. a "lumberjack" (scripted assembling-machine) that only works near trees, then i have no way of showing the buildings effective range before it is placed. With the new LuaRendering system it would be trivial for a mod to manage such an overlay via on_player_cursor_stack_changed.

Re: LuaRendering .draw_xyz { target = "construction preview of player 1" }

Posted: Mon May 18, 2020 11:04 am
by Bilka