Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local AWPostCreateIcon = function(AWatch, icon, spellID, name, self)
- icon.cd:SetReverse(true)
- local count = lib.gen_fontstring(icon, cfg.font, cfg.fontsize, "OUTLINEMONOCHROME")
- count:SetPoint("CENTER", icon, "BOTTOM", 3, 3)
- icon.count = count
- local h = CreateFrame("Frame", nil, icon)
- h:SetFrameLevel(4)
- h:SetPoint("TOPLEFT",-3,3)
- h:SetPoint("BOTTOMRIGHT",3,-3)
- end
- lib.createAuraWatch = function(self, unit)
- if cfg.showAuraWatch then
- local auras = {}
- local spellIDs = {
- DEATHKNIGHT = {
- },
- DRUID = {
- 33763, -- Lifebloom
- 8936, -- Regrowth
- 774, -- Rejuvenation
- 48438, -- Wild Growth
- },
- HUNTER = {
- 34477, -- Misdirection
- },
- MAGE = {
- 1459, -- Arcane Brilliance
- },
- PALADIN = {
- 53563, -- Beacon of Light
- 25771, -- Forbearance
- },
- PRIEST = {
- 17, -- Power Word: Shield
- 139, -- Renew
- 33076, -- Prayer of Mending
- },
- ROGUE = {
- 57934, -- Tricks of the Trade
- },
- SHAMAN = {
- 974, -- Earth Shield
- 61295, -- Riptide
- },
- WARLOCK = {
- 20707, -- Soulstone Resurrection
- },
- WARRIOR = {
- 114030, -- Vigilance
- },
- }
- auras.onlyShowPresent = true
- auras.anyUnit = true
- auras.PostCreateIcon = AWPostCreateIcon
- -- Set any other AuraWatch settings
- auras.icons = {}
- for i, sid in pairs(spellIDs[playerClass]) do
- local icon = CreateFrame("Frame", nil, self)
- icon.spellID = sid
- -- set the dimensions and positions
- icon:SetWidth(16)
- icon:SetHeight(16)
- icon:SetFrameLevel(5)
- icon:SetPoint("TOPRIGHT", self, "TOPLEFT", 9 * i, 1)
- auras.icons[sid] = icon
- end
- self.AuraWatch = auras
- end
- end
Add Comment
Please, Sign In to add comment