Thread Tools Display Modes
11-07-10, 10:45 AM   #1
Sauerkraut
A Wyrmkin Dreamwalker
 
Sauerkraut's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 52
Trying to create a popup for on use buffs...

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
  Reply With Quote
11-07-10, 11:06 AM   #2
Rostok
A Flamescale Wyrmkin
Join Date: Jul 2008
Posts: 127
You could take a look at GoodNewsEveryone by tekkub here on WoWI.
  Reply With Quote
11-07-10, 11:59 AM   #3
Sauerkraut
A Wyrmkin Dreamwalker
 
Sauerkraut's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 52
Thanks for the info Rostok, but I already have the functionality with sFilter. I just don't see the point in using a separate addon if I can do the same thing from within oUF.
  Reply With Quote
11-07-10, 12:26 PM   #4
Rostok
A Flamescale Wyrmkin
Join Date: Jul 2008
Posts: 127
And you shouldn't bother having a separate addon if the original one is efficient ^^
You won't gain anything in doing it via oUF.
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » Trying to create a popup for on use buffs...

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off