I’m not sure I understand - are you saying that this works with some UI elements (which ones?), but not with ButtonSlider?
At a quick glance at the source code on github, I couldn’t find an implementation of loadSettings for ButtonSlider which is doing anything, so no wonder it doesn’t work.
hi!
Yes, this works for addTextDropDown (threshold mode) and addToggle loadSettings, but not for addButtonSlider with the LoadSettings fucntion or trying directly with getValue function.
gui.getValueF("BG_THRESHOLD", 0);
Just recorver the default value from addButtonSlider and not the value inside the XML
I couldn’t find an implementation of loadSettings for ButtonSlider which is doing anything, so no wonder it doesn’t work.
but at loadSettings, is getValue"type" functions used to recover data. and at the XML the data are well saved…
I’m not sure what you mean… Don’t use the addButtonSlider function and try another way. Which one?
The code is the same as is post at ofxControlPannel-example, just I would like to load automatically the threshold saved from the xml panel when the app re-starts again, what I guess is more practise to save the last right data, such as the other options from panel.