Hi,
We can add ChooseSignalButtons to gui elements using the choose-elem-button type and specifying "signal" as elem_type.
However, if you're trying to recreate the gui for a CircuitConditionSpecification, you need the dual functionality of the "signal or integer slider" you get with base game guis (e.g. "Enabled condition" for a lamp, pictured below).
Is it possible to extend choose-elem-button with a new elem_type so that it pulls up the double signal-or-integer gui?
Cheers muchly.
Request: ChooseSignalOrNumberButton
- Deadlock989
- Smart Inserter
- Posts: 2393
- Joined: Fri Nov 06, 2015 7:41 pm
Request: ChooseSignalOrNumberButton
"If Stalin had a good writeup on programming, would linking that be dangerous?"
Re: Request: ChooseSignalOrNumberButton
Unfortunately: no. The elem chooser only works with prototypes are not numbers.
If you want to get ahold of me I'm almost always on Discord.
Re: Request: ChooseSignalOrNumberButton
+1 for the ability to use the "Or set a constant" in mods.
My mods: Spidertron Patrols | Spidertron Enhancements | Factory Search | Spidertron Engineer | Spidertron Weapon Switcher | Power Overload
Re: Request: ChooseSignalOrNumberButton
+1
also with signal and count as seen from the constant combinator
also with signal and count as seen from the constant combinator