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