Skip to content

Commit

Permalink
move some stuff a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamPorcineFudgepuppy committed Nov 22, 2024
1 parent 61e9f0b commit 462ee8d
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/ComputerscareCondense.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@ struct CondenseModule : ComputerscareMenuParamModule {
return;
}

float condenseX = widgetPosition->x; // Right edge of the CondenseModule
float condenseY = widgetPosition->y + 30.f; // Y position of the CondenseModule
float condenseX = widgetPosition->x + widgetSize->x; // Right edge of the CondenseModule
// float condenseX = widgetPosition->x; // Left edge of the CondenseModule
float condenseY = widgetPosition->y; // Y position of the CondenseModule

//gather info
for (auto widget : APP->scene->rack->getSelected()) {
Expand All @@ -71,23 +72,22 @@ struct CondenseModule : ComputerscareMenuParamModule {
upmostY = std::max(upmostY, widget->box.pos.y);


// widget->setVisible(!currentState);
//widget->setVisible(false);
visibilityMap[moduleId] = !currentState;




}
}

// Toggle positions
DEBUG("allAligned: %i", allAligned);
float modX = 0.f;
for (auto widget : APP->scene->rack->getSelected()) {
if (widget && widget->module) {
int moduleId = widget->module->id;
widget->box.pos.x = condenseX;
widget->box.pos.x = condenseX+modX;
widget->box.pos.y = condenseY;
widget->box.size.x = 0.f;
widget->box.size.x = 34.f;
modX += 34.f;
//widget->setVisible(false);
}
}

Expand Down Expand Up @@ -146,7 +146,7 @@ struct CondenseModule : ComputerscareMenuParamModule {

DEBUG("Module %d Input %d: %s ", mod->id, i, "tird");
//inputWidget->setPosition(Vec(inputX,inputOffsetY)); // Move widget
inputWidget->setPosition(Vec(inputX, inputOffsetY));
inputWidget->setPosition(Vec(0, inputOffsetY));
inputOffsetY += dInputY; // Space between input jacks
} else {
DEBUG("no input jack");
Expand Down

0 comments on commit 462ee8d

Please sign in to comment.