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

Method LoadLayout

Source/SongBuilder.cpp:830–850  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

828}
829
830void SongBuilder::LoadLayout(const ofxJSONElement& moduleInfo)
831{
832 mModuleSaveData.LoadBool("reset_transport_every_sequencer_scene", moduleInfo, true);
833
834 if (IsSpawningOnTheFly(moduleInfo))
835 {
836 mScenes.push_back(new SongScene("off"));
837 mScenes.push_back(new SongScene("intro"));
838 mScenes.push_back(new SongScene("verse"));
839 mScenes.push_back(new SongScene("prechorus"));
840 mScenes.push_back(new SongScene("chorus"));
841 mScenes.push_back(new SongScene("bridge"));
842 mScenes.push_back(new SongScene("outro"));
843 for (auto* scene : mScenes)
844 scene->CreateUIControls(this);
845
846 RefreshSequencerDropdowns();
847 }
848
849 SetUpFromSaveData();
850}
851
852void SongBuilder::SetUpFromSaveData()
853{

Callers

nothing calls this directly

Calls 2

LoadBoolMethod · 0.80
CreateUIControlsMethod · 0.45

Tested by

no test coverage detected