Browse Source

Update Frames and Warps lights to new API

tags/v0.5.0
Andrew Belt 7 years ago
parent
commit
659e80afda
2 changed files with 14 additions and 16 deletions
  1. +7
    -8
      src/Frames.cpp
  2. +7
    -8
      src/Warps.cpp

+ 7
- 8
src/Frames.cpp View File

@@ -304,14 +304,13 @@ FramesWidget::FramesWidget() {
addChild(createLight<SmallLight<GreenLight>>(Vec(165, 101), module, Frames::GAIN1_LIGHT + 2));
addChild(createLight<SmallLight<GreenLight>>(Vec(232, 101), module, Frames::GAIN1_LIGHT + 3));
addChild(createLight<MediumLight<GreenLight>>(Vec(61, 155), module, Frames::EDIT_LIGHT));
{
RedGreenBlueLight *framesLight = new RedGreenBlueLight();
framesLight->box.pos = Vec(100, 126);
framesLight->box.size = Vec(71, 71);
framesLight->module = module;
framesLight->lightId = Frames::FRAME_LIGHT;
addChild(framesLight);
}

struct FrameLight : RedGreenBlueLight {
FrameLight() {
box.size = Vec(71, 71);
}
};
addChild(createLight<FrameLight>(Vec(100, 126), module, Frames::FRAME_LIGHT));
}




+ 7
- 8
src/Warps.cpp View File

@@ -156,12 +156,11 @@ WarpsWidget::WarpsWidget() {
addOutput(createOutput<PJ301MPort>(Vec(116, 316), module, Warps::AUX_OUTPUT));

addChild(createLight<SmallLight<GreenRedLight>>(Vec(20, 167), module, Warps::CARRIER_GREEN_LIGHT));
{
RedGreenBlueLight *algorithmLight = new RedGreenBlueLight();
algorithmLight->box.pos = Vec(40, 63);
algorithmLight->box.size = Vec(71, 71);
algorithmLight->module = module;
algorithmLight->lightId = Warps::ALGORITHM_LIGHT;
addChild(algorithmLight);
}

struct AlgorithmLight : RedGreenBlueLight {
AlgorithmLight() {
box.size = Vec(71, 71);
}
};
addChild(createLight<AlgorithmLight>(Vec(40, 63), module, Warps::ALGORITHM_LIGHT));
}

Loading…
Cancel
Save