How to make Filter Splitter

Place to get help with not working mods / modding interface.
23679
Manual Inserter
Manual Inserter
Posts: 1
Joined: Sat Apr 29, 2017 2:43 pm
Contact:

How to make Filter Splitter

Post by 23679 »

Hi!
I am trying to make a filter separator, I have already made a separate entity, everything is prepared, it remains only to insert the interface from the filter manipulator. And here's how to do it, I don't understand.
User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3749
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: How to make Filter Splitter

Post by DaveMcW »

1. Listen for defines.events.on_gui_opened
2. Build a new gui and include a LuaGuiElement with type="choose-elem-button".
3. Set player.opened to your new gui.
Post Reply

Return to “Modding help”