Download
(3 Kb)
Download
Updated: 10-29-13 07:00 AM
Pictures
File Info
Compatibility:
Siege of Orgrimmar (5.4)
Updated:10-29-13 07:00 AM
Created:10-29-13 05:20 AM
Downloads:5,528
Favorites:4
MD5:
5.4
Interrupt Bar  Popular! (More than 5000 hits)
Version: 1.6.1
by: nydas3k [More]
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!
Version 1.6.1:

- Updated for 5.4.0
Optional Files (0)


Post A Reply Comment Options
Old 12-27-13, 03:00 PM  
kovik
A Deviate Faerie Dragon

Forum posts: 12
File comments: 17
Uploads: 0
Originally Posted by keLston
Does not appear to be draggable despite the "lock" function listed as false.

Gives a LUA error when trying to adjust scale. Columns function appears to do nothing.

Running "test" function shows the cooldown numbers doubled on each spell until it reaches 7 seconds and turns to red numbers (so the yellow numbers are displaying twice).
I'm getting exactly these errors.
kovik is offline Report comment to moderator  
Reply With Quote
Old 12-08-13, 10:33 AM  
keLston
A Deviate Faerie Dragon

Forum posts: 11
File comments: 177
Uploads: 0
Does not appear to be draggable despite the "lock" function listed as false.

Gives a LUA error when trying to adjust scale. Columns function appears to do nothing.

Running "test" function shows the cooldown numbers doubled on each spell until it reaches 7 seconds and turns to red numbers (so the yellow numbers are displaying twice).

Code:
Message: Interface\AddOns\InterruptBar\InterruptBar.lua:133: Usage: <unnamed>:SetScale(scale)
Time: 12/08/13 12:28:21
Count: 1
Stack: [C]: ?
[C]: in function `SetScale'
Interface\AddOns\InterruptBar\InterruptBar.lua:133: in function <Interface\AddOns\InterruptBar\InterruptBar.lua:132>
Interface\AddOns\InterruptBar\InterruptBar.lua:270: in function `cb'
Interface\AddOns\InterruptBar\InterruptBar.lua:292: in function `?'
Interface\FrameXML\ChatFrame.lua:4316: in function `ChatEdit_ParseText'
Interface\FrameXML\ChatFrame.lua:3962: in function `ChatEdit_SendText'
Interface\FrameXML\ChatFrame.lua:4008: in function `ChatEdit_OnEnterPressed'
[string "*:OnEnterPressed"]:1: in function <[string "*:OnEnterPressed"]:1>

Locals:
keLston is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: