Page 1 of 1

Recipe and signal selector

Posted: Sat Jan 28, 2017 4:16 pm
by thelordodin
There are some great and big mods which have interface to select items:
EfficienSee
Helmod
and maybe others.

These mods have buttons which allows you to select an item.

Can you expose this button and corresponding dialog to be used in other mods?

Re: Recipe and signal selector

Posted: Thu Feb 02, 2017 1:08 am
by aubergine18
They are just normal sprite buttons - when clicked, they simply put an item stack in to the player's cursor (or take what's in the cursor and put it in the sprite button).

http://lua-api.factorio.com/latest/LuaGuiElement.html

http://lua-api.factorio.com/latest/events.html

http://lua-api.factorio.com/latest/LuaPlayer.html