Hello,
I've been trying to make an addon that will filter out friendly nameplates that have full hp bars. so far this is what i have:
Code:
....
function WorldFrame_OnUpdate(elapsed)
for i = 1, WorldFrame:GetNumChildren() do
local myFrame = select(i,WorldFrame:GetChildren())
if IsFrame(myFrame) then
local tempFrame=select(2,myFrame:GetChildren())
-- do something here T_T
end
end
bak_WorldFrame_OnUpdate(elapsed)
end
...
my problem now is i'm stuck on the part that should check the hp bar. do you guys have an idea on how to go about it?
thanks.