Browse Source

Use createPanel() in helper.py.

tags/v2.0.0
Andrew Belt 4 years ago
parent
commit
946d7b1433
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      helper.py

+ 1
- 1
helper.py View File

@@ -420,7 +420,7 @@ struct {identifier} : Module {{"""
struct {identifier}Widget : ModuleWidget {{ struct {identifier}Widget : ModuleWidget {{
{identifier}Widget({identifier}* module) {{ {identifier}Widget({identifier}* module) {{
setModule(module); setModule(module);
setPanel(APP->window->loadSvg(asset::plugin(pluginInstance, "res/{slug}.svg")));
setPanel(createPanel(asset::plugin(pluginInstance, "res/{slug}.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)));


Loading…
Cancel
Save