WoWInterface - View Single Post - Ace3 RegisterOptionsTable Help
View Single Post
09-03-16, 04:40 PM   #1
A Chromatic Dragonspawn
AddOn Author - Click to view addons
Join Date: Mar 2005
Posts: 191
Ace3 RegisterOptionsTable Help

I am one of the authors of Skillet. Skillet has a plugin interface where each plugin is independent and contains the code below. This results in the options table having one line for each addon as shown in the attached image.

Since the actual options / details of each plugin line are small (one or two items), I would prefer that there be one main line on the left titled "Plugins" and then all of the plugin's options appear on the single page.

Is there a way I can code each individual plugin so that this happens?

plugin.options =
	type = 'group',
	name = "TheUndermineJournal",
	order = 1,
	args = {
		enabled = {
			type = "toggle",
			name = L["Enabled"],
			get = function()
				return Skillet.db.profile.plugins.TUJ.enabled
			set = function(self,value)
				Skillet.db.profile.plugins.TUJ.enabled = value
			width = "double",
			order = 1
	local acecfg = LibStub("AceConfig-3.0")
	acecfg:RegisterOptionsTable("Skillet TheUndermineJournal", plugin.options)
	local acedia = LibStub("AceConfigDialog-3.0")
	acedia:AddToBlizOptions("Skillet TheUndermineJournal", "TheUndermineJournal", "Skillet")
Click image for larger version

Name:	SkilletOptions.jpg
Views:	156
Size:	29.0 KB
ID:	8802
  Reply With Quote