nice layout lighter, but can you give me a general direction on some code in your lua?

First; does the

Code:

if(not unit) then -- fadeout on range
self.Range = true -- put true to make party/raid frames fade out if not in your range
self.inRangeAlpha = 1
self.outsideRangeAlpha = .3 -- and the alpha it will fade out to
end

only work on party/raid or can i put it into any other frame?

also, do you have an efficient way of showing deficit values? i tried modifying your code without success.

Originally posted by Flarin I have been looking for a way to shut off the party frames in a Raid. I found this:

party:SetAttribute("showRaid", false)

On another site - but when I put it in your party spawn block it is not recognized. I am sure I am not doing this correctly, perhaps you could lend me a hand?

Is there a way to indicate pet happiness?

Thanks for any help you can provide. I really like these unit frames - your layout is really nice, thanks for sharing it!

actually, the attribute "showRaid" is for showing the raid into the party header or not. it doesnt affect the party. We didnt find any real solution for this yet, but p3lim has a fix which is creating an onupdate event.
add this at the end of layout.lua

Code:

local hideparty = CreateFrame"Frame"
hideparty:SetScript("OnEvent", function()
if not InCombatLockdown() then
if UnitInRaid"player" then party:Hide()
else party:Show() end
end
end)
hideparty:RegisterEvent"RAID_ROSTER_UPDATE"
hideparty:RegisterEvent"PLAYER_LOGIN"

this will hide the party frames when you're in a raid.

The mana/focus bar of the pet should be based on happiness color.(red=not happy, yellow=happy, green=very happy). If you want another way to show it, just tell me exactly how you want it.

Originally posted by Flarin Hmm... The pet happiness coloring is not working. Should I post this to Haste or can you take a look at it? My pet died and the power bar was still green.The health bar is always gray.

Thanks for the help! And you tip on hiding the party worked like a charm. This frame system is really growing on me!

i will take a look.

EDIT: i found the problem. doing a fix, testing it, and i should upload in a couples of minutes.