| 95 | } |
| 96 | |
| 97 | IDrawableModule* SpawnList::Spawn(int index) |
| 98 | { |
| 99 | if (mLabel == kPluginsDropdownLabel && index == 0) |
| 100 | { |
| 101 | TheTitleBar->ManagePlugins(); |
| 102 | return nullptr; |
| 103 | } |
| 104 | |
| 105 | IDrawableModule* module = TheSynth->SpawnModuleOnTheFly(mSpawnables[index], TheSynth->GetMouseX(TheSynth->GetRootContainer()) + kModuleGrabOffset.x, TheSynth->GetMouseY(TheSynth->GetRootContainer()) + kModuleGrabOffset.y); |
| 106 | |
| 107 | return module; |
| 108 | } |
| 109 | |
| 110 | void SpawnList::Draw() |
| 111 | { |
no test coverage detected