Download
(7Kb)
Download
Updated: 02-05-19 03:00 PM
Pictures
File Info
Compatibility:
Tides of Vengeance (8.1.0)
Updated:02-05-19 03:00 PM
Created:10-07-10 12:37 AM
Downloads:29,309
Favorites:98
MD5:

bdBuffs  Popular! (More than 5000 hits)

Version: 2.17
by: Blooblahguy [More]

bdBuffs are a Buff Frame replacement. bdBuffs to provide simplistic, functional, lightweight buffs to your UI.

note: You need bdCore to use this addon, or any other bd_ addons

Features

Pretty
Right-click to cancel in combat
Movable
/bd config to access in game config
/bd lock to unlock the addon and move it around

2.1
Toc bump
minor bug fixes

2.0
Configuration changed

1.9
Added all of the config options back

1.8
Updated for legion
Allow for right-click cancelling in combat

v1.7
-Added a section at the top of the config to set default spawn positions of the anchors

v1.6
-Fixed a growth bug (Thanks Arogtar)

v1.5
-Fixed a bug where the duration and count would not show
-Added options for changing both horizontal and vertical growth, configurable in the lua
-Code cleanup

v1.3
-Fixed the addon for patch 4.0.6
-Cleaned some code up

v1.2
-You are now able to right-click and remove any buffs/debuffs/enchants
-TempEnchantFrame is now skinned and movable
-Added Buff/Debuff/Temp Spacing option
-Added /movebuffs command so you can drag the anchors around

v0.8
-Fixed a bug where the stacks of the buff/debuff would not show up.

v0.7
-Added more config

v0.6
-Fixed a texture bug
-Added a config for whether or not the buffs should be anchored to the Minimap.
Optional Files (0)


Post A Reply Comment Options
Unread 10-07-10, 08:15 AM  
ZinUI
A Kobold Labourer
 
ZinUI's Avatar
AddOn Compiler - Click to view compilations

Forum posts: 0
File comments: 12
Uploads: 1
Mine shows no borders
Report comment to moderator  
Reply With Quote
Unread 10-07-10, 12:53 PM  
Blooblahguy
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 18
File comments: 202
Uploads: 25
Originally posted by ZinUI
Mine shows no borders
It references a blizzard texture for the border texture. The only way it wouldn't show if you had a: a corrupt installation b: an addon that reskins or removes blizzard textures or c:you have folders in the root interface folder that replace the texture.

Are you using any other buffs mods? Is anyone else having this issue?
Report comment to moderator  
Reply With Quote
Unread 10-08-10, 10:29 PM  
Falarin
A Cyclonian
 
Falarin's Avatar

Forum posts: 49
File comments: 38
Uploads: 0
I love the style of these Buffs! I was just wondering as I can't seem to figure it out myself tinkering in the Lua, but which variables would I have to change to just move them to the left so I can put my minimap back on the Top Right?
Report comment to moderator  
Reply With Quote
Unread 10-09-10, 02:17 PM  
Sniffles
A Black Drake
 
Sniffles's Avatar
AddOn Author - Click to view AddOns

Forum posts: 86
File comments: 75
Uploads: 17
do you add Weapon Enchants too?
Report comment to moderator  
Reply With Quote
Unread 10-10-10, 07:18 AM  
senomar
A Defias Bandit
AddOn Author - Click to view AddOns

Forum posts: 3
File comments: 43
Uploads: 3
Originally posted by Blooblahguy
It references a blizzard texture for the border texture. The only way it wouldn't show if you had a: a corrupt installation b: an addon that reskins or removes blizzard textures or c:you have folders in the root interface folder that replace the texture.
dude, your texture reference is nil. read your own code.
Report comment to moderator  
Reply With Quote
Unread 10-11-10, 10:18 AM  
Blooblahguy
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 18
File comments: 202
Uploads: 25
Updated, theres a reason why its in beta.

theres a config now for whether or not it will anchor to the minimap.
Will add weapon enchants in the future. Would expect that this week.
Report comment to moderator  
Reply With Quote
Unread 10-14-10, 10:44 PM  
JohnCover
A Kobold Labourer

Forum posts: 0
File comments: 19
Uploads: 0
Any idea how I can apply a horizontal offset to the anchor? I currently have anchor equal to UIParent.
(I know very little LUA)

Report comment to moderator  
Reply With Quote
Unread 10-15-10, 02:27 PM  
Blooblahguy
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 18
File comments: 202
Uploads: 25
Set "UIParent" to "Minimap" and you'll be all set
Report comment to moderator  
Reply With Quote
Unread 10-16-10, 03:10 PM  
Skylinee
A Murloc Raider

