Thread Tools Display Modes
04-16-09, 01:27 PM   #1
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
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.

__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)

Last edited by zork : 04-17-09 at 03:06 PM.
  Reply With Quote
04-16-09, 01:57 PM   #2
haste
Featured Artist
 
haste's Avatar
Premium Member
Featured
Join Date: Dec 2005
Posts: 1,027
Spawn a pet frame, or disable it manually. The blizzard castbar you see is the pet's.
  Reply With Quote
04-16-09, 02:16 PM   #3
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
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.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)

Last edited by zork : 04-16-09 at 02:25 PM.
  Reply With Quote
04-16-09, 02:31 PM   #4
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,710
you must spawn a casting bar on the pet unit frame to make the blizzard one disappear
  Reply With Quote
04-17-09, 04:22 AM   #5
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
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.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
  Reply With Quote
04-21-09, 04:20 AM   #6
Luzzifus
A Warpwood Thunder Caller
 
Luzzifus's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2007
Posts: 94
Is there any way to check if the player is on a vehicle currently?
  Reply With Quote
04-21-09, 06:08 AM   #7
v6o
An Onyxian Warder
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 399
UnitHasVehicleUI(unit)
UnitInVehicle(unit)
  Reply With Quote
04-21-09, 07:49 AM   #8
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,710
Originally Posted by Yourstruly View Post
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.
  Reply With Quote
04-21-09, 09:59 AM   #9
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
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.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » Vehicle testing


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off