Update Fundamental and Rack

Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2021-12-18 20:05:40 +00:00
parent 3943e4c1e9
commit fd1de47874
No known key found for this signature in database
GPG key ID: CDBAA37ABC74FBA0
6 changed files with 45 additions and 32 deletions

View file

@ -174,6 +174,14 @@ struct FileButton : MenuButton {
patchUtils::revertDialog();
}, APP->patch->path.empty()));
menu->addChild(new ui::MenuSeparator);
// Load selection
menu->addChild(createMenuItem("Import selection", "", [=]() {
// APP->scene->rack->loadSelectionDialog();
patchUtils::loadSelectionDialog();
}, false, true));
if (isStandalone) {
menu->addChild(new ui::MenuSeparator);
@ -325,13 +333,19 @@ struct CableTensionQuantity : Quantity {
return settings::cableTension;
}
float getDefaultValue() override {
return 0.5;
return 0.75;
}
float getDisplayValue() override {
return getValue() * 100;
}
void setDisplayValue(float displayValue) override {
setValue(displayValue / 100);
}
std::string getLabel() override {
return "Cable tension";
}
int getDisplayPrecision() override {
return 2;
std::string getUnit() override {
return "%";
}
};
struct CableTensionSlider : ui::Slider {