Thread Tools Display Modes
08-08-10, 10:31 PM   #1
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Player's pet's partypet frame has wrong .unit set

I'm currently playing a warlock and a paladin. On the paladin's screen, the party pet frame for the warlock's pet shows up just fine. On the warlock's screen, however, the majority of the time the party pet frame for his pet appears with "Unknown" for the name, and the first time any element is updated, it changes to show the pet as offline.

Some basic checking reveals that the (frame).unit value isn't being set correctly on the frame for the warlock. Putting the mouse over the misbehaving frame:

/dump GetMouseFocus().unit
==> vehicle

/dump SecureButton_GetModifiedUnit(GetMouseFocus())
==> pet

However, if I manually set the .unit value:

/run GetMouseFocus().unit = SecureButton_GetModifiedUnit(GetMouseFocus())

The frame starts working correctly. It breaks again if I mount (pet disappears) and then dismount (pet reappears) though.

I'm spawning party pets using XML:
Code:
<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/../FrameXML/UI.xsd">
	<Button name="oUF_PhanxPartyTemplate" inherits="SecureUnitButtonTemplate" hidden="true" virtual="true">
		<Frames>
			<Button name="$parentPet" inherits="SecureUnitButtonTemplate">
				<Anchors>
					<Anchor point="BOTTOMLEFT" relativePoint="BOTTOMRIGHT" relativeTo="$parent">
						<Offset>
							<AbsDimension x="10" y="0"/>
						</Offset>
					</Anchor>
				</Anchors>
				<Attributes>
					<Attribute name="unitsuffix" type="string" value="pet"/>
					<Attribute name="useparent-unit" type="boolean" value="true"/>
					<Attribute name="type1" type="string" value="target"/>
					<Attribute name="initial-unitWatch" type="boolean" value="true"/>
				</Attributes>
			</Button>
		</Frames>
	</Button>
</Ui>
and:
Code:
oUF:SpawnHeader(nil, nil, "party",
	"showParty", true,
	"showPlayer", true,
	"template", "oUF_PhanxPartyTemplate",
	"xOffset", 0,
	"yOffset", -25)
The party and party pet frames are generally working fine, other than the party pet frame for the warlock's pet on the warlock's screen. I'm guessing it has something to do with setting the "showPlayer" attribute on my party header, but I don't know what the solution (if there is one) is.

Any thoughts?
  Reply With Quote
08-08-10, 11:24 PM   #2
haste
Featured Artist
 
haste's Avatar
Premium Member
Featured
Join Date: Dec 2005
Posts: 1,027
Sounds like a oUF bug. I'll have a look after work.
__________________
「貴方は1人じゃないよ」
  Reply With Quote
08-09-10, 01:01 AM   #3
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Thanks. My complete layout is here:
http://www.wowinterface.com/download...oUF_Phanx.html
  Reply With Quote
08-09-10, 10:28 AM   #4
haste
Featured Artist
 
haste's Avatar
Premium Member
Featured
Join Date: Dec 2005
Posts: 1,027
Issue should be solved with f8de36a107eca9a997d8. I'll look into posting 1.4.3 later today.
__________________
「貴方は1人じゃないよ」
  Reply With Quote
08-09-10, 01:47 PM   #5
Toran
A Nerdscale Dorkin
 
Toran's Avatar
Premium Member
Join Date: May 2006
Posts: 143
Ha! And I always thought this was a problem with my layout. Good to see it's getting fixed.
  Reply With Quote
08-09-10, 04:43 PM   #6
haste
Featured Artist
 
haste's Avatar
Premium Member
Featured
Join Date: Dec 2005
Posts: 1,027
Originally Posted by Toran View Post
Ha! And I always thought this was a problem with my layout. Good to see it's getting fixed.
Reporting bugs is generally a good idea, even if you aren't certain regarding why they happen.
__________________
「貴方は1人じゃないよ」
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » Player's pet's partypet frame has wrong .unit set


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