-
Posted by deltoide on Sun, 15 Jul 2012 18:11:01
friends, I have this addon that whenever I go into combat, the windows of the minimap and chat are invisible.
local HiC = CreateFrame("Frame", "HiC", UIParent) function HiC.OnEvent(self, event) if event == "PLAYER_REGEN_DISABLED" then GeneralDockManager:Hide() DEFAULT_CHAT_FRAME:Hide() FriendsMicroButton:Hide() ChatFrameMenuButton:Hide() MinimapCluster:Hide() else GeneralDockManager:Show() DEFAULT_CHAT_FRAME:Show() FriendsMicroButton:Show() ChatFrameMenuButton:Show() MinimapCluster:Show() end end HiC:SetScript("OnEvent", HiC.OnEvent) HiC:RegisterEvent("PLAYER_REGEN_ENABLED") HiC:RegisterEvent("PLAYER_REGEN_DISABLED")
The problem is that often, when I go into combat, the chat window remains visible, Would anyone know what might be?
-
Posted by jnwhiteh on Sun, 15 Jul 2012 18:20:50
friends, I have this addon that whenever I go into combat, the windows of the minimap and chat are invisible.
Next time, please post this in the correct forum section, this is for the website itself.
local HiC = CreateFrame("Frame", "HiC", UIParent) function HiC.OnEvent(self, event) if event == "PLAYER_REGEN_DISABLED" then GeneralDockManager:Hide() DEFAULT_CHAT_FRAME:Hide() FriendsMicroButton:Hide() ChatFrameMenuButton:Hide() MinimapCluster:Hide() else GeneralDockManager:Show() DEFAULT_CHAT_FRAME:Show() FriendsMicroButton:Show() ChatFrameMenuButton:Show() MinimapCluster:Show() end end HiC:SetScript("OnEvent", HiC.OnEvent) HiC:RegisterEvent("PLAYER_REGEN_ENABLED") HiC:RegisterEvent("PLAYER_REGEN_DISABLED")
The problem is that often, when I go into combat, the chat window remains visible, Would anyone know what might be?
Not off the top of my head. Add some prints in there to make sure your code is getting called when you think it is.