Updated for 5.4.0
Click above Warlock - Spell Lock (second icon) to drag
A basic mod that tracks enemy abilities: typically interrupts.
Left Click the bar to move it. Go to the options to lock the bar. You can also hide buttons until they're active. /ib for options. In the options you can make it so the bar only shows when an ability is fired.
Type "/ib" for options there is now option to modify the number of columns.
Type "/ib columns #" with "#" replaced with a number then type '/console reloadui' to update the addon. == This can be used to create a variety of shapes (and use of decimals can yield interesting and occasionally preferable displays).
The addon can be dragged when in the "unlocked" status by clicking+dragging on the top left of the addon.
Be aware that the code can be edited (fairly easily, I might add) so that additional spells are on the list. Tutorials exist online for how to do this.
|
How to change the bar to vertical?
1. Open InterruptBar.lua
2. Find:
Code:
local function InterruptBar_AddIcons()
local y = -45
local x = 0
local r = 0
for _,ability in ipairs(order) do
local btn = CreateFrame("Frame",nil,bar)
btn:SetWidth(30)
btn:SetHeight(30)
if y < (InterruptBarDB.columns * 30 - 45) then
btn:SetPoint("CENTER",bar,"CENTER",x,y)
else
y = y-(InterruptBarDB.columns * 30)
x = x-30
btn:SetPoint("Center",bar,"Center",x,y)
3. Replace:
Code:
local function InterruptBar_AddIcons()
local x = -45
local y = 0
local r = 0
for _,ability in ipairs(order) do
local btn = CreateFrame("Frame",nil,bar)
btn:SetWidth(30)
btn:SetHeight(30)
if x < (InterruptBarDB.columns * 30 - 45) then
btn:SetPoint("CENTER",bar,"CENTER",x,y)
else
x = x-(InterruptBarDB.columns * 30)
y = y-30
btn:SetPoint("Center",bar,"Center",x,y)
4. Voila!