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")
|