Posted by nuttyprot on Fri, 26 Feb 2010 16:52:57
Ok I'm trying to add options to my addon. But I can't for the life of me work out how to save settings. The / commands work fine toggle on and off the functions ( i intend to add more but I want make sure base is sorted first) but how do i go about saving the settings. Would some1 be so kind as to take a look at the code and maybe show me what i need to do please as i am very lost and tried so many things. What i need is if no settings found to use default settings but when some1 changes a setting via the /command it saves it so they don't have to reselect settings next time the log on. Thank you for you're time
I've pasted the code on pastey.net: http://pastey.net/133523
Posted by jnwhiteh on Fri, 26 Feb 2010 21:53:00
What you're asking for doesn't have a simple answer. There's a reason libraries like AceDB exist to make the process of working with default settings easier. I suggest you take a look at that library, or simplify your problem.