Advertisement
Guest User

Untitled

a guest
Dec 2nd, 2012
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.20 KB | None | 0 0
  1. local CreateAuras = function(self, unit)
  2. local u = unit:match("[^%d]+")
  3. if multicheck(u, "target", "focus") then
  4. local Auras = CreateFrame("Frame", nil, self)
  5. Auras:SetHeight(cfg.height*2)
  6. Auras:SetWidth(cfg.width-2)
  7. Auras.gap = true
  8. Auras.disableCooldown = true
  9. if select(2, UnitClass("player")) == "MAGE" then
  10. Auras.showStealableBuffs = true
  11. end
  12. Auras.size = (cfg.width+3)/cfg.auraperrow-3
  13. Auras.spacing = 3
  14. Auras.PostCreateIcon = PostCreateIcon
  15. Auras.PostUpdateIcon = PostUpdateIcon
  16. Auras.PostUpdateGapIcon = PostUpdateGapIcon
  17.  
  18. if unit == "target" or unit == "focus" then
  19. Auras:SetPoint("BOTTOMLEFT", self, "BOTTOMLEFT", 0, -25)
  20. Auras.initialAnchor = "BOTTOMLEFT"
  21. Auras["growth-x"] = "RIGHT"
  22. Auras["growth-y"] = "DOWN"
  23. Auras.numDebuffs = cfg.auraperrow
  24. Auras.numBuffs = cfg.auraperrow
  25. if cfg.AuraFilter.ignoreBuff or cfg.AuraFilter.ignoreDebuff then
  26. Auras.CustomFilter = CustomFilter
  27. end
  28. else -- boss 1-5
  29. Auras:SetPoint("BOTTOMLEFT", self, "TOPLEFT", 1, 12)
  30. Auras.initialAnchor = "BOTTOMLEFT"
  31. Auras["growth-x"] = "RIGHT"
  32. Auras["growth-y"] = "UP"
  33. Auras.numDebuffs = 4
  34. Auras.numBuffs = 3
  35. Auras.CustomFilter = BossAuraFilter
  36. end
  37. self.Auras = Auras
  38. end
  39. end
  40.  
  41. local CreateDebuffs = function(self, unit)
  42. if unit == "player" or unit == "pet" then
  43. local Debuff = CreateFrame("Frame", nil, self)
  44. Debuff:SetHeight(cfg.height*2)
  45. Debuff:SetWidth(cfg.width-2)
  46. Debuff.disableCooldown = true
  47. Debuff.spacing = 3
  48. Debuff.PostCreateIcon = PostCreateIcon
  49. Debuff.PostUpdateIcon = PostUpdateIcon
  50. if cfg.playerdebuff.enable and unit == "player" then
  51. Debuff:SetPoint("BOTTOMLEFT", self, "TOPLEFT", 1, -90)
  52. Debuff.initialAnchor = "BOTTOMLEFT"
  53. Debuff["growth-x"] = "RIGHT"
  54. Debuff["growth-y"] = "UP"
  55. Debuff.size = (cfg.width+3)/cfg.playerdebuff.num-3
  56. Debuff.num = cfg.playerdebuff.num
  57. elseif unit == "pet" then
  58. Debuff:SetPoint("BOTTOMLEFT", self, "BOTTOMRIGHT", 5, 0)
  59. Debuff.initialAnchor = "BOTTOMLEFT"
  60. Debuff["growth-x"] = "RIGHT"
  61. Debuff["growth-y"] = "DOWN"
  62. Debuff.size = (cfg.width+3)/cfg.auraperrow-3
  63. Debuff.num = 5
  64. end
  65. self.Debuffs = Debuff
  66. end
  67. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement