OnEvent: if event == "PLAYER_REGEN_DISABLED" then
self:SetAlpha(1)
else
self:SetAlpha(0)
end
It works fine but when I first load in the panels are showing until I enter combat and then leave. Is there anyway to get these to automatically hide straight up and then show when i enter combat?
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh
Ah, yes. Since you're merely changing the alpha and not actually hiding/showing the panel.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh