I am hard at work this morning so i try to make some script for my interface.
i have a problem with no issue.
I am trying to make a panel witch auto size with the number of people in raid.
I try this script and obtain nothing :
--Give our function a name
function eePanels2:FrameResize(self, event, ...)
if GetNumRaidMembers() > 0 and GetNumRaidMembers() < 6 then
eePanel35:SetHeight(300)
end
if GetNumRaidMembers() > 5 and GetNumRaidMembers() < 11 then
eePanel35:SetHeight(400)
end
if GetNumRaidMembers() > 10 and GetNumRaidMembers() < 16 then
eePanel35:SetHeight(500)
end
if GetNumRaidMembers() >15 and GetNumRaidMembers() < 21 then
eePanel35:SetHeight(600)
end
if GetNumRaidMembers() > 20 and GetNumRaidMembers() < 26 then
eePanel35:SetHeight(700)
end
end
-- Ace2 event listeners; can't do this in more than one script
eePanels2:RegisterEvent("PLAYER_ENTERING_WORLD", eePanels2.FrameResize)
eePanels2:RegisterEvent("PARTY_MEMBERS_CHANGED", eePanels2.FrameResize)
eePanels2:RegisterEvent("RAID_ROSTER_UPDATE", eePanels2.FrameResize)
If you have an idea that would be great i thank you a lot.
Ps : excuse me for my bad English.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I am hard at work this morning so i try to make some script for my interface.
i have a problem with no issue.
I am trying to make a panel witch auto size with the number of people in raid.
I try this script and obtain nothing :
--Give our function a name
function eePanels2:FrameResize(self, event, ...)
if GetNumRaidMembers() > 0 and GetNumRaidMembers() < 6 then
eePanel35:SetHeight(300)
end
if GetNumRaidMembers() > 5 and GetNumRaidMembers() < 11 then
eePanel35:SetHeight(400)
end
if GetNumRaidMembers() > 10 and GetNumRaidMembers() < 16 then
eePanel35:SetHeight(500)
end
if GetNumRaidMembers() >15 and GetNumRaidMembers() < 21 then
eePanel35:SetHeight(600)
end
if GetNumRaidMembers() > 20 and GetNumRaidMembers() < 26 then
eePanel35:SetHeight(700)
end
end
-- Ace2 event listeners; can't do this in more than one script
eePanels2:RegisterEvent("PLAYER_ENTERING_WORLD", eePanels2.FrameResize)
eePanels2:RegisterEvent("PARTY_MEMBERS_CHANGED", eePanels2.FrameResize)
eePanels2:RegisterEvent("RAID_ROSTER_UPDATE", eePanels2.FrameResize)
If you have an idea that would be great i thank you a lot.
Ps : excuse me for my bad English.