computerscare-vcv-modules

computerscare modules for VCV Rack
Log | Files | Refs

commit 17a035d7fa8ea06256f2884be3976087b9906ce7
parent b7a604648cc4edfe5122bcec6e6a67b92d638f7e
Author: Adam M <aemalone@gmail.com>
Date:   Sat,  9 Nov 2019 15:11:20 -0600

Hide computerscare logo when image is loaded

Diffstat:
Msrc/ComputerscareBlank.cpp | 14+++-----------
Msrc/ComputerscareSolyPequencer.cpp | 3+--
2 files changed, 4 insertions(+), 13 deletions(-)

diff --git a/src/ComputerscareBlank.cpp b/src/ComputerscareBlank.cpp @@ -37,14 +37,9 @@ struct ComputerscareBlank : Module { ComputerscareBlank() { - config(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS, NUM_LIGHTS); - - - } - void process(const ProcessArgs &args) override { - } + void process(const ProcessArgs &args) override {} void onReset() override { zoom = 1; xOffset = 0; @@ -67,10 +62,6 @@ struct ComputerscareBlank : Module { return; this->path = path; } - void setWidth(float w) { - this->width = w; - } - json_t *dataToJson() override { json_t *rootJ = json_object(); @@ -342,11 +333,12 @@ struct ComputerscareBlankWidget : ModuleWidget { else { if (box.size.x != blankModule->width) { blankModule->width = box.size.x; - panel->box.pos.x = box.size.x / 2 - panel->box.size.x / 2; + panel->box.pos.x = box.size.x / 2 - 60.f; pngDisplay->box.size.x = box.size.x; bgPanel->box.size.x = box.size.x; rightHandle->box.pos.x = box.size.x - rightHandle->box.size.x; } + panel->visible = blankModule->path.empty(); } ModuleWidget::step(); } diff --git a/src/ComputerscareSolyPequencer.cpp b/src/ComputerscareSolyPequencer.cpp @@ -32,6 +32,7 @@ struct ComputerscareSolyPequencer : Module { }; enum OutputIds { POLY_OUTPUT, + EOC_OUTPUT, NUM_OUTPUTS }; enum LightIds { @@ -44,8 +45,6 @@ struct ComputerscareSolyPequencer : Module { config(NUM_PARAMS, NUM_INPUTS, NUM_OUTPUTS, NUM_LIGHTS); configParam(MANUAL_CLOCK_BUTTON, 0.f, 1.f, 0.f); configParam(MANUAL_RESET_BUTTON, 0.f, 1.f, 0.f); - // configParam(KNOB + i, 1.f, 16.f, (i + 1), "output ch:" + std::to_string(i + 1) + " = input ch"); - } void resetAll() { for (int i = 0; i < 16; i++) {