View Single Post
01-17-12, 02:40 PM   #10
Kapone
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 16
been trying out these codes for a while and i would like too bring up this old thread.

I need help with hiding 2 textures (background and overlayer) when i go in too 10 man aswell as hiding 2 textures when im 10 man (2 different textures for 10 and 25 man).

Party dosen't matter
So when im in raid 2>10 i want Raid 10 and Raid 10 ol (panel name) only being seen and Panel name: Raid 25 with Raid 25 ol hiding. and then Raid 25 with Raid 25 ol shown when its 11 ppl in the raid.

I have anchor'd raid 25 so it shows when some one enter the 3d group in a raid. so all i have too do is hide 10 man raid texture when the 25 one pops up. ive been trying to go on lazy stile and tryed too cower the other texture with panel lvls but it does not work as i want becouse of the overlayer.

Edit:

So after a few hours i think i got it right. but i would like someone too take an eye pop if i got it right..

For OnLoad:
Code:
self:RegisterEvent("PLAYER_ENTERING_WORLD")
self:RegisterEvent("PARTY_MEMBERS_CHANGED")
self:RegisterEvent("RAID_ROSTER_UPDATE")
For Raid frame 10memmbers and over layer:
Code:
local pmems = GetNumPartyMembers()
local rmems = GetNumRaidMembers()
if (pmems > 0 and rmems > 1 and rmems < 11) then
self:Show()
else
self:Hide()
end
For raid frame 25memmbers and over layer:
Code:
local pmems = GetNumPartyMembers()
local rmems = GetNumRaidMembers()
if (pmems > 0 and rmems > 10 and rmems < 26) then
self:Show()
else
self:Hide()
end
Note that i want too show raid frame even when im solo in raid. and get the 25 man texture up when its 11 members in that raid.


Many thanks and spank's
Kapone over and out.

Last edited by Kapone : 01-17-12 at 05:41 PM.
  Reply With Quote