|
|
@@ -220,14 +220,7 @@ struct CardinalExpanderForInputMIDIWidget : ModuleWidgetWithSideScrews<> { |
|
|
|
addChild(createWidget<ScrewBlack>(Vec(RACK_GRID_WIDTH, RACK_GRID_HEIGHT - RACK_GRID_WIDTH))); |
|
|
|
|
|
|
|
for (int i=0; i<CardinalExpanderForInputMIDI::NUM_INPUTS; ++i) |
|
|
|
addInput(createInput<PJ301MPort>(Vec(startX + 5.0f, startY + padding * i), module, i)); |
|
|
|
} |
|
|
|
|
|
|
|
void drawOutputJacksArea(NVGcontext* const vg, const int numOutputs) { |
|
|
|
nvgBeginPath(vg); |
|
|
|
nvgRoundedRect(vg, 12.0f, startY - 2.0f, box.size.x - 12.0f, padding * numOutputs, 4); |
|
|
|
nvgFillColor(vg, nvgRGB(0xd0, 0xd0, 0xd0)); |
|
|
|
nvgFill(vg); |
|
|
|
addInput(createInput<PJ301MPort>(Vec(startX + 4.0f, startY + padding * i), module, i)); |
|
|
|
} |
|
|
|
|
|
|
|
void draw(const DrawArgs& args) override |
|
|
@@ -235,6 +228,7 @@ struct CardinalExpanderForInputMIDIWidget : ModuleWidgetWithSideScrews<> { |
|
|
|
drawBackground(args.vg); |
|
|
|
|
|
|
|
nvgScissor(args.vg, startX, 0.0f, box.size.x - startX, box.size.y); |
|
|
|
nvgFillColor(args.vg, nvgRGB(0xd0, 0xd0, 0xd0)); |
|
|
|
|
|
|
|
for (int i=0; i<CardinalExpanderForInputMIDI::NUM_INPUTS; ++i) |
|
|
|
{ |
|
|
@@ -242,12 +236,15 @@ struct CardinalExpanderForInputMIDIWidget : ModuleWidgetWithSideScrews<> { |
|
|
|
|
|
|
|
nvgBeginPath(args.vg); |
|
|
|
nvgRoundedRect(args.vg, startX, y - 19.0f, box.size.x, padding - 4.0f, 4); |
|
|
|
nvgFillColor(args.vg, nvgRGB(0xd0, 0xd0, 0xd0)); |
|
|
|
nvgFill(args.vg); |
|
|
|
} |
|
|
|
|
|
|
|
nvgResetScissor(args.vg); |
|
|
|
|
|
|
|
nvgBeginPath(args.vg); |
|
|
|
nvgRoundedRect(args.vg, 6.5f, startY - 19.0f, 3.0f, padding * 6.0f - 4.0f, 1); |
|
|
|
nvgFill(args.vg); |
|
|
|
|
|
|
|
nvgBeginPath(args.vg); |
|
|
|
nvgRect(args.vg, box.size.x * 0.5f, 0, box.size.x, box.size.y); |
|
|
|
nvgFillColor(args.vg, color::BLACK); |
|
|
|