You're ignored because you don't spawn a target frame for yourself. You only spawn for party1-5. showPlayer = true just spawns a player unit together with the party.
Originally Posted by Balkeep
Is that possible to make a code to force hide nonmana bars on party and raid frames? I tried something like this:
if (Bal_HideNonMana and UnitPowerType("Self") > 0) then
self.Health:SetHeight(40)
self.Power:SetHeight(0)
else
self.Health:SetHeight(35)
self.Power:SetHeight(5)
end
but im too noob to understand why it doesnt work =P
|
Just don't create the power bars for such units?
You can't set the height of something to 0 also. Running :Hide() on the element would make much more sense.