View Single Post
10/22/14, 10:09 PM   #4
circonian
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 613
Originally Posted by Seerah View Post
I don't know what you mean by this "when the user presses a button while the panel is still open". Even if you don't want to save the value to your saved variables file, you should still save it to *some* variable if you want to access it later.
Yeah, what I was trying probably wasn't the best way to do it. I am saving them I just didn't want the user to have access to any of it via the controls. I was trying to reuse the controls (to avoid creating a lot of duplicate settings controls) to allow them to select different groups of settings & click a button to save them. Plus once saved I didn't want them to be able to change the settings (so I didn't want the controls linked directly to the saved variables). They can only delete their preference (group of settings) and create a new one.

I realize I could just make a dummy variable for every control I have, attach the getFunc()'s & setFunc()'s to them to temporarily hold the value, read the value from the savedVariables, copy them all to my table, then reset all the controls back to the default value so they can save another group of options. I just figured since I didn't want the controls to linked to the savedVariables & I'm resetting the controls back to default everytime anyhow, I was just looking for a way to avoid using the getFunc()'s, setFunc()'s and all of those extra dummy savedVariables that would temporarily hold the values.


Thanks for your help, both of you.
  Reply With Quote