Mercurial > wow > buffalo2
comparison BuffFrame/RaidBuffTray.lua @ 52:5db587de8feb
really fixing raidbuffs position
| author | Nenue |
|---|---|
| date | Fri, 29 Apr 2016 11:04:42 -0400 |
| parents | 16465f3fd919 |
| children | 5cedcb683eda |
comparison
equal
deleted
inserted
replaced
| 51:4586229986e6 | 52:5db587de8feb |
|---|---|
| 231 return | 231 return |
| 232 --- ENDS HERE IF NOT SHOWING CONSOLIDATED FRAME | 232 --- ENDS HERE IF NOT SHOWING CONSOLIDATED FRAME |
| 233 end | 233 end |
| 234 | 234 |
| 235 local c = Aura.displays.ConsolidatedBuff.conf | 235 local c = Aura.displays.ConsolidatedBuff.conf |
| 236 if CanShowConsolidated() and not parentFrame.contains then | 236 if CanShowConsolidated() then |
| 237 raidBuffsInitialized = true | 237 |
| 238 print('re-flagging parent', parentFrame:GetName()) | 238 if not parentFrame.contains then |
| 239 parentFrame.contains = parentFrame | 239 raidBuffsInitialized = true |
| 240 Aura.decors[c.Parent][c.Position]:Hide() | 240 print('re-flagging parent', parentFrame:GetName()) |
| 241 parentFrame.contains = parentFrame | |
| 242 Aura.decors[c.Parent][c.Position]:Hide() | |
| 243 | |
| 244 -- make sure parent icon is updated | |
| 245 local w = c.Size*c.PerRow+c.Spacing*(c.PerRow-1)+c.Border*2 | |
| 246 parentFrame:SetSize(w, w) | |
| 247 parentFrame.icon:SetSize(w - c.Border*2, w - c.Border*2) | |
| 248 parentFrame.contains = raidbuffsFrame | |
| 249 end | |
| 250 | |
| 241 raidbuffsFrame:SetPoint('TOPRIGHT', parentFrame, 'TOPRIGHT') | 251 raidbuffsFrame:SetPoint('TOPRIGHT', parentFrame, 'TOPRIGHT') |
| 242 raidbuffsFrame:Show() | 252 raidbuffsFrame:Show() |
| 243 | |
| 244 -- make sure parent icon is updated | |
| 245 local w = c.Size*c.PerRow+c.Spacing*(c.PerRow-1)+c.Border*2 | |
| 246 parentFrame:SetSize(w, w) | |
| 247 parentFrame.icon:SetSize(w - c.Border*2, w - c.Border*2) | |
| 248 parentFrame.contains = raidbuffsFrame | |
| 249 | 253 |
| 250 Aura.UpdateBuffs(c.Parent) | 254 Aura.UpdateBuffs(c.Parent) |
| 251 end | 255 end |
| 252 | 256 |
| 253 -- have to loop again due to tainting restrictions | 257 -- have to loop again due to tainting restrictions |
