Mercurial > wow > reaction
comparison Profile.lua @ 221:bb13624de7e1
un-namespace Bag bar config
| author | Flick <flickerstreak@gmail.com> |
|---|---|
| date | Sun, 21 Nov 2010 12:51:24 -0800 |
| parents | a4e7475633b3 |
| children | d08a74e86c96 |
comparison
equal
deleted
inserted
replaced
| 220:a4e7475633b3 | 221:bb13624de7e1 |
|---|---|
| 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 | 46 -- (4) Action module uses the bar config directly |
| 47 local action = db:GetNamespace("Action",true) or db:RegisterNamespace("Action") | 47 local action = db:GetNamespace("Action",true) or db:RegisterNamespace("Action") |
| 48 if action then | 48 if action then |
| 49 for name, ac in pairs(action.profile.bars) do | 49 for name, ac in pairs(action.profile.bars) do |
| 50 local c = db.profile.bars[name] | 50 local c = db.profile.bars[name] |
| 51 if c then | 51 if c then |
| 55 end | 55 end |
| 56 end | 56 end |
| 57 action:ResetProfile() | 57 action:ResetProfile() |
| 58 end | 58 end |
| 59 | 59 |
| 60 -- (5) Bags module uses the bar config directly | |
| 61 local bag = db:GetNamespace("Bag",true) or db:RegisterNamespace("Bag") | |
| 62 if bag then | |
| 63 for name, bc in pairs(bag.profile.buttons) do | |
| 64 local c = db.profile.bars[name] | |
| 65 c.buttons = bc | |
| 66 end | |
| 67 bag:ResetProfile() | |
| 68 end | |
| 69 | |
| 60 db.profile.dbversion = 1 | 70 db.profile.dbversion = 1 |
| 61 end | 71 end |
| 62 | 72 |
| 63 db.profile.dbversion = self.PROFILEVERSION_LATEST | 73 db.profile.dbversion = self.PROFILEVERSION_LATEST |
| 64 end | 74 end |
