Hiding custon UI when in vehicle!
Hey guys heres my question is there a way to hide my custon UI (kgpanels, bartender etc) and have blizz original default vehicle UI (the one with original artwork for dragons or machines) pop up? All i can have is bartender goin single bar when that hapens! Any mod or scripts that can do this?
Thx a bunch! :banana: |
i thought the newest version of bartender allowed you to use the default vehicle bar
either way, if you select the bar you want keybound to your vehicle, lets say that bar has all keys bound '1' through '=' (top of the keyboard). Just select that bar in your Bartender config, and click the tab that says State Configuration. There is a checkbox to make that bar switch to Vehicle assignments when in a vehicle |
Thx friend and yes bartender now has an neat function to hide its bars when u jump onto a vehicle but still i need to hide my KGpanels as well. Anyone know how to do this via an script maybe!
Thx |
Quote:
Code:
[vehicleui]hide;show |
Not for kgPanels. ;)
You'll need to register for the proper events in your OnLoad script, and in the OnEvent, tell whether to hide or show accordingly. Alternately, you can parent your textures to the bartender bar/button, if they have altered frame names from the default UI. |
The events are
Code:
Panel1:SetScript("OnEvent", function(self, event, ...) If i understood Seerah right |
Setting the parent of the frames to hide to UIParent should work, too.
|
UIParent doesn't hide when you enter a vehicle.
|
Quote:
a vehicle or switching to fullscreen. After changing the main frames parent to UIParent the problem was gone ... so I thought this was related. |
Quote:
Code:
self:RegisterEvent('UNIT_ENTERED_VEHICLE') Code:
if event == "UNIT_ENTERED_VEHICLE" then |
Quote:
Do you guys know how to make it so it only hides the panels on PLAYER vehicle ui? Thanks, and sorry again. |
Instead of self:RegisterEvent use self:RegisterUnitEvent('UNIT_ENTERED_VEHICLE', 'player') etc
|
Quote:
|
To clarify, this is due to a change in the API in the last 8+ years. ;)
|
All times are GMT -6. The time now is 05:18 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI