Quantcast WoWInterface - View Single Post - Hiding custon UI when in vehicle!
View Single Post
10-30-10, 05:35 AM   #10
Garual
A Deviate Faerie Dragon
Join Date: Oct 2010
Posts: 11
Originally Posted by Quokka View Post
than something like this should work

If i understood Seerah right
Yep your right. For every panel set OnLoad:
Code:
self:RegisterEvent('UNIT_ENTERED_VEHICLE')
self:RegisterEvent('UNIT_EXITED_VEHICLE')
and in OnEvent:
Code:
if event == "UNIT_ENTERED_VEHICLE" then
 self:Hide()
else
 self:Show()
end
  Reply With Quote