Page 1 of 1

How to make an entity with a custom GUI?

Posted: Wed May 24, 2017 5:01 am
by waltermundt
Is it possible to make a custom entity GUI? As in, the panel that appears when you click things like containers, assemblers, etc, but with lua-driven contents?

Related: how about custom entity configs? E.g. I want to make a pump-type entity that has a customizable throughput limit. I've actually got this working on the fluid level, but I'm not sure about the best way to expose the setting to the player.

Re: How to make an entity with a custom GUI?

Posted: Wed May 24, 2017 2:14 pm
by bobingabout
Unfortunately not, the GUIs are hardwired into the base game.

what you can do though is create a secondary GUI that opens on the left side of the screen. In my case you open it by pointing to the entity and pressing SHIFT + E. Other people have written an on_tick event that opens it when it detects you open the main GUI.