MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / Spawn

Method Spawn

Source/TitleBar.cpp:97–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97IDrawableModule* 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
110void SpawnList::Draw()
111{

Callers 1

PollMethod · 0.45

Calls 5

ManagePluginsMethod · 0.80
SpawnModuleOnTheFlyMethod · 0.80
GetRootContainerMethod · 0.80
GetMouseXMethod · 0.45
GetMouseYMethod · 0.45

Tested by

no test coverage detected