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

Method DropdownUpdated

Source/ModuleSaveDataPanel.cpp:398–411  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

396}
397
398void ModuleSaveDataPanel::DropdownUpdated(DropdownList* list, int oldVal, double time)
399{
400 for (auto iter = mStringDropdowns.begin(); iter != mStringDropdowns.end(); ++iter)
401 {
402 if (list == iter->first)
403 {
404 ModuleSaveData::SaveVal* save = iter->second;
405 StringCopy(save->mString, list->GetLabel(save->mInt).c_str(), MAX_TEXTENTRY_LENGTH);
406 }
407 }
408
409 if (list == mPresetFileSelector)
410 mPresetFileUpdateQueued = true;
411}
412
413void ModuleSaveDataPanel::RefreshPresetFiles()
414{

Callers

nothing calls this directly

Calls 2

StringCopyFunction · 0.85
GetLabelMethod · 0.45

Tested by

no test coverage detected