Mercurial > wow > buffalo2
comparison BuffFrame/RaidBuffTray.lua @ 53:5cedcb683eda
more consolidate buffs fixing
author | Nenue |
---|---|
date | Fri, 29 Apr 2016 17:06:48 -0400 |
parents | 5db587de8feb |
children | 07ef62fe201f |
comparison
equal
deleted
inserted
replaced
52:5db587de8feb | 53:5cedcb683eda |
---|---|
201 end | 201 end |
202 | 202 |
203 local missingTypes = {} | 203 local missingTypes = {} |
204 local raidBuffsInitialized | 204 local raidBuffsInitialized |
205 Aura.UpdateRaidBuffs = function() | 205 Aura.UpdateRaidBuffs = function() |
206 | |
207 local c = Aura.displays.ConsolidatedBuff.conf | |
208 local anchor = _G[c.Parent..'Anchor'] | |
206 local print = xprint | 209 local print = xprint |
207 if not consolidatedBuffsLoaded then | 210 if not consolidatedBuffsLoaded then |
208 Aura.SetConsolidatedBuffs() | 211 Aura.SetConsolidatedBuffs() |
209 end | 212 end |
210 | 213 |
222 end | 225 end |
223 if parentFrame then | 226 if parentFrame then |
224 print(c.Parent, c.Position) | 227 print(c.Parent, c.Position) |
225 print('de-flagging parent') | 228 print('de-flagging parent') |
226 parentFrame.contains = nil | 229 parentFrame.contains = nil |
227 end | 230 anchor.contains = nil |
228 raidbuffsFrame:Hide() | 231 end |
229 end | 232 end |
230 | 233 |
234 raidbuffsFrame:Hide() | |
231 return | 235 return |
232 --- ENDS HERE IF NOT SHOWING CONSOLIDATED FRAME | 236 --- ENDS HERE IF NOT SHOWING CONSOLIDATED FRAME |
233 end | 237 end |
234 | 238 |
235 local c = Aura.displays.ConsolidatedBuff.conf | |
236 if CanShowConsolidated() then | 239 if CanShowConsolidated() then |
237 | 240 |
238 if not parentFrame.contains then | 241 if not parentFrame.contains then |
239 raidBuffsInitialized = true | 242 raidBuffsInitialized = true |
240 print('re-flagging parent', parentFrame:GetName()) | 243 print('re-flagging parent', parentFrame:GetName()) |
241 parentFrame.contains = parentFrame | 244 parentFrame.contains = raidbuffsFrame |
245 anchor.contains = raidbuffsFrame | |
242 Aura.decors[c.Parent][c.Position]:Hide() | 246 Aura.decors[c.Parent][c.Position]:Hide() |
243 | 247 |
244 -- make sure parent icon is updated | 248 -- make sure parent icon is updated |
245 local w = c.Size*c.PerRow+c.Spacing*(c.PerRow-1)+c.Border*2 | 249 local w = c.Size*c.PerRow+c.Spacing*(c.PerRow-1)+c.Border*2 |
246 parentFrame:SetSize(w, w) | 250 parentFrame:SetSize(w, w) |