Quantcast WoWInterface - View Single Post - Hiding custon UI when in vehicle!
View Single Post
02-10-19, 09:41 PM   #11
Wolryr
A Deviate Faerie Dragon
Join Date: Dec 2017
Posts: 16
Originally Posted by Garual View Post
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
Sorry to necro this post, but I was just recently testing this as my custom kg panels were having the same issue. I wanted to say Garual's code works fine, but it also makes it so the panels would hide on EVERY unit (party or raid member) entering the vehicleUI state, not only the player.

Do you guys know how to make it so it only hides the panels on PLAYER vehicle ui?

Thanks, and sorry again.
  Reply With Quote