elem_filters for type=signal choose-elem-button

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
IsoSchiz
Burner Inserter
Burner Inserter
Posts: 7
Joined: Mon Jun 27, 2016 11:28 pm
Contact:

elem_filters for type=signal choose-elem-button

Post by IsoSchiz »

choose-elem-button is awesome. But it doesn't quite allow easy re-creating of the conditions UI.

A quick addition would be the ability to add elem_filters for type=signal. The filters should support:
  • Show/hide meta-signals (signal-everything, signal-anything, signal-each) - need control of each meta-signal independently as sometimes only each or every is appropriate, sometimes every and any are but each isn't, etc.
  • Show/hide the "Or set a constant" sub-panel (e.g. from the RHS of the train-stop "Enabled Condition" UI)
Rseding91
Factorio Staff
Factorio Staff
Posts: 15008
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: elem_filters for type=signal choose-elem-button

Post by Rseding91 »

Just FYI: the "or constant" is not a thing when it comes to signals so that's never going to happen with this CustomGuiElement type. A 'signal ID' is one of a special signal, a fluid, or an item.
If you want to get ahold of me I'm almost always on Discord.
IsoSchiz
Burner Inserter
Burner Inserter
Posts: 7
Joined: Mon Jun 27, 2016 11:28 pm
Contact:

Re: elem_filters for type=signal choose-elem-button

Post by IsoSchiz »

Yup, understood.

Would it be possible to provide a composite custom GUI element that returns a CircuitCondition (and behaves the same as the various existing ones, with the "or constant" behaviour for the RHS)?

This is a relatively common use case, and while it's possible to replicate, it's difficult to get entirely right (especially with the same UX as vanilla UIs).
User avatar
Sharparam
Inserter
Inserter
Posts: 27
Joined: Sat Mar 25, 2023 11:21 pm
Contact:

Re: elem_filters for type=signal choose-elem-button

Post by Sharparam »

Are there any updates on any chance of getting support for hiding "everything", "anything", and "each"?

Currently I still have to have a workaround in my mod when a player selects one of those three, displaying an error message to the chat instead of just being able to not make those selectable.
Post Reply

Return to “Modding interface requests”