You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LibDualSpec-1.0 relies on AceDB-3.0 profile switching feature. Thus, before
using this library, you should ensure your addon gracefully handles "online"
profile switching. This often means handling AceDB-3.0 profile callbacks.
Embedding LibDualSpec-1.0
Either copy the LibDualSpec-1.0.lua file in your addon folder or use the Curse
packager features.
And finally, in your addon, enhance your AceDB-3.0 database and optionally the
profile options created by AceDBOptions-3.0:
functionmyAddon:OnInitialize()
-- Initialize the AceDB-3.0 databaseself.db=LibStub('AceDB-3.0'):New("myAddonDB", myDefaults)
-- Create the profile options and add them to our option tableself.options.args.profiles=LibStub('AceDBOptions-3.0'):GetOptionsTable(self.db)
-- Add dual-spec supportlocalLibDualSpec=LibStub('LibDualSpec-1.0')
LibDualSpec:EnhanceDatabase(self.db, "myAddon")
LibDualSpec:EnhanceOptions(self.options.args.profiles, self.db)
end