siweia/NDui

Not hiding Blizz castbar.

Closed this issue · 2 comments

Of good. When using an alternative castbar (assuming I use gnosis) and disabled personal castbar in the "NDui" settings, blizzard castbar is displayed, even if it is disabled in the settings of another addon.
(branches TBC)

Disable castbars directly, not just uncheck each castbar separately.

Oh no.. I like NDui target castbar, I wouldn't want to turn them off completely :(
But the essence is clear .. I close.
I had to make :(
local pciscript = CreateFrame("Frame")
pciscript:RegisterEvent("PLAYER_ENTERING_WORLD")
pciscript:RegisterEvent("ADDON_LOADED")
pciscript:RegisterEvent("PLAYER_LOGIN")
pciscript:RegisterEvent("PLAYER_LOGOUT")
local function eventHandler(self,event)
if event == "ADDON_LOADED" then
CastingBarFrame:UnregisterAllEvents()
end
end
pciscript:SetScript("OnEvent",eventHandler)