View Single Post
04-05-09, 03:45 PM   #971
neolith
A Fallenroot Satyr
 
neolith's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2006
Posts: 22
Originally Posted by Luzzifus View Post
Like this (e.g. in your style function or update hooks):

Code:
local unitInRaid = self:GetParent():GetName():match"oUF_Raid" 
local unitInParty = self:GetParent():GetName():match"oUF_Party"
local unitIsPartyPet = unit and unit:find('partypet%d')

if unitInRaid or unitInParty or unitIsPartyPet then
...
end
Using (self:GetParent():GetName():match"oUF_Raid") adjusts the layout on all members of my raidgroup. I haven't found a way to display a manabar for only those that have mana yet.
__________________
- The biggest trick the devil ever pulled was convincing the world he didn't exist. -