Go to Page... |
Updated: | 10-29-13 07:00 AM |
Created: | 10-29-13 05:20 AM |
Downloads: | 31,185 |
Favorites: | 8 |
MD5: |
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. |
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)
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)
Comment Options |
Koviko |
View Public Profile |
Send a private message to Koviko |
Find More Posts by Koviko |
Add Koviko to Your Buddy List |
12-08-13, 11:33 AM | |
A Deviate Faerie Dragon
Forum posts: 11
File comments: 174
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 |
View Public Profile |
Send a private message to keLston |
Find More Posts by keLston |
Add keLston to Your Buddy List |