Thread: beta
View Single Post
07-08-12, 03:41 PM   #59
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,935
Okay, 4.3 screenshots ...

As you can see in regular wow your mount becomes the player frame and you become the pet frame. But, Scott doesn't change nUI to do that but simply keeps the unit panels as they are ... Player as Player and vehicle as pet.

In 5.0 I can see that blizz hasn't changed what they did, just some extra lines on how they did it... The highlighted lines are the only extra lines in that block of code that was added in 5.0. How they affect things I don't know yet.

Code:
elseif ( event == "UNIT_ENTERING_VEHICLE" ) then		
		if ( arg1 == "player" ) then			
			if ( arg2 ) then				
				PlayerFrame_AnimateOut(self);			
			else				
				if ( PlayerFrame.state == "vehicle" ) then					
					PlayerFrame_AnimateOut(self);				
				end			
			end		
		end	
	
	elseif ( event == "UNIT_ENTERED_VEHICLE" ) then		
		if ( arg1 == "player" ) then			
			self.inSeat = true;			
			if (UnitInVehicleHidesPetFrame("player")) then				
				self.vehicleHidesPet = true;			
			end			
			PlayerFrame_UpdateArt(self);		
		end	
	
	elseif ( event == "UNIT_EXITING_VEHICLE" ) then		
		if ( arg1 == "player" ) then			
			if ( self.state == "vehicle" ) then				
				PlayerFrame_AnimateOut(self);			
			else				
				self.updatePetFrame = true;			
			end			
			self.vehicleHidesPet = false;		
		end	
		
	elseif ( event == "UNIT_EXITED_VEHICLE" ) then		
		if ( arg1 == "player" ) then			
			self.inSeat = true;			
			PlayerFrame_UpdateArt(self);		
		end
Attached Thumbnails
Click image for larger version

Name:	WoWScrnShot_070812_222412.jpg
Views:	452
Size:	167.9 KB
ID:	7027  Click image for larger version

Name:	WoWScrnShot_070812_222524.jpg
Views:	461
Size:	167.4 KB
ID:	7028  
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818