- setup the toc to properly strip out embeds.xml whenever it's building a no-lib version. wow, this has been broken forever. nice.

- added support for LibDualSpec-1.0
- wrapped a bit of debug code in --@debug@
This commit is contained in:
Parnic
2010-09-25 18:31:57 +00:00
parent 1af2c4d831
commit cdba966618
4 changed files with 16 additions and 1 deletions

View File

@ -901,7 +901,16 @@ function IceHUD:OnInitialize()
self:GenerateModuleOptions(true)
self.options.args.colors.args = self.IceCore:GetColorOptions()
self.options.args.profiles = LibStub("AceDBOptions-3.0"):GetOptionsTable(self.db)
-- Add dual-spec support
local LibDualSpec = LibStub('LibDualSpec-1.0', true)
if LibDualSpec then
LibDualSpec:EnhanceDatabase(self.db, "IceHUD")
LibDualSpec:EnhanceOptions(self.options.args.profiles, self.db)
end
--@debug@
self:SetupProfileImportButtons()
--@end-debug@
LibStub("AceConfig-3.0"):RegisterOptionsTable("IceHUD", self.options, "/icehudcl")