debug print, but switches and attack work correctly

This commit is contained in:
Gordon JC Pearce 2025-12-20 02:12:46 +00:00
parent 6241fc233c
commit 290962bf8c
1 changed files with 3 additions and 2 deletions

View File

@ -11,7 +11,7 @@ void prepSwitch(ImageSlider* s, uint id, int x, int y) {
s->setId(id); s->setId(id);
s->setStartPos(x, y); s->setStartPos(x, y);
s->setEndPos(x, y + 13); // 34px high s->setEndPos(x, y + 13); // 34px high
s->setInverted(true); s->setInverted(false);
s->setRange(0, 1.0f); s->setRange(0, 1.0f);
s->setStep(1); s->setStep(1);
s->setValue(0); s->setValue(0);
@ -90,7 +90,7 @@ DistrhoUIPeacock::DistrhoUIPeacock() : UI(Art::backgroundWidth, Art::backgroundH
xSliderVCALevel->setCallback(this); xSliderVCALevel->setCallback(this);
xSliderAtk = new ImageSlider(this, whiteSlider); xSliderAtk = new ImageSlider(this, whiteSlider);
prepSlider(xSliderAtk, pVCALevel, 385, 261); prepSlider(xSliderAtk, pAttack, 385, 261);
xSliderAtk->setCallback(this); xSliderAtk->setCallback(this);
xSliderDcy = new ImageSlider(this, whiteSlider); xSliderDcy = new ImageSlider(this, whiteSlider);
@ -266,6 +266,7 @@ void DistrhoUIPeacock::imageSliderDragFinished(ImageSlider* slider) {
} }
void DistrhoUIPeacock::imageSliderValueChanged(ImageSlider* slider, float value) { void DistrhoUIPeacock::imageSliderValueChanged(ImageSlider* slider, float value) {
printf("setting %d to %f\n", slider->getId(), value);
setParameterValue(slider->getId(), value); setParameterValue(slider->getId(), value);
} }