Browse Source

Fix panels

tags/v0.6.0
Andrew Belt 7 years ago
parent
commit
f777f62732
13 changed files with 85 additions and 12 deletions
  1. +7
    -1
      src/Blinds.cpp
  2. +7
    -1
      src/Braids.cpp
  3. +7
    -1
      src/Branches.cpp
  4. +7
    -1
      src/Clouds.cpp
  5. +7
    -1
      src/Elements.cpp
  6. +7
    -1
      src/Frames.cpp
  7. +7
    -1
      src/Kinks.cpp
  8. +7
    -1
      src/Links.cpp
  9. +7
    -1
      src/Rings.cpp
  10. +7
    -1
      src/Shades.cpp
  11. +1
    -0
      src/Tides.cpp
  12. +7
    -1
      src/Veils.cpp
  13. +7
    -1
      src/Warps.cpp

+ 7
- 1
src/Blinds.cpp View File

@@ -71,7 +71,13 @@ void Blinds::step() {

struct BlindsWidget : ModuleWidget {
BlindsWidget(Blinds *module) : ModuleWidget(module) {
setPanel(SVG::load(assetPlugin(plugin, "res/Blinds.svg")));
box.size = Vec(15*12, 380);
{
Panel *panel = new LightPanel();
panel->backgroundImage = Image::load(assetPlugin(plugin, "res/Blinds.png"));
panel->box.size = box.size;
addChild(panel);
}

addChild(Widget::create<ScrewSilver>(Vec(15, 0)));
addChild(Widget::create<ScrewSilver>(Vec(150, 0)));


+ 7
- 1
src/Braids.cpp View File

@@ -295,7 +295,13 @@ struct BraidsLowCpuItem : MenuItem {

struct BraidsWidget : ModuleWidget {
BraidsWidget(Braids *module) : ModuleWidget(module) {
setPanel(SVG::load(assetPlugin(plugin, "res/Braids.svg")));
box.size = Vec(15*16, 380);
{
Panel *panel = new LightPanel();
panel->backgroundImage = Image::load(assetPlugin(plugin, "res/Braids.png"));
panel->box.size = box.size;
addChild(panel);
}

{
BraidsDisplay *display = new BraidsDisplay();


+ 7
- 1
src/Branches.cpp View File

@@ -91,7 +91,13 @@ void Branches::step() {

struct BranchesWidget : ModuleWidget {
BranchesWidget(Branches *module) : ModuleWidget(module) {
setPanel(SVG::load(assetPlugin(plugin, "res/Branches.svg")));
box.size = Vec(15*6, 380);
{
Panel *panel = new LightPanel();
panel->backgroundImage = Image::load(assetPlugin(plugin, "res/Branches.png"));
panel->box.size = box.size;
addChild(panel);
}

addChild(Widget::create<ScrewSilver>(Vec(15, 0)));
addChild(Widget::create<ScrewSilver>(Vec(15, 365)));


+ 7
- 1
src/Clouds.cpp View File

@@ -310,7 +310,13 @@ struct CloudsWidget : ModuleWidget {
ParamWidget *reverbParam;

CloudsWidget(Clouds *module) : ModuleWidget(module) {
setPanel(SVG::load(assetPlugin(plugin, "res/Clouds.svg")));
box.size = Vec(15*18, 380);
{
Panel *panel = new LightPanel();
panel->backgroundImage = Image::load(assetPlugin(plugin, "res/Clouds.png"));
panel->box.size = box.size;
addChild(panel);
}

addChild(Widget::create<ScrewSilver>(Vec(15, 0)));
addChild(Widget::create<ScrewSilver>(Vec(240, 0)));


+ 7
- 1
src/Elements.cpp View File

@@ -229,7 +229,13 @@ struct ElementsModalItem : MenuItem {

struct ElementsWidget : ModuleWidget {
ElementsWidget(Elements *module) : ModuleWidget(module) {
setPanel(SVG::load(assetPlugin(plugin, "res/Elements.svg")));
box.size = Vec(15*34, 380);
{
Panel *panel = new LightPanel();
panel->backgroundImage = Image::load(assetPlugin(plugin, "res/Elements.png"));
panel->box.size = box.size;
addChild(panel);
}

addChild(Widget::create<ScrewSilver>(Vec(15, 0)));
addChild(Widget::create<ScrewSilver>(Vec(480, 0)));


+ 7
- 1
src/Frames.cpp View File

@@ -287,7 +287,13 @@ struct CKSSRot : SVGSwitch, ToggleSwitch {

struct FramesWidget : ModuleWidget {
FramesWidget(Frames *module) : ModuleWidget(module) {
setPanel(SVG::load(assetPlugin(plugin, "res/Frames.svg")));
box.size = Vec(15*18, 380);
{
Panel *panel = new LightPanel();
panel->backgroundImage = Image::load(assetPlugin(plugin, "res/Frames.png"));
panel->box.size = box.size;
addChild(panel);
}

addChild(Widget::create<ScrewSilver>(Vec(15, 0)));
addChild(Widget::create<ScrewSilver>(Vec(box.size.x-30, 0)));


+ 7
- 1
src/Kinks.cpp View File

@@ -70,7 +70,13 @@ void Kinks::step() {

struct KinksWidget : ModuleWidget {
KinksWidget(Kinks *module) : ModuleWidget(module) {
setPanel(SVG::load(assetPlugin(plugin, "res/Kinks.svg")));
box.size = Vec(15*4, 380);
{
Panel *panel = new LightPanel();
panel->backgroundImage = Image::load(assetPlugin(plugin, "res/Kinks.png"));
panel->box.size = box.size;
addChild(panel);
}

addChild(Widget::create<ScrewSilver>(Vec(15, 0)));
addChild(Widget::create<ScrewSilver>(Vec(15, 365)));


+ 7
- 1
src/Links.cpp View File

@@ -58,7 +58,13 @@ void Links::step() {

struct LinksWidget : ModuleWidget {
LinksWidget(Links *module) : ModuleWidget(module) {
setPanel(SVG::load(assetPlugin(plugin, "res/Links.svg")));
box.size = Vec(15*4, 380);
{
Panel *panel = new LightPanel();
panel->backgroundImage = Image::load(assetPlugin(plugin, "res/Links.png"));
panel->box.size = box.size;
addChild(panel);
}

addChild(Widget::create<ScrewSilver>(Vec(15, 0)));
addChild(Widget::create<ScrewSilver>(Vec(15, 365)));


+ 7
- 1
src/Rings.cpp View File

@@ -248,7 +248,13 @@ void Rings::step() {

struct RingsWidget : ModuleWidget {
RingsWidget(Rings *module) : ModuleWidget(module) {
setPanel(SVG::load(assetPlugin(plugin, "res/Rings.svg")));
box.size = Vec(15*14, 380);
{
Panel *panel = new LightPanel();
panel->backgroundImage = Image::load(assetPlugin(plugin, "res/Rings.png"));
panel->box.size = box.size;
addChild(panel);
}

addChild(Widget::create<ScrewSilver>(Vec(15, 0)));
addChild(Widget::create<ScrewSilver>(Vec(180, 0)));


+ 7
- 1
src/Shades.cpp View File

@@ -62,7 +62,13 @@ void Shades::step() {

struct ShadesWidget : ModuleWidget {
ShadesWidget(Shades *module) : ModuleWidget(module) {
setPanel(SVG::load(assetPlugin(plugin, "res/Shades.svg")));
box.size = Vec(15*6, 380);
{
Panel *panel = new LightPanel();
panel->backgroundImage = Image::load(assetPlugin(plugin, "res/Shades.png"));
panel->box.size = box.size;
addChild(panel);
}

addChild(Widget::create<ScrewSilver>(Vec(15, 0)));
addChild(Widget::create<ScrewSilver>(Vec(15, 365)));


+ 1
- 0
src/Tides.cpp View File

@@ -209,6 +209,7 @@ struct TidesWidget : ModuleWidget {
Panel *sheepPanel;

TidesWidget(Tides *module) : ModuleWidget(module) {
box.size = Vec(15*14, 380);
{
tidesPanel = new LightPanel();
tidesPanel->backgroundImage = Image::load(assetPlugin(plugin, "res/Tides.png"));


+ 7
- 1
src/Veils.cpp View File

@@ -70,7 +70,13 @@ void Veils::step() {

struct VeilsWidget : ModuleWidget {
VeilsWidget(Veils *module) : ModuleWidget(module) {
setPanel(SVG::load(assetPlugin(plugin, "res/Veils.svg")));
box.size = Vec(15*12, 380);
{
Panel *panel = new LightPanel();
panel->backgroundImage = Image::load(assetPlugin(plugin, "res/Veils.png"));
panel->box.size = box.size;
addChild(panel);
}

addChild(Widget::create<ScrewSilver>(Vec(15, 0)));
addChild(Widget::create<ScrewSilver>(Vec(150, 0)));


+ 7
- 1
src/Warps.cpp View File

@@ -128,7 +128,13 @@ struct AlgorithmLight : RedGreenBlueLight {

struct WarpsWidget : ModuleWidget {
WarpsWidget(Warps *module) : ModuleWidget(module) {
setPanel(SVG::load(assetPlugin(plugin, "res/Warps.svg")));
box.size = Vec(15*10, 380);
{
Panel *panel = new LightPanel();
panel->backgroundImage = Image::load(assetPlugin(plugin, "res/Blinds.png"));
panel->box.size = box.size;
addChild(panel);
}

addChild(Widget::create<ScrewSilver>(Vec(15, 0)));
addChild(Widget::create<ScrewSilver>(Vec(120, 0)));


Loading…
Cancel
Save