PetXPBar (Fan Update)

This mod was originally created by Mark Murray and updated by Johnny Elliott. I have made it independent of the PetFrame, and tweaked it to work since Patch 2.4, and have now updated it to work with Cataclysm.

From the Readme.txt:

Installation:
When first installed, the frame will be in the center of the screen (see Picture #1), and can then be moved anywhere on the screen by left-click and dragging on the border. I usually place it under my pet's focus bar, leaving room for the buffs/debuffs to show.

Usage:
/pxb raw - Toggles between showing raw XP and XP percentage on the XP Bar.
/pxb tooltip - Toggles between highly detailed and simple tooltip viewing modes.
/pxb fade - Toggles XP Bar text in and out of fade mode. When on, text only shows on mouseover.
/pxb level - Toggles the level icon on or off.
/pxb bar - Toggles the XP Bar on or off.
/pxb rollover - Toggles the rollover tooltip on or off.
/pxb toolfade - Toggles whether or not to try and fade out tooltip.
/pxb tooltipcolor - Toggles showing the tooltip the same color as the XP Bar.
/pxb icon - Toggles Pet Family icon next to the XP Bar on or off.
/pxb debug - Prints debug information about all your settings in the chat frame.
/pxb update - Forces PXB to update all data.

--Movement--
/pxb dock - Toggles docking the bar to the PetFrame, or the UIParent.
/pxb lock - Toggles the ability to move the XP Bar.
/pxb reset - Resets the XP Bar position to the default.

All settings are on a per-character basis now, you might have to delete the following file if you encounter problems:
World of Warcraft\WTF\Account\<AccountName>\<Server>\<CharacterName>\SavedVariables\PetXPBar.lua

4.0:
-- Fixed the issue where the bar wouldn't initially show
-- Changed the stable tooltips to reflect the changes made by Blizzard
-- Changed the stats in the complex tooltip to account for Blizzard changes

3.3:
-- toc bump
accounted for unused talent points

3.1.2:
-- I believe this should fix the issue of the bar either not appearing, or being out of position.

i just noticed today that certain features of the xp bar are not working anymore since the patch. when i scroll over the bar im not seeing any of the information anymore, ie: amount of xp on last kill, xp til lvl,etc. and also nothing is showing when using the ctrl command to see stabled pets.

In addition to my post below, I also wanted to post this bug that I recently began receiving. When at the Argent Tournament and using one of their stabled "mounts", when I mouse over the PXB frame I get this error:

Just want to say thanks very much for this great addon! Since moving away from Fubar a while ago, I was looking (unsuccessfully) for a Fubar_PetInfo replacement, and this more than surpassed my expectations. Your time and effort is certainly appreciated. Thanks again!

EDIT:
The author of Stuf said it had something to do with how the xp bar is being attached to the parent frame which his mod is hiding.
Any chance you could fix this so it would work with Stuf?

Thanks,
Twidget

I use a custom UI (Pitbull is the main UI addon I use) and was having the same problem not being able to display the bar. I solved this by using Fluid Frames to move the bar to a place I wanted it, and it now appears every time I spawn my pet. I know this is not the best way to achieve this, but at least it works. Hope this helps!

No. No it is not. Sadly, the tooltip, regardless of settings, is still being surpressed in the X-Perl frames. Docked/undocked doesn't matter. I suspect this is an issue on X-Perl's side, not PXB. I'll see if that author can provide me with some tips to help them interact and play nice.

Originally posted by drakkondarkspell Is this compatible with X-Perl? I had issues with the original not working when I moved to X-Perl, and I love PXB. I'm curious if I can get my pet info back with this version.

It should be, as long as you don't use the /pxb dock command. By default, it is attached to the UIParent, so it can be moved anywhere on the screen. Docking will hook it to the Blizzard default pet frame. So, if you're using X-Perl, or some other player frame mod, the default docking behavior should work for you.

Originally posted by Ambrya Will this be updated for WOTLK? Right now, every time I log in, the bar is in the middle of my screen and every single time I log in I have to type /pxb reset to get it to go where it should be. It also isn't draggable even when I have that option turned on.

Sorry it took so long, but Life decided I needed to pay more attention for awhile. It has now been updated. If you have any problems, please let me know.

Will this be updated for WOTLK? Right now, every time I log in, the bar is in the middle of my screen and every single time I log in I have to type /pxb reset to get it to go where it should be. It also isn't draggable even when I have that option turned on.

Three /cheers for you. I've missed this addon. Love knowing the progress I'm making while leveling pets. Shame I found it the same night my last pet hit 70. But I will make great use of it come WotLK, if you're still updating it then.

Edit: One suggestion though, add in another skin that looks identical to the default blizzard health/energy bars. Would fit in much more neatly that way.