• 0

    posted a message on kgPanels Offical Thread
    hi all

    i'm using this fantastic addon but i can't do 1 thing that i do with eepanels2

    i have a panel that appear when i enter in party or raid with this script...


    -- Hide the panel so it's not shown until we want it to
    THIS:Hide()
    -- Change our panel's visibility when in/out of a raid
    function eePanels2:RaidPanelVisibility(self, event, ...)
    	-- If we're in a raid
    	if GetNumPartyMembers() > 0 or GetNumRaidMembers() > 0 then
    		-- Show the panel this script is attached to
    		THIS:Show()
    	-- If we're not in a raid
    	else
        	-- Hide the panel this script is attached to
    		THIS:Hide()
    	end
    end
    -- Ace2 event listeners; can't do this in more than one script
    eePanels2:RegisterEvent("PLAYER_ENTERING_WORLD", eePanels2.RaidPanelVisibility)
    eePanels2:RegisterEvent("PARTY_MEMBERS_CHANGED", eePanels2.RaidPanelVisibility)
    eePanels2:RegisterEvent("RAID_ROSTER_UPDATE", eePanels2.RaidPanelVisibility)



    can u transform for kgpanels?


    ty
    Posted in: General AddOns
  • To post a comment, please or register a new account.