| @@ -1,6 +1,6 @@ | |||||
| { | { | ||||
| "slug": "AudibleInstruments", | "slug": "AudibleInstruments", | ||||
| "version": "1.5.0", | |||||
| "version": "2.0.0", | |||||
| "license": "GPL-3.0-or-later", | "license": "GPL-3.0-or-later", | ||||
| "name": "Audible Instruments", | "name": "Audible Instruments", | ||||
| "author": "VCV", | "author": "VCV", | ||||
| @@ -79,7 +79,7 @@ struct Blinds : Module { | |||||
| struct BlindsWidget : ModuleWidget { | struct BlindsWidget : ModuleWidget { | ||||
| BlindsWidget(Blinds* module) { | BlindsWidget(Blinds* module) { | ||||
| setModule(module); | setModule(module); | ||||
| setPanel(APP->window->loadSvg(asset::plugin(pluginInstance, "res/Blinds.svg"))); | |||||
| setPanel(Svg::load(asset::plugin(pluginInstance, "res/Blinds.svg"))); | |||||
| addChild(createWidget<ScrewSilver>(Vec(15, 0))); | addChild(createWidget<ScrewSilver>(Vec(15, 0))); | ||||
| addChild(createWidget<ScrewSilver>(Vec(150, 0))); | addChild(createWidget<ScrewSilver>(Vec(150, 0))); | ||||
| @@ -299,7 +299,7 @@ struct BraidsLowCpuItem : MenuItem { | |||||
| struct BraidsWidget : ModuleWidget { | struct BraidsWidget : ModuleWidget { | ||||
| BraidsWidget(Braids* module) { | BraidsWidget(Braids* module) { | ||||
| setModule(module); | setModule(module); | ||||
| setPanel(APP->window->loadSvg(asset::plugin(pluginInstance, "res/Braids.svg"))); | |||||
| setPanel(Svg::load(asset::plugin(pluginInstance, "res/Braids.svg"))); | |||||
| { | { | ||||
| BraidsDisplay* display = new BraidsDisplay(); | BraidsDisplay* display = new BraidsDisplay(); | ||||
| @@ -133,7 +133,7 @@ struct Branches : Module { | |||||
| struct BranchesWidget : ModuleWidget { | struct BranchesWidget : ModuleWidget { | ||||
| BranchesWidget(Branches* module) { | BranchesWidget(Branches* module) { | ||||
| setModule(module); | setModule(module); | ||||
| setPanel(APP->window->loadSvg(asset::plugin(pluginInstance, "res/Branches.svg"))); | |||||
| setPanel(Svg::load(asset::plugin(pluginInstance, "res/Branches.svg"))); | |||||
| addChild(createWidget<ScrewSilver>(Vec(RACK_GRID_WIDTH, 0))); | addChild(createWidget<ScrewSilver>(Vec(RACK_GRID_WIDTH, 0))); | ||||
| addChild(createWidget<ScrewSilver>(Vec(RACK_GRID_WIDTH, RACK_GRID_HEIGHT - RACK_GRID_WIDTH))); | addChild(createWidget<ScrewSilver>(Vec(RACK_GRID_WIDTH, RACK_GRID_HEIGHT - RACK_GRID_WIDTH))); | ||||
| @@ -315,7 +315,7 @@ struct CloudsWidget : ModuleWidget { | |||||
| CloudsWidget(Clouds* module) { | CloudsWidget(Clouds* module) { | ||||
| setModule(module); | setModule(module); | ||||
| setPanel(APP->window->loadSvg(asset::plugin(pluginInstance, "res/Clouds.svg"))); | |||||
| setPanel(Svg::load(asset::plugin(pluginInstance, "res/Clouds.svg"))); | |||||
| addChild(createWidget<ScrewSilver>(Vec(15, 0))); | addChild(createWidget<ScrewSilver>(Vec(15, 0))); | ||||
| addChild(createWidget<ScrewSilver>(Vec(240, 0))); | addChild(createWidget<ScrewSilver>(Vec(240, 0))); | ||||
| @@ -304,7 +304,7 @@ struct ElementsModalItem : MenuItem { | |||||
| struct ElementsWidget : ModuleWidget { | struct ElementsWidget : ModuleWidget { | ||||
| ElementsWidget(Elements* module) { | ElementsWidget(Elements* module) { | ||||
| setModule(module); | setModule(module); | ||||
| setPanel(APP->window->loadSvg(asset::plugin(pluginInstance, "res/Elements.svg"))); | |||||
| setPanel(Svg::load(asset::plugin(pluginInstance, "res/Elements.svg"))); | |||||
| addChild(createWidget<ScrewSilver>(Vec(15, 0))); | addChild(createWidget<ScrewSilver>(Vec(15, 0))); | ||||
| addChild(createWidget<ScrewSilver>(Vec(480, 0))); | addChild(createWidget<ScrewSilver>(Vec(480, 0))); | ||||
| @@ -281,8 +281,8 @@ struct Frames : Module { | |||||
| struct CKSSRot : SVGSwitch { | struct CKSSRot : SVGSwitch { | ||||
| CKSSRot() { | CKSSRot() { | ||||
| addFrame(APP->window->loadSvg(asset::plugin(pluginInstance, "res/CKSS_rot_0.svg"))); | |||||
| addFrame(APP->window->loadSvg(asset::plugin(pluginInstance, "res/CKSS_rot_1.svg"))); | |||||
| addFrame(Svg::load(asset::plugin(pluginInstance, "res/CKSS_rot_0.svg"))); | |||||
| addFrame(Svg::load(asset::plugin(pluginInstance, "res/CKSS_rot_1.svg"))); | |||||
| } | } | ||||
| }; | }; | ||||
| @@ -290,7 +290,7 @@ struct CKSSRot : SVGSwitch { | |||||
| struct FramesWidget : ModuleWidget { | struct FramesWidget : ModuleWidget { | ||||
| FramesWidget(Frames* module) { | FramesWidget(Frames* module) { | ||||
| setModule(module); | setModule(module); | ||||
| setPanel(APP->window->loadSvg(asset::plugin(pluginInstance, "res/Frames.svg"))); | |||||
| setPanel(Svg::load(asset::plugin(pluginInstance, "res/Frames.svg"))); | |||||
| addChild(createWidget<ScrewSilver>(Vec(15, 0))); | addChild(createWidget<ScrewSilver>(Vec(15, 0))); | ||||
| addChild(createWidget<ScrewSilver>(Vec(box.size.x - 30, 0))); | addChild(createWidget<ScrewSilver>(Vec(box.size.x - 30, 0))); | ||||
| @@ -70,7 +70,7 @@ struct Kinks : Module { | |||||
| struct KinksWidget : ModuleWidget { | struct KinksWidget : ModuleWidget { | ||||
| KinksWidget(Kinks* module) { | KinksWidget(Kinks* module) { | ||||
| setModule(module); | setModule(module); | ||||
| setPanel(APP->window->loadSvg(asset::plugin(pluginInstance, "res/Kinks.svg"))); | |||||
| setPanel(Svg::load(asset::plugin(pluginInstance, "res/Kinks.svg"))); | |||||
| addChild(createWidget<ScrewSilver>(Vec(15, 0))); | addChild(createWidget<ScrewSilver>(Vec(15, 0))); | ||||
| addChild(createWidget<ScrewSilver>(Vec(15, 365))); | addChild(createWidget<ScrewSilver>(Vec(15, 365))); | ||||
| @@ -86,7 +86,7 @@ struct Links : Module { | |||||
| struct LinksWidget : ModuleWidget { | struct LinksWidget : ModuleWidget { | ||||
| LinksWidget(Links* module) { | LinksWidget(Links* module) { | ||||
| setModule(module); | setModule(module); | ||||
| setPanel(APP->window->loadSvg(asset::plugin(pluginInstance, "res/Links.svg"))); | |||||
| setPanel(Svg::load(asset::plugin(pluginInstance, "res/Links.svg"))); | |||||
| addChild(createWidget<ScrewSilver>(Vec(15, 0))); | addChild(createWidget<ScrewSilver>(Vec(15, 0))); | ||||
| addChild(createWidget<ScrewSilver>(Vec(15, 365))); | addChild(createWidget<ScrewSilver>(Vec(15, 365))); | ||||
| @@ -528,7 +528,7 @@ struct CKD6Light : BASE { | |||||
| struct MarblesWidget : ModuleWidget { | struct MarblesWidget : ModuleWidget { | ||||
| MarblesWidget(Marbles* module) { | MarblesWidget(Marbles* module) { | ||||
| setModule(module); | setModule(module); | ||||
| setPanel(APP->window->loadSvg(asset::plugin(pluginInstance, "res/Marbles.svg"))); | |||||
| setPanel(Svg::load(asset::plugin(pluginInstance, "res/Marbles.svg"))); | |||||
| addChild(createWidget<ScrewSilver>(Vec(RACK_GRID_WIDTH, 0))); | addChild(createWidget<ScrewSilver>(Vec(RACK_GRID_WIDTH, 0))); | ||||
| addChild(createWidget<ScrewSilver>(Vec(box.size.x - 2 * RACK_GRID_WIDTH, 0))); | addChild(createWidget<ScrewSilver>(Vec(box.size.x - 2 * RACK_GRID_WIDTH, 0))); | ||||
| @@ -272,7 +272,7 @@ struct PlaitsWidget : ModuleWidget { | |||||
| PlaitsWidget(Plaits* module) { | PlaitsWidget(Plaits* module) { | ||||
| setModule(module); | setModule(module); | ||||
| setPanel(APP->window->loadSvg(asset::plugin(pluginInstance, "res/Plaits.svg"))); | |||||
| setPanel(Svg::load(asset::plugin(pluginInstance, "res/Plaits.svg"))); | |||||
| addChild(createWidget<ScrewSilver>(Vec(RACK_GRID_WIDTH, 0))); | addChild(createWidget<ScrewSilver>(Vec(RACK_GRID_WIDTH, 0))); | ||||
| addChild(createWidget<ScrewSilver>(Vec(box.size.x - 2 * RACK_GRID_WIDTH, 0))); | addChild(createWidget<ScrewSilver>(Vec(box.size.x - 2 * RACK_GRID_WIDTH, 0))); | ||||
| @@ -250,7 +250,7 @@ struct Rings : Module { | |||||
| struct RingsWidget : ModuleWidget { | struct RingsWidget : ModuleWidget { | ||||
| RingsWidget(Rings* module) { | RingsWidget(Rings* module) { | ||||
| setModule(module); | setModule(module); | ||||
| setPanel(APP->window->loadSvg(asset::plugin(pluginInstance, "res/Rings.svg"))); | |||||
| setPanel(Svg::load(asset::plugin(pluginInstance, "res/Rings.svg"))); | |||||
| addChild(createWidget<ScrewSilver>(Vec(15, 0))); | addChild(createWidget<ScrewSilver>(Vec(15, 0))); | ||||
| addChild(createWidget<ScrewSilver>(Vec(180, 0))); | addChild(createWidget<ScrewSilver>(Vec(180, 0))); | ||||
| @@ -86,7 +86,7 @@ struct Ripples : Module { | |||||
| struct RipplesWidget : ModuleWidget { | struct RipplesWidget : ModuleWidget { | ||||
| RipplesWidget(Ripples* module) { | RipplesWidget(Ripples* module) { | ||||
| setModule(module); | setModule(module); | ||||
| setPanel(APP->window->loadSvg(asset::plugin(pluginInstance, "res/Ripples.svg"))); | |||||
| setPanel(Svg::load(asset::plugin(pluginInstance, "res/Ripples.svg"))); | |||||
| addChild(createWidget<ScrewSilver>(Vec(RACK_GRID_WIDTH, 0))); | addChild(createWidget<ScrewSilver>(Vec(RACK_GRID_WIDTH, 0))); | ||||
| addChild(createWidget<ScrewSilver>(Vec(RACK_GRID_WIDTH, RACK_GRID_HEIGHT - RACK_GRID_WIDTH))); | addChild(createWidget<ScrewSilver>(Vec(RACK_GRID_WIDTH, RACK_GRID_HEIGHT - RACK_GRID_WIDTH))); | ||||
| @@ -68,7 +68,7 @@ struct Shades : Module { | |||||
| struct ShadesWidget : ModuleWidget { | struct ShadesWidget : ModuleWidget { | ||||
| ShadesWidget(Shades* module) { | ShadesWidget(Shades* module) { | ||||
| setModule(module); | setModule(module); | ||||
| setPanel(APP->window->loadSvg(asset::plugin(pluginInstance, "res/Shades.svg"))); | |||||
| setPanel(Svg::load(asset::plugin(pluginInstance, "res/Shades.svg"))); | |||||
| addChild(createWidget<ScrewSilver>(Vec(15, 0))); | addChild(createWidget<ScrewSilver>(Vec(15, 0))); | ||||
| addChild(createWidget<ScrewSilver>(Vec(15, 365))); | addChild(createWidget<ScrewSilver>(Vec(15, 365))); | ||||
| @@ -187,7 +187,7 @@ struct Shelves : Module { | |||||
| struct ShelvesWidget : ModuleWidget { | struct ShelvesWidget : ModuleWidget { | ||||
| ShelvesWidget(Shelves* module) { | ShelvesWidget(Shelves* module) { | ||||
| setModule(module); | setModule(module); | ||||
| setPanel(APP->window->loadSvg(asset::plugin(pluginInstance, "res/Shelves.svg"))); | |||||
| setPanel(Svg::load(asset::plugin(pluginInstance, "res/Shelves.svg"))); | |||||
| addChild(createWidget<ScrewSilver>(Vec(RACK_GRID_WIDTH, 0))); | addChild(createWidget<ScrewSilver>(Vec(RACK_GRID_WIDTH, 0))); | ||||
| addChild(createWidget<ScrewSilver>(Vec(box.size.x - 2 * RACK_GRID_WIDTH, 0))); | addChild(createWidget<ScrewSilver>(Vec(box.size.x - 2 * RACK_GRID_WIDTH, 0))); | ||||
| @@ -395,7 +395,7 @@ struct Stages : Module { | |||||
| struct StagesWidget : ModuleWidget { | struct StagesWidget : ModuleWidget { | ||||
| StagesWidget(Stages* module) { | StagesWidget(Stages* module) { | ||||
| setModule(module); | setModule(module); | ||||
| setPanel(APP->window->loadSvg(asset::plugin(pluginInstance, "res/Stages.svg"))); | |||||
| setPanel(Svg::load(asset::plugin(pluginInstance, "res/Stages.svg"))); | |||||
| addChild(createWidget<ScrewSilver>(Vec(RACK_GRID_WIDTH, 0))); | addChild(createWidget<ScrewSilver>(Vec(RACK_GRID_WIDTH, 0))); | ||||
| addChild(createWidget<ScrewSilver>(Vec(box.size.x - 2 * RACK_GRID_WIDTH, 0))); | addChild(createWidget<ScrewSilver>(Vec(box.size.x - 2 * RACK_GRID_WIDTH, 0))); | ||||
| @@ -329,7 +329,7 @@ struct Streams : Module { | |||||
| struct StreamsWidget : ModuleWidget { | struct StreamsWidget : ModuleWidget { | ||||
| StreamsWidget(Streams* module) { | StreamsWidget(Streams* module) { | ||||
| setModule(module); | setModule(module); | ||||
| setPanel(APP->window->loadSvg(asset::plugin(pluginInstance, "res/Streams.svg"))); | |||||
| setPanel(Svg::load(asset::plugin(pluginInstance, "res/Streams.svg"))); | |||||
| addChild(createWidget<ScrewSilver>(Vec(RACK_GRID_WIDTH, 0))); | addChild(createWidget<ScrewSilver>(Vec(RACK_GRID_WIDTH, 0))); | ||||
| addChild(createWidget<ScrewSilver>(Vec(box.size.x - 2 * RACK_GRID_WIDTH, 0))); | addChild(createWidget<ScrewSilver>(Vec(box.size.x - 2 * RACK_GRID_WIDTH, 0))); | ||||
| @@ -202,13 +202,13 @@ struct TidesWidget : ModuleWidget { | |||||
| box.size = Vec(15 * 14, 380); | box.size = Vec(15 * 14, 380); | ||||
| { | { | ||||
| tidesPanel = new SvgPanel(); | tidesPanel = new SvgPanel(); | ||||
| tidesPanel->setBackground(APP->window->loadSvg(asset::plugin(pluginInstance, "res/Tides.svg"))); | |||||
| tidesPanel->setBackground(Svg::load(asset::plugin(pluginInstance, "res/Tides.svg"))); | |||||
| tidesPanel->box.size = box.size; | tidesPanel->box.size = box.size; | ||||
| addChild(tidesPanel); | addChild(tidesPanel); | ||||
| } | } | ||||
| { | { | ||||
| sheepPanel = new SvgPanel(); | sheepPanel = new SvgPanel(); | ||||
| sheepPanel->setBackground(APP->window->loadSvg(asset::plugin(pluginInstance, "res/Sheep.svg"))); | |||||
| sheepPanel->setBackground(Svg::load(asset::plugin(pluginInstance, "res/Sheep.svg"))); | |||||
| sheepPanel->box.size = box.size; | sheepPanel->box.size = box.size; | ||||
| addChild(sheepPanel); | addChild(sheepPanel); | ||||
| } | } | ||||
| @@ -260,7 +260,7 @@ struct Tides2 : Module { | |||||
| struct Tides2Widget : ModuleWidget { | struct Tides2Widget : ModuleWidget { | ||||
| Tides2Widget(Tides2* module) { | Tides2Widget(Tides2* module) { | ||||
| setModule(module); | setModule(module); | ||||
| setPanel(APP->window->loadSvg(asset::plugin(pluginInstance, "res/Tides2.svg"))); | |||||
| setPanel(Svg::load(asset::plugin(pluginInstance, "res/Tides2.svg"))); | |||||
| addChild(createWidget<ScrewSilver>(Vec(RACK_GRID_WIDTH, 0))); | addChild(createWidget<ScrewSilver>(Vec(RACK_GRID_WIDTH, 0))); | ||||
| addChild(createWidget<ScrewSilver>(Vec(box.size.x - 2 * RACK_GRID_WIDTH, 0))); | addChild(createWidget<ScrewSilver>(Vec(box.size.x - 2 * RACK_GRID_WIDTH, 0))); | ||||
| @@ -78,7 +78,7 @@ struct Veils : Module { | |||||
| struct VeilsWidget : ModuleWidget { | struct VeilsWidget : ModuleWidget { | ||||
| VeilsWidget(Veils* module) { | VeilsWidget(Veils* module) { | ||||
| setModule(module); | setModule(module); | ||||
| setPanel(APP->window->loadSvg(asset::plugin(pluginInstance, "res/Veils.svg"))); | |||||
| setPanel(Svg::load(asset::plugin(pluginInstance, "res/Veils.svg"))); | |||||
| addChild(createWidget<ScrewSilver>(Vec(15, 0))); | addChild(createWidget<ScrewSilver>(Vec(15, 0))); | ||||
| addChild(createWidget<ScrewSilver>(Vec(150, 0))); | addChild(createWidget<ScrewSilver>(Vec(150, 0))); | ||||
| @@ -130,7 +130,7 @@ struct AlgorithmLight : RedGreenBlueLight { | |||||
| struct WarpsWidget : ModuleWidget { | struct WarpsWidget : ModuleWidget { | ||||
| WarpsWidget(Warps* module) { | WarpsWidget(Warps* module) { | ||||
| setModule(module); | setModule(module); | ||||
| setPanel(APP->window->loadSvg(asset::plugin(pluginInstance, "res/Warps.svg"))); | |||||
| setPanel(Svg::load(asset::plugin(pluginInstance, "res/Warps.svg"))); | |||||
| addChild(createWidget<ScrewSilver>(Vec(15, 0))); | addChild(createWidget<ScrewSilver>(Vec(15, 0))); | ||||
| addChild(createWidget<ScrewSilver>(Vec(120, 0))); | addChild(createWidget<ScrewSilver>(Vec(120, 0))); | ||||