You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
1.2KB

  1. #include "Bark.hpp"
  2. #include "barkComponents.hpp"
  3. namespace rack_plugin_Bark {
  4. struct Panel6 : Module {
  5. enum ParamIds {
  6. NUM_PARAMS
  7. };
  8. enum InputIds {
  9. NUM_INPUTS
  10. };
  11. enum OutputIds {
  12. NUM_OUTPUTS
  13. };
  14. enum LightIds {
  15. BLINK_LIGHT,
  16. NUM_LIGHTS
  17. };
  18. Panel6() : Module(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS, NUM_LIGHTS) {}
  19. void step() override;
  20. };
  21. void Panel6::step()
  22. {
  23. }
  24. struct Panel6Widget : ModuleWidget
  25. {
  26. Panel6Widget(Panel6 *module);
  27. };
  28. Panel6Widget::Panel6Widget(Panel6 *module) : ModuleWidget(module) {
  29. box.size = Vec(6 * RACK_GRID_WIDTH, RACK_GRID_HEIGHT);
  30. {
  31. SVGPanel *panel = new SVGPanel();
  32. panel->setBackground(SVG::load(assetPlugin(plugin, "res/BarkPanel6.svg")));
  33. panel->box.size = box.size;
  34. addChild(panel);
  35. }
  36. //screw
  37. addChild(Widget::create<BarkScrew2>(Vec(2, 3))); //pos1
  38. addChild(Widget::create<BarkScrew1>(Vec(box.size.x - 13, 367.2))); //pos4
  39. }
  40. } // namespace rack_plugin_Bark
  41. using namespace rack_plugin_Bark;
  42. RACK_PLUGIN_MODEL_INIT(Bark, Panel6) {
  43. //p->addModel(createModel<Panel6Widget>("Bark", "Panel6", "Bark Panel 6", BLANK_TAG));
  44. Model *modelPanel6 = Model::create<Panel6, Panel6Widget>("Bark", "Panel6", "Bark Panel 6", BLANK_TAG);
  45. return modelPanel6;
  46. }