I recently made a change in Bitten's SpellFlash Library that one user reports causes issues when paired with nUI. Here are the error reported, and the changes I made. Maybe an nUI expert will understand how my changes would cause any issue?
The error:
1x [ADDON_ACTION_BLOCKED] AddOn "BittensSpellFlashLibrary" tried to call the protected function "nUI_TopRightBar_Button12:Show()".
My code:
Code:
local is = IsSpellOverlayed
local isnt = function() return false end
local show = ActionButton_ShowOverlayGlow
local noshow = function() end
function c.EnableDefaultProcHilighting()
IsSpellOverlayed = is
ActionButton_ShowOverlayGlow = show
if LABFrame then
LABFrame:RegisterEvent("SPELL_ACTIVATION_OVERLAY_GLOW_SHOW")
end
end
function c.DisableDefaultProcHilighting()
IsSpellOverlayed = isnt
ActionButton_ShowOverlayGlow = noshow
if LABFrame then
LABFrame:UnregisterEvent("SPELL_ACTIVATION_OVERLAY_GLOW_SHOW")
end
end
"LABFrame" is the eventFrame in LibActionButton.