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

Method LoadLayout

Source/Selector.cpp:123–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121}
122
123void Selector::LoadLayout(const ofxJSONElement& moduleInfo)
124{
125 mModuleSaveData.LoadInt("num_items", moduleInfo, 2, 1, 99, K(isTextField));
126
127 if (!moduleInfo["uicontrols"].isNull()) //handling for older revision loading
128 mModuleSaveData.SetInt("num_items", (int)moduleInfo["uicontrols"].size());
129
130 SetUpFromSaveData();
131}
132
133void Selector::SetUpFromSaveData()
134{

Callers

nothing calls this directly

Calls 3

LoadIntMethod · 0.80
SetIntMethod · 0.80
sizeMethod · 0.80

Tested by

no test coverage detected