| 381 | } |
| 382 | |
| 383 | void ADSRDisplay::SpawnEnvelopeEditor() |
| 384 | { |
| 385 | if (mEditor == nullptr) |
| 386 | { |
| 387 | ModuleFactory::Spawnable spawnable; |
| 388 | spawnable.mLabel = "envelopeeditor"; |
| 389 | mEditor = dynamic_cast<EnvelopeEditor*>(TheSynth->SpawnModuleOnTheFly(spawnable, -1, -1, false, "envelopepopup")); |
| 390 | mEditor->SetADSRDisplay(this); |
| 391 | } |
| 392 | if (!mEditor->IsPinned()) |
| 393 | { |
| 394 | mEditor->SetPosition(GetPosition().x + mWidth, GetPosition().y); |
| 395 | mEditor->SetOwningContainer(GetModuleParent()->GetOwningContainer()); |
| 396 | TheSynth->PushModalFocusItem(mEditor); |
| 397 | } |
| 398 | } |
| 399 | |
| 400 | void ADSRDisplay::OnClicked(float x, float y, bool right) |
| 401 | { |
no test coverage detected