Quantcast
WoWInterface - View Single Post - A little script help for kgpanels
View Single Post
01-05-13, 02:56 PM   #16
Kapone
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 16
thanks too blizzards new update allot of my code is broken.. this is what i have at the moment
On load: All panels get it (10 man + 10man ol and 25man etc)

Code:
self:RegisterEvent("PLAYER_ENTERING_WORLD")
self:RegisterEvent("PARTY_MEMBERS_CHANGED")
self:RegisterEvent("GROUP_ROSTER_UPDATE")
On event: For showing 10 man panel.
Code:
local raid = GetNumRaidMembers()
if raid >= 1 and raid <= 10 then
     self:Show()
else
     self:Hide()
end
On event: For hiding 10 man panel and showing 25 man
Code:
local raid = GetNumRaidMembers()
if raid >= 11 and raid <= 26 then
     self:Show()
else
     self:Hide()
end
If anyone could link me what got changed in mop or if someone wanna feel kind today and change what i should change so it works for me ^^
Anyways and eighter way thanks already
  Reply With Quote