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

Method GetModuleTypeToSpawn

Source/Push2Control.cpp:1248–1257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1246}
1247
1248std::string Push2Control::GetModuleTypeToSpawn()
1249{
1250 for (int i = 0; i < mSpawnLists.GetDropdowns().size(); ++i)
1251 {
1252 if (mSpawnLists.GetDropdowns()[i]->GetList()->GetValue() != -1)
1253 return mSpawnLists.GetDropdowns()[i]->GetList()->GetDisplayValue(mSpawnLists.GetDropdowns()[i]->GetList()->GetValue());
1254 }
1255
1256 return "";
1257}
1258
1259void Push2Control::SetDisplayModule(IDrawableModule* module, bool addToHistory)
1260{

Callers

nothing calls this directly

Calls 4

sizeMethod · 0.80
GetListMethod · 0.80
GetValueMethod · 0.45
GetDisplayValueMethod · 0.45

Tested by

no test coverage detected