filtering out asterisk signals from a choose-elem-button

Place to get help with not working mods / modding interface.
Post Reply
mami
Burner Inserter
Burner Inserter
Posts: 18
Joined: Fri Oct 21, 2022 12:27 am
Contact:

filtering out asterisk signals from a choose-elem-button

Post by mami »

I would like to make a gui that lets you choose a signal type like in a combinator. I'm using a choose-elem-button https://lua-api.factorio.com/latest/Lua ... lem-button set to elem_type="signal". However this has the problem that the wildcard asterisk signals appear in the menu, the "everything", "anything" and "each" signal types. I do not want to support these and would rather they do not appear in the choose-elem-button UI. I looked into using elem_filters https://lua-api.factorio.com/latest/Con ... typeFilter but the page explicitly states it does not support elem_type="signal".
Is there any way to not have those signals appear or be selectable?

Post Reply

Return to “Modding help”