From 290962bf8c7f1cc6640c87633a7987201642b3fc Mon Sep 17 00:00:00 2001 From: Gordon JC Pearce Date: Sat, 20 Dec 2025 02:12:46 +0000 Subject: [PATCH] debug print, but switches and attack work correctly --- plugin/ui.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugin/ui.cpp b/plugin/ui.cpp index 921c035..6ab69e9 100644 --- a/plugin/ui.cpp +++ b/plugin/ui.cpp @@ -11,7 +11,7 @@ void prepSwitch(ImageSlider* s, uint id, int x, int y) { s->setId(id); s->setStartPos(x, y); s->setEndPos(x, y + 13); // 34px high - s->setInverted(true); + s->setInverted(false); s->setRange(0, 1.0f); s->setStep(1); s->setValue(0); @@ -90,7 +90,7 @@ DistrhoUIPeacock::DistrhoUIPeacock() : UI(Art::backgroundWidth, Art::backgroundH xSliderVCALevel->setCallback(this); xSliderAtk = new ImageSlider(this, whiteSlider); - prepSlider(xSliderAtk, pVCALevel, 385, 261); + prepSlider(xSliderAtk, pAttack, 385, 261); xSliderAtk->setCallback(this); xSliderDcy = new ImageSlider(this, whiteSlider); @@ -266,6 +266,7 @@ void DistrhoUIPeacock::imageSliderDragFinished(ImageSlider* slider) { } void DistrhoUIPeacock::imageSliderValueChanged(ImageSlider* slider, float value) { + printf("setting %d to %f\n", slider->getId(), value); setParameterValue(slider->getId(), value); }