Thread Tools Display Modes
Prev Previous Post   Next Post Next
02-10-16, 01:39 PM   #1
Resike
A Pyroguard Emberseer
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,290
SecurePartyHeaderTemplate

Is it possible to create a party frame with this template which always shows your group?
I have tried to mess around with the attributes, but no luck so far.

I would need something like this but securely:

Lua Code:
  1. local playerGroup
  2. for i = 1, GetNumGroupMembers() do
  3.     local name, _, subgroup = GetRaidRosterInfo(i)
  4.     if (name == UnitName("player")) then
  5.         playerGroup = subgroup
  6.         break
  7.     end
  8. end
  9.  
  10. self.header:SetAttribute("groupFilter", tostring(playerGroup))

Last edited by Resike : 02-10-16 at 02:26 PM.
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » SecurePartyHeaderTemplate


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