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

Method OnSelection

Source/TitleBar.cpp:86–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86void SpawnList::OnSelection(DropdownList* list)
87{
88 if (list == mSpawnList)
89 {
90 IDrawableModule* module = Spawn(mSpawnIndex);
91 if (module != nullptr)
92 TheSynth->SetMoveModule(module, kModuleGrabOffset.x, kModuleGrabOffset.y, true);
93 mSpawnIndex = -1;
94 }
95}
96
97IDrawableModule* SpawnList::Spawn(int index)
98{

Callers 1

DropdownUpdatedMethod · 0.80

Calls 1

SetMoveModuleMethod · 0.80

Tested by

no test coverage detected