View Single Post
12-30-11, 05:34 AM   #7
litesung
A Flamescale Wyrmkin
 
litesung's Avatar
Join Date: Aug 2010
Posts: 130
Originally Posted by Phanx View Post
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!!!
  Reply With Quote