Mercurial > wow > kbf
comparison config.lua @ 57:4d359ee4649c
enable config option/gui for consolidated buff option
author | Chris Mellon <arkanes@gmail.com> |
---|---|
date | Wed, 13 Jul 2011 22:25:52 -0500 |
parents | c4324144d380 |
children |
comparison
equal
deleted
inserted
replaced
56:4403bc0ec643 | 57:4d359ee4649c |
---|---|
10 kbf.defaultConfig = { | 10 kbf.defaultConfig = { |
11 profile = { | 11 profile = { |
12 ["consolidateBuffs"] = true, | 12 ["consolidateBuffs"] = true, |
13 } | 13 } |
14 } | 14 } |
15 | |
16 -- AceConfig options table | |
17 kbf.options = { | |
18 type="group", | |
19 args={ | |
20 consolidateBuffs = { | |
21 name="Consolidate Buffs", | |
22 desc="Enable or disable the consolidated buff collapsing", | |
23 type="toggle", | |
24 set=function(info, val) kbf:setConsolidatedBuffs(info, val) end, | |
25 get=function(info) return kbf.db.profile.consolidateBuffs end | |
26 } | |
27 } | |
28 } | |
29 | |
30 function kbf:setConsolidatedBuffs(info, val) | |
31 self.db.profile.consolidateBuffs = val | |
32 local attr = val and "99" or nil | |
33 self.secureHeader:SetAttribute("consolidateTo", attr) | |
34 self.dirty = true -- need a rescan | |
35 end |