Forum posts: 5
File comments: 371
Uploads: 0
Got mine anchored to minimap, but it appears inside the minimap instead of to the left of it. Using Wanderlust as minimap addon.
Report comment to moderator  
Reply With Quote
Unread 10-16-10, 08:31 PM  
EmpTea
A Kobold Labourer

Forum posts: 0
File comments: 4
Uploads: 0
Originally posted by JohnCover
Any idea how I can apply a horizontal offset to the anchor? I currently have anchor equal to UIParent.
(I know very little LUA)


the default setting was mistyped..i think.

change the 35 and 37 lines of

_G["BuffButton"..i]:SetPoint("TOPRIGHT", anchor, "TOPLEFT", -20, -70)

and you'll make it work normall...

but i'm still working on how to change the skin and the position of temporary weapon buffs...
Report comment to moderator  
Reply With Quote
Unread 10-17-10, 04:31 AM  
stupidmourne
A Kobold Labourer

Forum posts: 0
File comments: 8
Uploads: 0
Hey,

first, thank you for this great Addon . I've got one question :x.

1. Is it possible to change the fontsize of the duration?


Thank you!

Stupid
Report comment to moderator  
Reply With Quote
Unread 10-17-10, 08:50 PM  
Blooblahguy
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 18
File comments: 202
Uploads: 25
Updated to have more config options.

Currently there is no way to change the duration font, though I'll probably add something in the code that will change that in one of the future updates.

Edit: Will also add temporary enchant frame skinning soon.
Last edited by Blooblahguy : 10-17-10 at 08:54 PM.
Report comment to moderator  
Reply With Quote
Unread 10-17-10, 10:29 PM  
kbc8090
A Murloc Raider

Forum posts: 6
File comments: 73
Uploads: 0
Originally posted by Blooblahguy
Updated to have more config options.

Currently there is no way to change the duration font, though I'll probably add something in the code that will change that in one of the future updates.

Edit: Will also add temporary enchant frame skinning soon.
Sure there is.

_G[buff.."Duration"]:SetFont("Fonts\\whatever.ttf", 14, "OUTLINE")

Should work fine in your current code. You also didn't define 'texture' in this version.

I edited up your code a bit and sort of combined it with an old version of rBuff I had and came up with the following. You're welcome to use the Temporary Enchant code as it works perfectly with 1, 2, or 3 weapon enchants, or zero. I also had to hook into the onupdate function instead of the debuff anchor function because that function doesn't update frequently enough to color the debuff borders the correct color.

Code:
anchortominimap = false		-- True/False for whether or not the frames will anchor to your minimap.

BUFFS_PER_ROW = 20;
BUFF_WARNING_TIME = 0;
BUFF_MAX_DISPLAY = 40;

local buffscale = 0.94
local debuffscale = 1.2

local anchor
if anchortominimap then
	anchor = Minimap
else
	anchor = UIParent
end

local bordertex = "Interface\\AddOns\\bBuff\\gloss"
local castcol = { r = 0.9, g = 0.6, b = 0.4, }
local bdc = { r = 0.37, g = 0.3, b = 0.3, a = 1, }

BuffFrame:ClearAllPoints()
TemporaryEnchantFrame:ClearAllPoints()
BuffFrame:SetScale(buffscale)
TemporaryEnchantFrame:SetScale(buffscale)

