View Single Post
03-23-13, 07:43 PM   #9
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Originally Posted by Nibelheim View Post
The Blizz Raid Frames still appeared after going into the Interface Options window then leaving the Interface Options window...
Weird. I've never seen that happen. Try adding:

Code:
local function HideSafely(f) if not InCombatLockdown() then f:Hide() end
CompactRaidFrameContainer:HookScript("OnShow", HideSafely)
CompactRaidFrameManager:HookScript("OnShow", HideSafely)
If they even appear while opening the Interface Options in combat, you might need to add a frame to listen for the end of combat and hide them.

Code:
local combatHider = CreateFrame("Frame")
combatHider:SetScript("OnEvent", function(f, e)
    if InCombatLockdown() then return end
    CompactRaidFrameContainer:Hide()
    CompactRaidFrameManager:Hide()
    f:UnregisterEvent(e)
end

local function HideSafely(f)
    if InCombatLockdown() then
        combatHider:RegisterEvent("PLAYER_REGEN_ENABLED")
    else
        -- maybe do f:SetAlpha(0) here, though it will still be clickable...
        f:Hide()
    end
end

CompactRaidFrameContainer:HookScript("OnShow", HideSafely)
CompactRaidFrameManager:HookScript("OnShow", HideSafely)
Originally Posted by VincentSDSH View Post
... how many addons have issues in 5.2, which are irregularly related to what appears to be timing issues with the server.
I currently have 218 items in my AddOns folder, and I haven't seen a real error (eg. not fake taint errors) from anything other than my own addons while I'm doing development. o_O
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote