View Single Post
09-21-10, 09:04 PM   #5
Brillynt
A Black Drake
 
Brillynt's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2008
Posts: 77
Scott,

Here is what I did to the nUI_PetBar.lua for cataclysm to make the pet bar show. Only problem is if you are in combat and dismount your pet bar will not show up till combat is done.


Code:
if update_state then
	for i=1, #frame.Buttons do
		frame.updateState( i );
	end
	
	if not InCombatLockdown() then					-- Cataclysm
		if ( PetHasActionBar() and UnitIsVisible("pet") ) then	-- Cataclysm
			if not frame:IsShown() 				-- Cataclysm
				frame:Show();				-- Cataclysm
			end						-- Cataclysm
		else							-- Cataclysm
			if frame:IsShown() then				-- Cataclysm
				frame:Hide();				-- Cataclysm
			end						-- Cataclysm
		end							-- Cataclysm
	end								-- Cataclysm
end
Had to do the combat check because the pet bar frame is protected now and was getting errors.

If you want the complete file with all my changes let me know and I will send it to you.

Brillynt

Last edited by Brillynt : 09-21-10 at 09:06 PM.