--[[ Description of pluign, purpose, usage and so on]]-------------------------------------- Create pluginlocalplugin=RW:Plugin([PluginName])ifnotpluginthenreturnend------------------------------------ Locals localAceGUI=LibStub("AceGUI-3.0")localdefaults={profile={PluginEnabled=true,}}------------------------------------ Initfunctionplugin:OnRegister()self.db=RW.db:RegisterNamespace([PluginName],defaults)db=self.db.profileself.db.RegisterCallback(self,"OnProfileChanged","Reset")self.db.RegisterCallback(self,"OnProfileCopied","Reset")self.db.RegisterCallback(self,"OnProfileReset","Reset")endfunctionplugin:PluginEnable()ifnotdb.PluginEnabledthenself:Disable()returnendendfunctionplugin:PluginDisable()endfunctionplugin:Reset()db=self.db.profileend-- If options is a function then the expected return value(s) is of AceGUI-widget types-- else if should be an AceConfig options table.functionplugin:GetOptions()return[order],"Category1","Category2","pluginName",options,iconend
Comments
To post a comment, please login or register a new account.
Comments