Browse Source

Fix draw order of Audio2 lights.

tags/v2.0.0
Andrew Belt 3 years ago
parent
commit
555a11e61e
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      src/core/Audio.cpp

+ 5
- 5
src/core/Audio.cpp View File

@@ -581,6 +581,11 @@ struct AudioWidget : ModuleWidget {
addOutput(createOutputCentered<PJ301MPort>(mm2px(Vec(7.285, 113.115)), module, TAudio::AUDIO_OUTPUTS + 0));
addOutput(createOutputCentered<PJ301MPort>(mm2px(Vec(18.122, 113.115)), module, TAudio::AUDIO_OUTPUTS + 1));

Audio2Display* display = createWidget<Audio2Display>(mm2px(Vec(0.0, 13.039)));
display->box.size = mm2px(Vec(25.4, 47.726));
display->setAudioPort(module ? &module->port : NULL);
addChild(display);

addChild(createLightCentered<SmallSimpleLight<RedLight>>(mm2px(Vec(6.691, 28.899)), module, TAudio::VU_LIGHTS + 6 * 0 + 0));
addChild(createLightCentered<SmallSimpleLight<RedLight>>(mm2px(Vec(18.709, 28.899)), module, TAudio::VU_LIGHTS + 6 * 1 + 0));
addChild(createLightCentered<SmallSimpleLight<YellowLight>>(mm2px(Vec(6.691, 34.196)), module, TAudio::VU_LIGHTS + 6 * 0 + 1));
@@ -594,11 +599,6 @@ struct AudioWidget : ModuleWidget {
addChild(createLightCentered<SmallSimpleLight<GreenLight>>(mm2px(Vec(6.691, 55.386)), module, TAudio::VU_LIGHTS + 6 * 0 + 5));
addChild(createLightCentered<SmallSimpleLight<GreenLight>>(mm2px(Vec(18.709, 55.386)), module, TAudio::VU_LIGHTS + 6 * 1 + 5));

Audio2Display* display = createWidget<Audio2Display>(mm2px(Vec(0.0, 13.039)));
display->box.size = mm2px(Vec(25.4, 47.726));
display->setAudioPort(module ? &module->port : NULL);
addChild(display);

// AudioButton example
// AudioButton* audioButton_ADAT = createWidget<AudioButton_ADAT>(Vec(0, 0));
// audioButton_ADAT->setAudioPort(module ? &module->port : NULL);


Loading…
Cancel
Save