arkanes@54: local _, kbf = ... arkanes@54: arkanes@54: -- These are the static options which can't be displayed/used by in-game configs arkanes@54: kbf.staticConfig = {} arkanes@54: kbf.staticConfig.BAR_HEIGHT = 16 -- note that you do have to update this in the XML as well if you change it arkanes@54: kbf.staticConfig.BAR_WIDTH = 200 -- otherwise the hitbox for clicking off a buff won't be the same size as the displayed buff bar arkanes@54: arkanes@54: arkanes@54: -- default profile options arkanes@54: kbf.defaultConfig = { arkanes@54: profile = { arkanes@54: ["consolidateBuffs"] = true, arkanes@54: } arkanes@57: } arkanes@57: arkanes@57: -- AceConfig options table arkanes@57: kbf.options = { arkanes@57: type="group", arkanes@57: args={ arkanes@57: consolidateBuffs = { arkanes@57: name="Consolidate Buffs", arkanes@57: desc="Enable or disable the consolidated buff collapsing", arkanes@57: type="toggle", arkanes@57: set=function(info, val) kbf:setConsolidatedBuffs(info, val) end, arkanes@57: get=function(info) return kbf.db.profile.consolidateBuffs end arkanes@57: } arkanes@57: } arkanes@57: } arkanes@57: arkanes@57: function kbf:setConsolidatedBuffs(info, val) arkanes@57: self.db.profile.consolidateBuffs = val arkanes@57: local attr = val and "99" or nil arkanes@57: self.secureHeader:SetAttribute("consolidateTo", attr) arkanes@57: self.dirty = true -- need a rescan arkanes@57: end