Process the Show/Hide in one script, in one Panel, with one set of listeners. Assuming you use eePanels 1 & 2 for IC, and 3 & 4 for OOC using OnEvent of Panel 1:
Code:
function eePanel1:PLAYER_REGEN_ENABLED()
-- IC Panels
eePanel1:Hide()
eePanel2:Hide()
-- OOC Panels
eePanel3:Show()
eePanel4:Show()
end
function eePanel1:PLAYER_REGEN_DISABLED()
-- IC Panels
eePanel1:Show()
eePanel2:Show()
-- OOC Panels
eePanel3:Hide()
eePanel4:Hide()
end
eePanel1:RegisterEvent("PLAYER_REGEN_ENABLED")
eePanel1:RegisterEvent("PLAYER_REGEN_DISABLED")