Thread Tools Display Modes
12-04-09, 03:44 PM   #1
Quokka
A Chromatic Dragonspawn
 
Quokka's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2005
Posts: 196
aura & weaponenchants

is there a way to have oUF_WeaponEnchant show the entchants allways as the last buff?

and how would I skin the enchant buffs?

Code:
---------------------------------------------------- Aura icon skinning 
local function noHide(self) 
    self:SetVertexColor(.25,.25, .25) 
end 
	 
local function PostCreateAuraIcon(self, button, icons, index, debuff)
	icons.showDebuffType = true
    button.cd:SetReverse() 
    button.icon:SetTexCoord(0, 1, 0, 1)
	button.overlay:SetTexture(bordertexture) 
    button.overlay:SetTexCoord(0,1,0,1) 
	button.overlay.Hide = noHide 
    button.count:SetPoint('BOTTOMRIGHT', button, 1, 0) 
    button.count:SetFont(font, fSize, 'OUTLINE') 
    button.count:SetTextColor(1,1,1) 
	
	button:SetScript('OnMouseUp', function(self, mouseButton)
		if mouseButton == 'RightButton' then
			CancelUnitBuff('player', index)
		end
	end) 
end
this is what i have for the normal buffs
  Reply With Quote
12-04-09, 05:49 PM   #2
wurmfood
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Apr 2009
Posts: 122
For the second part, you can make them match with "self.PostCreateEnchantIcon = PostCreateAuraIcon". They work the same way.

For the first, are you asking if you can have the enchants show up at the end of your normal buffs instead of in a separate frame? If so, there's ways of doing it, depending on your setup, but the obvious ones I can think of are ugly to implement. (e.g. put your buffs in a size-changing frame and attach the weapon enchants to the side of it. I know this works, as I use something like that in my layout, but it's not pretty and leads to some odd things you have to watch for.)
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » aura & weaponenchants


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