Recipe and signal selector

This is the place to request new mods or give ideas about what could be done.
thelordodin
Fast Inserter
Fast Inserter
Posts: 153
Joined: Fri Jan 06, 2017 1:54 am
Contact:

Recipe and signal selector

Post 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?
User avatar
aubergine18
Smart Inserter
Smart Inserter
Posts: 1264
Joined: Fri Jul 22, 2016 8:51 pm
Contact:

Re: Recipe and signal selector

Post 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
Better forum search for modders: Enclose your search term in quotes, eg. "font_color" or "custom-input" - it prevents the forum search from splitting on hypens and underscores, resulting in much more accurate results.
Post Reply

Return to “Ideas and Requests For Mods”