View Single Post
09-03-20, 01:46 PM   #7
benots4
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Aug 2009
Posts: 20
AMine is the name of the addon. AMineDB is the name of the options file. I moved the init functions from the AMine:OnItitialize() to AMine:OnEnable(). No effect. the init code is

Code:
function AMine:OnEnable()
    --initialize Saved Variables and other start up tasks
	self.db = LibStub("AceDB-3.0"):New("AMineDB", defaults) 	
	self.profileOptions = LibStub("AceDBOptions-3.0"):GetOptionsTable(self.db);
	LibStub("AceConfig-3.0"):RegisterOptionsTable("Profiles", self.profileOptions);

	self.myOptions = LibStub("AceDBOptions-3.0"):GetOptionsTable(myOptionsTable);
	LibStub("AceConfig-3.0"):RegisterOptionsTable(THISAP, myOptionsTable);	
	self.myOptions.general = LibStub("AceConfigDialog-3.0"):AddToBlizOptions(THISAP, nil, nil,"general")  
	self.myOptions.buh = LibStub("AceConfigDialog-3.0"):AddToBlizOptions(THISAP, "buh", THISAP, "spellsels");
	self.profilesFrame = LibStub("AceConfigDialog-3.0"):AddToBlizOptions("Profiles", "Profiles", THISAP);
AMine = LibStub("AceAddon-3.0"):NewAddon("AMine")

elseif event == "PLAYER_LOGIN" then
AMineDB = copyDefaults(defaults, AMineDB)

looking at the savedvariables file
AMineDB = {
["profileKeys"] = {
["Meanasis - Hydraxis"] = "Meanasis - Hydraxis",
["Ignutez - Hydraxis"] = "Ignutez - Hydraxis",
},
["profiles"] = {...
  Reply With Quote