Mercurial > wow > buffalo2
comparison BuffFrame/RaidBuffTray.lua @ 48:9837069e366a
move BuffFrame-specific things out of Veneer.lua
straighten out table hierarchy for BuffFrame module
| author | Nenue |
|---|---|
| date | Thu, 28 Apr 2016 06:58:13 -0400 |
| parents | 1a322b92dbfa |
| children | 16465f3fd919 |
comparison
equal
deleted
inserted
replaced
| 47:1a322b92dbfa | 48:9837069e366a |
|---|---|
| 58 icon:SetDesaturated(styleset.SetDesaturated) | 58 icon:SetDesaturated(styleset.SetDesaturated) |
| 59 end | 59 end |
| 60 | 60 |
| 61 --- Populates a list of targets needing a buff, fired by a handler | 61 --- Populates a list of targets needing a buff, fired by a handler |
| 62 local PlayerBuffTodo ={} | 62 local PlayerBuffTodo ={} |
| 63 local PlayerBuffStatus = {} | |
| 64 local UnitClass, IsInGroup, GetNumGroupMembers, UnitAura = UnitClass, IsInGroup, GetNumGroupMembers, UnitAura | |
| 65 local GetTalentInfoByID, GetActiveSpecGroup, GetStablePetInfo, GetSpecialization = GetTalentInfoByID, GetActiveSpecGroup, GetStablePetInfo, GetSpecialization | |
| 63 M.UpdateBuffStatus = function(aura, filters) | 66 M.UpdateBuffStatus = function(aura, filters) |
| 64 if not PlayerBuffStatus[aura] then | 67 if not PlayerBuffStatus[aura] then |
| 65 PlayerBuffStatus[aura] = {} | 68 PlayerBuffStatus[aura] = {} |
| 66 end | 69 end |
| 67 | 70 |
| 173 end | 176 end |
| 174 | 177 |
| 175 -- Called once to setup the ConsolidatedBuffs stencil | 178 -- Called once to setup the ConsolidatedBuffs stencil |
| 176 local consolidatedBuffsLoaded | 179 local consolidatedBuffsLoaded |
| 177 M.SetConsolidatedBuffs = function() | 180 M.SetConsolidatedBuffs = function() |
| 181 local displays = M.displays | |
| 178 local print = fprint() | 182 local print = fprint() |
| 179 c = displays.ConsolidatedBuff.conf | 183 c = displays.ConsolidatedBuff.conf |
| 180 parentFrame = B.guides[c.Parent][c.Position] | 184 parentFrame = M.guides[c.Parent][c.Position] |
| 181 raidbuffsFrame = B.anchor.ConsolidatedBuff | 185 raidbuffsFrame = M.anchors.ConsolidatedBuff |
| 182 | 186 |
| 183 B.SetConfigLayers(raidbuffsFrame) | 187 B.SetConfigLayers(raidbuffsFrame) |
| 184 consolidatedBuffsLoaded = true | 188 consolidatedBuffsLoaded = true |
| 185 ConsolidatedBuffs:ClearAllPoints() | 189 ConsolidatedBuffs:ClearAllPoints() |
| 186 ConsolidatedBuffs:SetAllPoints(parentFrame.icon) | 190 ConsolidatedBuffs:SetAllPoints(parentFrame.icon) |
