Browse Source

Hide Sheep panel on Tides in browser.

v2
Andrew Belt 3 years ago
parent
commit
02d4601f11
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      src/Tides.cpp

+ 3
- 2
src/Tides.cpp View File

@@ -225,6 +225,7 @@ struct TidesWidget : ModuleWidget {
sheepPanel = new SvgPanel(); sheepPanel = new SvgPanel();
sheepPanel->setBackground(Svg::load(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;
sheepPanel->hide();
addChild(sheepPanel); addChild(sheepPanel);
} }


@@ -268,8 +269,8 @@ struct TidesWidget : ModuleWidget {
Tides* module = dynamic_cast<Tides*>(this->module); Tides* module = dynamic_cast<Tides*>(this->module);


if (module) { if (module) {
tidesPanel->visible = !module->sheep;
sheepPanel->visible = module->sheep;
tidesPanel->setVisible(!module->sheep);
sheepPanel->setVisible(module->sheep);
} }


ModuleWidget::step(); ModuleWidget::step();


Loading…
Cancel
Save