Thread Tools Display Modes
04-16-09, 01:30 AM   #1
v6o
An Onyxian Warder
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 399
Spawning party/raid pets

Using Headers/SecureGroupPetHeaderTemplate units are shown but I keep geting "partypet# is not in your party." and so on.

Is this the wrong way to spawn?

Last edited by v6o : 04-16-09 at 01:37 AM. Reason: rephrased
  Reply With Quote
04-20-09, 06:27 AM   #2
v6o
An Onyxian Warder
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 399
Maybe I should rephrase it.


How do I spawn party- and/or raid pet frames?
  Reply With Quote
04-20-09, 07:22 AM   #3
haste
Featured Artist
 
haste's Avatar
Premium Member
Featured
Join Date: Dec 2005
Posts: 1,027
This post should explain it. There's also a discussion following on possible issues you might encounter.
  Reply With Quote
04-20-09, 09:51 AM   #4
v6o
An Onyxian Warder
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 399
Still having the same problem with "Partypet# is not in your party."

Code:
local party = oUF:Spawn('header', 'oUF_Party')
party:SetPoint('TOPLEFT', UIParent, 'TOPLEFT', 30, -30)
party:SetAttribute('showParty', true)
party:SetAttribute('yOffset', -3)
party:SetAttribute('template', 'oUF_zParty')
party:Show()
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_zParty" inherits="SecureUnitButtonTemplate" hidden="true" virtual="true">
		<Frames>
			<Button name="$parentPet" inherits="SecureUnitButtonTemplate">
				<Anchors>
					<Anchor point="TOPLEFT" relativePoint="TOPRIGHT" relativeTo="$parent">
						<Offset>
							<AbsDimension x="5" 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>
  Reply With Quote
04-20-09, 10:08 AM   #5
haste
Featured Artist
 
haste's Avatar
Premium Member
Featured
Join Date: Dec 2005
Posts: 1,027
Most likely an issue with something else in your layout. I can't re-create it at least, and no-one else have reported a similar issue.
  Reply With Quote
04-20-09, 06:58 PM   #6
v6o
An Onyxian Warder
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 399
Found the the function that was outputting the error/warning "Partypet# is not in your party".
Thanks for help Haste, much appreciated.

Edit: Yeah, I just wrote thank you for the help at first because I solved the other part.

Last edited by v6o : 04-21-09 at 08:00 AM.
  Reply With Quote
04-21-09, 07:48 AM   #7
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,710
Did you remember to put the XML file in your toc?
  Reply With Quote
04-21-09, 07:55 AM   #8
haste
Featured Artist
 
haste's Avatar
Premium Member
Featured
Join Date: Dec 2005
Posts: 1,027
It's already solved.
  Reply With Quote
04-21-09, 02:00 PM   #9
v6o
An Onyxian Warder
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 399
About the inherited Range Alpha on partypets, looked through the thread but I didn't find an solution and when I re-parent I get errors from range.lua:29 Usage: UnitIsConnected("unit")
  Reply With Quote
04-21-09, 02:06 PM   #10
haste
Featured Artist
 
haste's Avatar
Premium Member
Featured
Join Date: Dec 2005
Posts: 1,027
You can't re-parent the frames spawned through the header, as they use the unit on the parent frame as a base for their own unit. The only way around that would be to manually spawn all the party pets/targets and handle the positioning yourself.
  Reply With Quote
04-21-09, 03:08 PM   #11
v6o
An Onyxian Warder
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 399
I thought as much, just wanted confirmation.
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » Spawning party/raid pets


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