View Single Post
02-22-10, 09:34 AM   #5
Rostok
A Flamescale Wyrmkin
Join Date: Jul 2008
Posts: 127
No problem !

There's the tags I added when I used oUF_Freebgrid :

Code:
oUF.Tags['[rip]'] = function(u) 
	local name, _,_,_,_,_,_, fromwho,_ = UnitAura(u, 'Riptide')
	if not (fromwho == 'player') then return end
	if UnitAura(u, 'Riptide') then return '|cff00FEBFM|r' end end
oUF.TagEvents['[rip]'] = 'UNIT_AURA'

oUF.Tags['[ripTime]'] = function(u)
	local name, _,_,_,_,_, expirationTime, fromwho,_ = UnitAura(u, 'Riptide')
	if not (fromwho == 'player') then return end
	local spellTimer = '|cffffff00'..format('%.0f',-1*(GetTime()-expirationTime))..'|r'
	return spellTimer end
oUF.TagEvents['[ripTime]'] = 'UNIT_AURA'

oUF.earthCount = {'i','h','g','f','p','q','Z','Y'}
oUF.Tags['[earth]'] = function(u) local c = select(4, UnitAura(u, 'Earth Shield')) if c then return '|cffFFCF7F'..oUF.earthCount[c]..'|r' end end
oUF.TagEvents['[earth]'] = 'UNIT_AURA'
with the font you can found in oUF_Freebgrid, you can add a tag in your layout :

Code:
local myES = self.Health:CreateFontString(nil, 'OVERLAY', 'GameFontHighlightSmall')
myES:SetFont(symbolfont, fontsize)    --  the symbol font
myES:SetShadowColor(0,0,0)
myES:SetShadowOffset(1.25,-1.25)
myES:SetPoint('CENTER', self.Health, 'BOTTOMRIGHT', 0, 0)
self:Tag(myES, '[earth]')
Do the same thing if you want the riptide and the riptime tags.
  Reply With Quote