WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   oUF (Otravi Unit Frames) (https://www.wowinterface.com/forums/forumdisplay.php?f=87)
-   -   Vehicle testing (https://www.wowinterface.com/forums/showthread.php?t=22272)

zork 04-16-09 01:27 PM

Vehicle testing
 
Currently testing vehicles. Looking good so far. I am using oUF_D3Orbs2 and oUF 1.3.11

I had one vehicle with ManaMax = 0. So check your code if you divide something through ManaMax. You need an exception for this case.

Question: How can I disable the Blizzard Vehicle Castbar? (screenshot) Currently both castbars are shown.


haste 04-16-09 01:57 PM

Spawn a pet frame, or disable it manually. The blizzard castbar you see is the pet's.

zork 04-16-09 02:16 PM

Hmm, but I am spawning a petframe already.

Disabling the PetCastBar does the trick though.

Code:

 
        --disable the vehicle castbar
        PetCastingBarFrame:UnregisterAllEvents()
        PetCastingBarFrame.Show = function() end
        PetCastingBarFrame:Hide()

Maybe you can test it yourself at this daily quest (Wyrmm temple defense). The player is switched to the pet correctly but the petcastbar becomes visible upon that point.

p3lim 04-16-09 02:31 PM

you must spawn a casting bar on the pet unit frame to make the blizzard one disappear

zork 04-17-09 04:22 AM

Thanks. So I can either spawn a pet castbar (that I need to hide after, since I don't want it) or disable it manually by unregistering the Blizzard PetCastbar.

Luzzifus 04-21-09 04:20 AM

Is there any way to check if the player is on a vehicle currently?

v6o 04-21-09 06:08 AM

UnitHasVehicleUI(unit)
UnitInVehicle(unit)

p3lim 04-21-09 07:49 AM

Quote:

Originally Posted by Yourstruly (Post 129553)
UnitHasVehicleUI(unit)
UnitInVehicle(unit)

Don't use UnitInVehicle(unit) because it will return true if you're just a passenger, which doesn't have any specific UI.

zork 04-21-09 09:59 AM

I needed such a functinality aswell. I made myself a temp variable and registered the vehicleentered and the vehicleexited events to a frame. I set the temp variable to 0 and 1 depending on the event and do some other stuff.

I do this because I need to refresh my orb glow models upon entering a vehicle. Btw...arg1 can deliver "player" if you only want to track the event called by player.


All times are GMT -6. The time now is 06:32 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI