Originally Posted by Phanx
InterruptBar does not give its frame a global name, so you cannot (easily) access it from outside of the addon's own Lua file. The following simple modification to InterruptBar.lua should work.
Find this line, near the end of the file:
Code:
["COMBAT_LOG_EVENT_UNFILTERED"] = function(self,...) InterruptBar_COMBAT_LOG_EVENT_UNFILTERED(...) end,
After it, add:
Code:
["ZONE_CHANGED_NEW_AREA"] = function(self)
local _, instanceType = IsInInstance()
if instanceType == "arena" or instanceType == "pvp" or (instanceType == "none" and GetZonePVPInfo() == "combat") then
self:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED")
self:Show()
else
self:UnregisterEvent("COMBAT_LOG_EVENT_UNFILTERED")
InterruptBar_ResetAllTimers()
self:Hide()
end
end,
|
This worked perfectly
I typed "/ib hidden" to show the frame, and positioned it where I wanted it, then I hid it again by typing "/ib hidden". When I tested it, the frame was not showing, but the spell icons appear when they are being used!
This actually turned out better than I ever wanted! THANKS!!!