diff --git a/res/HexmixVCA.svg b/res/HexmixVCA.svg index c7c2ddf..6c7606a 100644 --- a/res/HexmixVCA.svg +++ b/res/HexmixVCA.svg @@ -5,7 +5,6 @@ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" - xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" width="71.120003mm" @@ -120,11 +119,11 @@ borderopacity="1.0" inkscape:pageopacity="0.0" inkscape:pageshadow="2" - inkscape:zoom="1.4142136" - inkscape:cx="506.09322" - inkscape:cy="397.59829" + inkscape:zoom="4.0000001" + inkscape:cx="225.95122" + inkscape:cy="146.32252" inkscape:document-units="mm" - inkscape:current-layer="layer3" + inkscape:current-layer="layer1" showgrid="false" viewbox-width="209.8" inkscape:window-width="2560" @@ -169,7 +168,7 @@ width="7.0859838" height="10.727" x="63.686527" - y="271.62463" /> + y="271.63611" /> + y="271.62759" /> + y="271.63452" /> + y="271.63263" /> + y="271.63092" /> + y="271.62918" /> - (mm2px(Vec(64.222, 89.93)), module, HexmixVCA::OUT_OUTPUT + 4)); addOutput(createOutputCentered(mm2px(Vec(64.222, 108.536)), module, HexmixVCA::OUT_OUTPUT + 5)); } + + struct MixMenuItem : MenuItem { + HexmixVCA* module; + void onAction(const event::Action& e) override { + module->finalRowIsMix ^= true; + } + }; + + void appendContextMenu(Menu* menu) override { + HexmixVCA* module = dynamic_cast(this->module); + assert(module); + + menu->addChild(new MenuSeparator()); + + MixMenuItem* mixItem = createMenuItem("Final row is mix", CHECKMARK(module->finalRowIsMix)); + mixItem->module = module; + menu->addChild(mixItem); + } };