I'm trying to create some thing similar to sFilter's Pop-up notification for on use abilities such as Sword and Board or Shadow Trance. I've tried several avenues with no success. My most recent attempt was using oUF_AuraWatch. I followed the template but nothing happens. Here is the code if anyone can help me out it would be greatly appreciated. If there is a better way to do this please let me know. I'm still fairly new to coding things but I have a decent understanding of what is going on.
Code:
lib.createAuraWatchs = function(self)
local auras = {}
local spellIDs = {
DEATHKNIGHT = {
59052, -- Rime (Freezing Fog)
51124, -- Killing Machine
},
DRUID = {
93400, -- Shooting Stars (Starsurge instant)
},
HUNTER = {
56453, -- Lock and Load
},
MAGE = {
79683, -- Arcane Missiles! (Arcane)
48108, -- Hot Streak (Fire)
44544, -- Fingers of Frost (Frost)
12536, -- Clear Casting
87098, -- Invocation (Arcane)
83582, -- Pyromaniac (Fire)
},
PALADIN = {
},
PRIEST = {
},
ROGUE = {
},
SHAMAN = {
},
WARLOCK = {
18095, -- Shadow Trance (Affliction)
47195, -- Eradication (Affliction)
47383, -- Molten Core (Demonology)
63158, -- Decimation (Demonology)
54277, --Backdraft (Destruction)
85383, -- Improved Soulfire (Destruction)
},
WARRIOR = {
50227, -- Sword and Board (Protection)
46916, -- Bloodsurge (Fury)
60503, -- Taste of Blood (Arms)
52437, -- Sudden Death (Arms)
},
}
auras.presentAlpha = 1
auras.missingAlpha = 0
auras.onlyShowPresent = true
auras.strictMatching = 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(72)
icon:SetHeight(72)
icon:SetPoint("CENTER", UIParent, "CENTER", -170, -80 * i)
auras.icons[sid] = icon
-- Set any other AuraWatch icon settings
end
self.AuraWatchs = auras
end
Thanks,
Kraut