| 561 | } |
| 562 | |
| 563 | void 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 | |
| 576 | void TitleBar::ButtonClicked(ClickButton* button, double time) |
| 577 | { |
nothing calls this directly
no test coverage detected