Most addons nowadays have their options as part of the Interface options (Esc » Interface » Addons) This shows the list with the addons on the left and a pane next to it showing options for the relevant addon. Some more advanced addons will show a (+) icon which will give access to further option tabs for that addon. Examples are Combuctor, Overachiever, Omen and Recount.
All these addons use their own logic and addon specific code to -
- build the panels
- add the controls
- build the sub panels
I am looking for either a guide that explains how to actually write those option pages, or, preferably, a documented library that helps you write them. Tekkub has a little on (tekConfig) but I'm not sure if that's the only way to go.
There are obviously a bit more complicated things you can do with tables, that will produce better interface results. I would suggest that you take a look at the library's code plus examples in numerous addons utilizing it.
You could also take a look at Portfolio or AceConfig, as they are supposed to make the process of creating options "easier" (although I wouldn't personally advise using them, as there is more to gain doing it manually).
You can also check out the library I wrote for this, TjOptions, included with most of my addons. It includes instructions in an accompanying text file. (Download the most recent addons for the most recent released version.) It's a work-in-progress, but already does everything most addons need. Even if you decide not to use it yourself, you could check out how it does what it does.