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

User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5211
Joined: Tue Jul 12, 2016 9:03 am
Contact:

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

Post 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 859 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.
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Post Reply

Return to “Implemented mod requests”