local function StyleBuffs(buttonName, index, icontype)
    local buff = buttonName..index
    local b = _G[buff.."Border"]
    local co = _G[buff.."Count"]
    local i = _G[buff.."Icon"]
    local f = _G[buff]
    local c = _G[buff.."Gloss"]
    local ff = _G[buff.."Duration"]
    
    ff:SetFont(NAMEPLATE_FONT, 11, "THINOUTLINE")
    ff:SetDrawLayer('OVERLAY')
    ff:ClearAllPoints()
    ff:SetPoint("TOP",f,"BOTTOM",1,7)

    co:SetFont(NAMEPLATE_FONT, 10, "THINOUTLINE")
    co:SetDrawLayer('OVERLAY')
    co:ClearAllPoints()
    co:SetPoint("RIGHT",f,"RIGHT",2,9)

    if not c then

      local fg = CreateFrame("Frame", buff.."Gloss", f)
      fg:SetAllPoints(f)

      local t = f:CreateTexture(buff.."GlossTexture","ARTWORK")
      t:SetTexture(bordertex)
      t:SetPoint("TOPLEFT", fg, "TOPLEFT", 0, 0)
      t:SetPoint("BOTTOMRIGHT", fg, "BOTTOMRIGHT", 0, 0)
      
      i:SetTexCoord(0.05,0.96,0.05,0.96)
      i:SetPoint("TOPLEFT", fg, "TOPLEFT", 2, -2)
      i:SetPoint("BOTTOMRIGHT", fg, "BOTTOMRIGHT", -2, 2)
      
    end

    local tex = _G[buff.."GlossTexture"]    
    
    if icontype == 2 and b then
      local red,green,blue = b:GetVertexColor();    
      tex:SetTexture(bordertex)
      tex:SetVertexColor(red,green,blue,bdc.a)
      f:SetScale(debuffscale)
    elseif icontype == 3 and b then
      tex:SetTexture(bordertex)
      tex:SetVertexColor(0.5,0,0.5,bdc.a)
    else
      tex:SetTexture(bordertex)
      tex:SetVertexColor(bdc.r,bdc.g,bdc.b,bdc.a)
    end  
    
    if b then b:SetAlpha(0) end

end

SecondsToTimeAbbrev = function(time)
    local hr, m, s, text
    if time <= 0 then text = ""
    elseif(time < 3600 and time > 60) then
      hr = floor(time / 3600)
      m = floor(mod(time, 3600) / 60 + 1)
      text = format("%dm", m)
    elseif time < 60 then
      m = floor(time / 60)
      s = mod(time, 60)
      text = (m == 0 and format("%ds", s))
    else
      hr = floor(time / 3600 + 1)
      text = format("%dh", hr)
    end
    return text
end

local function UpdateBuff() 
    local numEnchants = BuffFrame.numEnchants
    for i = 1, BUFF_ACTUAL_DISPLAY do
    StyleBuffs("BuffButton", i)
    _G["BuffButton"..i]:ClearAllPoints()
        if i == 20 then
            _G["BuffButton"..i]:SetPoint("TOPRIGHT", anchor, "TOPRIGHT", -9, -50)
        elseif i == 1 and numEnchants > 0 then
            _G["BuffButton"..i]:SetPoint("TOPRIGHT", _G["TempEnchant" .. numEnchants], "TOPRIGHT", -35, 0)
	elseif i == 1 and numEnchants == 0 then
	    _G["BuffButton"..i]:SetPoint("TOPRIGHT", anchor, "TOPRIGHT", -9, -10)
        else
            _G["BuffButton"..i]:SetPoint("RIGHT", _G["BuffButton" .. i-1], "LEFT", -6, 0)
        end
    end
    for i = 1, BuffFrame.numEnchants do
        StyleBuffs("TempEnchant", i, 3)
        _G["TempEnchant"..i]:ClearAllPoints()
	if i == 1 then
            _G["TempEnchant"..i]:SetPoint("TOPRIGHT", anchor, "TOPRIGHT", -9, -10)
        else
            _G["TempEnchant"..i]:SetPoint("RIGHT", _G["TempEnchant" .. i-1], "LEFT", -6, 0)
        end
    end
end

local function UpdateDebuff(buttonName, index)
    local button = _G[buttonName..index]
    if (button) then
	StyleBuffs(buttonName, index, 2)
	    if index == 1 then
		button:SetPoint("TOPRIGHT", anchor, "TOPRIGHT", -150, -140)
	    else
		button:SetPoint("RIGHT", _G[buttonName .. (index-1)], "LEFT", -6, 0)
	    end
    end
end

hooksecurefunc("BuffFrame_UpdateAllBuffAnchors", UpdateBuff)
hooksecurefunc("AuraButton_Update", UpdateDebuff)
Last edited by kbc8090 : 10-17-10 at 11:09 PM.
Report comment to moderator  
Reply With Quote
Unread 10-18-10, 03:56 AM  
Sniffles
A Black Drake
 
Sniffles's Avatar
AddOn Author - Click to view AddOns

Forum posts: 86
File comments: 75
Uploads: 17
i cant move my buffs, and i dont know why. its always at the minimap's left corner

e: ok i got it
Last edited by Sniffles : 10-18-10 at 05:05 AM.
Report comment to moderator  
Reply With Quote
Unread 10-18-10, 06:45 AM  
Xamael
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 27
Uploads: 1
So... how do you enter config?
Or do I have to edit the .lua?
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: