GroupHeader: PartyMembers, PartyTargets & PartyPets
I have some questions about spawning party target&pet frames, but first I shall show you roughly how I implement my setup.
The Situation Currently the desired method of spawning frames for partypets and partytargets is via a secureFramesTemplate. 1. create the template.xml your_ouf_layout/partyTemplate.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"> your_ouf_layout/your_ouf_layout.toc Code:
## Interface: 30100 your_ouf_layout/core.lua Refer to it by the template name in your spawn function. specifying that it is the template which we wish to use in order to define aspects about our group frames. Code:
local party = oUF:Spawn("header", "oufparty") The Question As you see above, the xml template names each child frame based on the framename of the parent. (a pet frame of the party3 frame becomes part3_pet) I am trying to work out if it is also possible to send in other variables. i want to be able to control the x y coord of the child frames after spawning (out of combat of course). perhaps something like : Code:
party:SetManyAttributes( Code:
<Button name="$parent_Pet" inherits="SecureUnitButtonTemplate"> |
If your template also inherits from SecureHandlerAttributeTemplate, you may also be able to reposition child frames accroding to certain circumstances, including doing so during combat. I'm not sure off the top of my head what attributes the header would set on the template that you'd want to respond to, though, other than perhaps "unit".
|
The reason I wanted to be able to use the SetAttributes function of the template header was that doing so makes it a simple matter of fire and forget.
Code:
function addon:UpdatePartyFrames(dbSettings) Code:
function addon:UpdatePartyFrames(dbSettings) |
All times are GMT -6. The time now is 05:38 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI