vsariola / sointu

Fork of 4klang that can target 386, amd64 and WebAssembly. Tools run on Windows, Mac & Linux
MIT License
254 stars 17 forks source link

Bypass op #116

Closed wayfu closed 7 months ago

wayfu commented 10 months ago

it would be nice if it were possible to temporarily disable ops in the gui, without losing all the settings

vsariola commented 10 months ago

So many good suggestions! Yes, this would be a great feature. With the upcoming ability to easily select multiple units, it would be great to disable/enable a group of units at once.

LeStahL commented 9 months ago

Maybe this could be in the yaml as well ("Commented ops are bypassed")? That's relevant extra parsing effort, but would feel kind of "natural"

LeStahL commented 9 months ago

Bypassing could be activated when pressing "CTRL+D" while having units selected, and deactivated with CTRL+SHIFT+D.

vsariola commented 9 months ago

I'll just make a boolean named disabled for each unit and falses are not exported so it's fully compatible with current tracks. The yaml parser / serializer is pretty rigid; better not waste time trying to hack it.

vsariola commented 7 months ago

Ok, Ctrl-D disables/re-enables the currently selected unit(s). These are marked in the yaml as disabled: true. The disabled units are considered non-existent when compiling the patch. The disable units are displayed in gray and italic: image