From 4cedca9edf36eb220c12b7d894aa354bd098c4ef Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Wed, 1 Apr 2020 02:44:42 -0400 Subject: [PATCH] Remove LEDLightSliderFixed because LEDLightSlider now works in Rack. --- res/LEDSliderHandle.svg | 66 ----------------------------------------- src/Random.cpp | 4 +-- src/VCMixer.cpp | 8 ++--- src/plugin.hpp | 8 ----- 4 files changed, 6 insertions(+), 80 deletions(-) delete mode 100644 res/LEDSliderHandle.svg diff --git a/res/LEDSliderHandle.svg b/res/LEDSliderHandle.svg deleted file mode 100644 index 737514c..0000000 --- a/res/LEDSliderHandle.svg +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - - - - - image/svg+xml - - - - - - - - - diff --git a/src/Random.cpp b/src/Random.cpp index 6a2054f..27267d2 100644 --- a/src/Random.cpp +++ b/src/Random.cpp @@ -192,8 +192,8 @@ struct RandomWidget : ModuleWidget { addChild(createWidget(Vec(RACK_GRID_WIDTH, RACK_GRID_HEIGHT - RACK_GRID_WIDTH))); addChild(createWidget(Vec(box.size.x - 2 * RACK_GRID_WIDTH, RACK_GRID_HEIGHT - RACK_GRID_WIDTH))); - addParam(createLightParamCentered>(mm2px(Vec(7.215, 30.858)), module, Random::RATE_PARAM, Random::RATE_LIGHT)); - addParam(createLightParamCentered>(mm2px(Vec(18.214, 30.858)), module, Random::SHAPE_PARAM, Random::SHAPE_LIGHT)); + addParam(createLightParamCentered>(mm2px(Vec(7.215, 30.858)), module, Random::RATE_PARAM, Random::RATE_LIGHT)); + addParam(createLightParamCentered>(mm2px(Vec(18.214, 30.858)), module, Random::SHAPE_PARAM, Random::SHAPE_LIGHT)); addParam(createParamCentered(mm2px(Vec(7.214, 78.259)), module, Random::OFFSET_PARAM)); addParam(createParamCentered(mm2px(Vec(18.214, 78.259)), module, Random::MODE_PARAM)); diff --git a/src/VCMixer.cpp b/src/VCMixer.cpp index f58be36..0ccfc57 100644 --- a/src/VCMixer.cpp +++ b/src/VCMixer.cpp @@ -154,10 +154,10 @@ struct VCMixerWidget : ModuleWidget { addChild(createWidget(Vec(box.size.x - 2 * RACK_GRID_WIDTH, RACK_GRID_HEIGHT - RACK_GRID_WIDTH))); addParam(createParam(mm2px(Vec(19.049999, 21.161154)), module, VCMixer::MIX_LVL_PARAM)); - addParam(createLightParam>(mm2px(Vec(5.8993969, 44.33149).plus(Vec(-2, 0))), module, VCMixer::LVL_PARAMS + 0, VCMixer::LVL_LIGHTS + 0)); - addParam(createLightParam>(mm2px(Vec(17.899343, 44.331486).plus(Vec(-2, 0))), module, VCMixer::LVL_PARAMS + 1, VCMixer::LVL_LIGHTS + 1)); - addParam(createLightParam>(mm2px(Vec(29.899292, 44.331486).plus(Vec(-2, 0))), module, VCMixer::LVL_PARAMS + 2, VCMixer::LVL_LIGHTS + 2)); - addParam(createLightParam>(mm2px(Vec(41.90065, 44.331486).plus(Vec(-2, 0))), module, VCMixer::LVL_PARAMS + 3, VCMixer::LVL_LIGHTS + 3)); + addParam(createLightParam>(mm2px(Vec(5.8993969, 44.33149).plus(Vec(-2, 0))), module, VCMixer::LVL_PARAMS + 0, VCMixer::LVL_LIGHTS + 0)); + addParam(createLightParam>(mm2px(Vec(17.899343, 44.331486).plus(Vec(-2, 0))), module, VCMixer::LVL_PARAMS + 1, VCMixer::LVL_LIGHTS + 1)); + addParam(createLightParam>(mm2px(Vec(29.899292, 44.331486).plus(Vec(-2, 0))), module, VCMixer::LVL_PARAMS + 2, VCMixer::LVL_LIGHTS + 2)); + addParam(createLightParam>(mm2px(Vec(41.90065, 44.331486).plus(Vec(-2, 0))), module, VCMixer::LVL_PARAMS + 3, VCMixer::LVL_LIGHTS + 3)); // Use old interleaved order for backward compatibility with <0.6 addInput(createInput(mm2px(Vec(3.2935331, 23.404598)), module, VCMixer::MIX_CV_INPUT)); diff --git a/src/plugin.hpp b/src/plugin.hpp index 3a48075..7940556 100644 --- a/src/plugin.hpp +++ b/src/plugin.hpp @@ -33,11 +33,3 @@ extern Model* modelViz; extern Model* modelMidSide; extern Model* modelNoise; extern Model* modelRandom; - - -template -struct LEDLightSliderFixed : LEDLightSlider { - LEDLightSliderFixed() { - this->setHandleSvg(APP->window->loadSvg(asset::plugin(pluginInstance, "res/LEDSliderHandle.svg"))); - } -};