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

Method DropdownUpdated

Source/TitleBar.cpp:563–574  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

561}
562
563void TitleBar::DropdownUpdated(DropdownList* list, int oldVal, double time)
564{
565 if (list == mLoadLayoutDropdown)
566 {
567 std::string layout = mLoadLayoutDropdown->GetLabel(mLoadLayoutIndex);
568 TheSynth->LoadLayoutFromFile(ofToDataPath("layouts/" + layout + ".json"));
569 return;
570 }
571
572 for (auto* spawnList : mSpawnLists.GetDropdowns())
573 spawnList->OnSelection(list);
574}
575
576void TitleBar::ButtonClicked(ClickButton* button, double time)
577{

Callers

nothing calls this directly

Calls 4

ofToDataPathFunction · 0.85
LoadLayoutFromFileMethod · 0.80
OnSelectionMethod · 0.80
GetLabelMethod · 0.45

Tested by

no test coverage detected