elem_filters for type=signal choose-elem-button

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Post Reply
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: 12786
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).

Post Reply

Return to “Modding interface requests”