diff --git a/libs/sst/sst-effects b/libs/sst/sst-effects index 28bd9994..6c89d0f2 160000 --- a/libs/sst/sst-effects +++ b/libs/sst/sst-effects @@ -1 +1 @@ -Subproject commit 28bd9994dc3cd54ab9f7e51e466cbb47bcd8816b +Subproject commit 6c89d0f22e205edc71f1f8edc907d0784197d501 diff --git a/libs/sst/sst-jucegui b/libs/sst/sst-jucegui index 3b239fd2..3e5c20ff 160000 --- a/libs/sst/sst-jucegui +++ b/libs/sst/sst-jucegui @@ -1 +1 @@ -Subproject commit 3b239fd27908d9908938d8403f80c56b9855d939 +Subproject commit 3e5c20ff8f77613a9971169c9d4c1be1e8b516e6 diff --git a/src-ui/components/multi/ProcessorPane.cpp b/src-ui/components/multi/ProcessorPane.cpp index a1af3bff..7697f682 100644 --- a/src-ui/components/multi/ProcessorPane.cpp +++ b/src-ui/components/multi/ProcessorPane.cpp @@ -632,6 +632,16 @@ bool ProcessorPane::layoutControlsFromJSON(const std::string &jsonpath, lw->setJustification(juce::Justification::centred); otherEditors.push_back(std::move(lw)); } + + auto ei = ictag("enable-if", -1); + if (ei >= 0) + { + if (ei == c.index) + { + SCLOG("WARNING: Enable-if set to self on component " << c.index); + } + intEditors[c.index]->item->setEnabled(intAttachments[ei]->getValue()); + } } else if (c.index < 0) { diff --git a/src-ui/json-layout/processors/bitcrusher.json b/src-ui/json-layout/processors/bitcrusher.json index 10fbf3aa..49baa502 100644 --- a/src-ui/json-layout/processors/bitcrusher.json +++ b/src-ui/json-layout/processors/bitcrusher.json @@ -36,7 +36,7 @@ { "index": 3, "coordinates": [ - 40, + 70, 80, 50, 50 @@ -46,7 +46,7 @@ { "index": 4, "coordinates": [ - 100, + 130, 80, 50, 50 @@ -58,11 +58,23 @@ "component": "power", "index": 0, "coordinates": [ - 100, + 130, 80, 50, 50 ] + }, + { + "type": "int", + "component": "multiswitch", + "index": 1, + "coordinates": [ + 10, + 80, + 50, + 50 + ], + "enable-if": 0 } ] } \ No newline at end of file