Page 1 of 1

Expose LuaGuiElement.type = 'entity-preview'(?) to the API

Posted: Tue Nov 07, 2017 1:40 pm
by eradicator
What?
The animated real-time preview used in opened machine GUIs is not currently available to mods. Please expose it to the API.
Whaat?
This preview:
animated_preview.png
animated_preview.png (70.32 KiB) Viewed 861 times
This is different from the camera widget as it only renders the entity without any surface tiles or surrounding things cluttering the view. (And hopefully is also cheaper to render). It's also used in the hover-over tooltip for player.selected entities without the grey background. So supplying it without the background would be preferred. (I'm guessing the background in the machine GUI is just another widget anyway.)
Why?
To better mimic the look of base factorio interfaces.