https://trello.com/c/6f4qq0XE/227-use-to-invert-toggles. Saw this on the trello, re-suggesting it because it would be really helpful, particularly and especially for parts that rely heavily on complicated toggle logic.
Easier inversion of toggles
- Edited
Almost everything that uses a toggle can be inverted using an Invert or InvertOperationalToggle parameter or similar.
- Edited
Ultranova Actually they can! Instead of doing something like this:
IsOperational
{
Type = MultiToggle
Toggles = [PowerToggle, BatteryStorage]
Mode = All
}
Do this:
IsOperational
{
Type = MultiToggle
Toggles
[
{Toggle=PowerToggle, Invert=true}
{Toggle=BatteryStorage, Invert=true}
]
Mode = All
}