MCPcopy Create free account
hub / github.com/VCVRack/AudibleInstruments / appendContextMenu

Method appendContextMenu

src/Tides.cpp:264–278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

262
263
264 void appendContextMenu(Menu* menu) override {
265 Tides* module = dynamic_cast<Tides*>(this->module);
266
267 struct SheepItem : MenuItem {
268 Tides* module;
269 void onAction(const event::Action& e) override {
270 module->sheep ^= true;
271 }
272 };
273
274 menu->addChild(new MenuSeparator);
275 SheepItem* sheepItem = createMenuItem<SheepItem>("Sheep", CHECKMARK(module->sheep));
276 sheepItem->module = module;
277 menu->addChild(sheepItem);
278 }
279};
280
281

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected