Mercurial > wow > reaction
comparison Profile.lua @ 220:a4e7475633b3
un-namespace action button config
author | Flick <flickerstreak@gmail.com> |
---|---|
date | Sun, 21 Nov 2010 10:40:54 -0800 |
parents | 258ca67bde4a |
children | bb13624de7e1 |
comparison
equal
deleted
inserted
replaced
219:a5d91d7fd485 | 220:a4e7475633b3 |
---|---|
41 bar.ButtonFacade = bf.profile[name] or bar.ButtonFacade | 41 bar.ButtonFacade = bf.profile[name] or bar.ButtonFacade |
42 end | 42 end |
43 bf:ResetProfile() | 43 bf:ResetProfile() |
44 end | 44 end |
45 | 45 |
46 -- (4) Action is no longer a module, uses the bar config directly | |
47 local action = db:GetNamespace("Action",true) or db:RegisterNamespace("Action") | |
48 if action then | |
49 for name, ac in pairs(action.profile.bars) do | |
50 local c = db.profile.bars[name] | |
51 if c then | |
52 for key, value in pairs(ac) do | |
53 c[key] = value | |
54 end | |
55 end | |
56 end | |
57 action:ResetProfile() | |
58 end | |
59 | |
46 db.profile.dbversion = 1 | 60 db.profile.dbversion = 1 |
47 end | 61 end |
48 | 62 |
49 db.profile.dbversion = self.PROFILEVERSION_LATEST | 63 db.profile.dbversion = self.PROFILEVERSION_LATEST |
50 end | 64 end |