View Single Post
09-08-08, 07:42 AM   #9
Juggernautt
A Deviate Faerie Dragon
AddOn Compiler - Click to view compilations
Join Date: Apr 2008
Posts: 11
So this would be the code then?

-- Hide the panel so it's not shown until we want it to
eePanelX:Hide()
eePanelY:Hide()
-- Hide panel ooc
function eePanels2:PLAYER_REGEN_ENABLED()
eePanelX:Hide()
eePanelY:Hide()
end
-- Show panel ic
function eePanels2:PLAYER_REGEN_DISABLED()
eePanelX:Hide()
eePanelY:Hide()
end
-- Ace2 event listeners; can't do this in more than one script
eePanels2:RegisterEvent("PLAYER_REGEN_DISABLED")
eePanels2:RegisterEvent("PLAYER_REGEN_ENABLED")
  Reply With Quote