Download
(2MB)
Download
Updated: 06-29-10 07:15 AM
Pictures
File Info
Updated:06-29-10 07:15 AM
Created:10-26-09 05:44 PM
Downloads:10,244
Favorites:34
MD5:

CBuff  Popular! (More than 5000 hits)

Version: 3.3.5
by: Castle [More]

:: Description ::
This AddOn styles and colorizes your Buffs and Debuffs, to make them look "yummy", or just really slick.

Config: Completely configurable by LUA, uses small amount of memory, comes with many skins and fonts.

Similarities: It's an addon similar to ButtonFacade, but for your buffs, pretty simple.

Authors: Feel free to add additional skins or fonts for this addon if you wish.

Enjoy.

-Castle

Optional Files (0)


Post A Reply Comment Options
Unread 10-26-09, 09:29 PM  
lanacan
A Warpwood Thunder Caller
 
lanacan's Avatar
AddOn Author - Click to view AddOns

Forum posts: 94
File comments: 177
Uploads: 13
Locals

Only comment i can think of is:

You should put the texture paths and font paths, sizes, outlines in their own local variables at the top of the lua file to make it easier to switch them.
__________________
Busy modifying your code for my own UI.
Report comment to moderator  
Reply With Quote
Unread 11-01-09, 03:00 PM  
abomb93
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 11
Uploads: 1
Re: Locals

Originally posted by lanacan
Only comment i can think of is:

You should put the texture paths and font paths, sizes, outlines in their own local variables at the top of the lua file to make it easier to switch them.
I thoroughly agree with Lanacan. It is a bit challenging to skin my own buffs when I have to spend a ton of time searching for the filepaths. Great addon.
Report comment to moderator  
Reply With Quote
Unread 11-24-09, 04:10 AM  
shinchih2001
A Defias Bandit

Forum posts: 3
File comments: 198
Uploads: 0
may i know what addon about your totemtime icon with cooldown
Last edited by shinchih2001 : 11-24-09 at 06:56 PM.
Report comment to moderator  
Reply With Quote
Unread 11-24-09, 09:45 AM  
Kinless
A Defias Bandit

Forum posts: 2
File comments: 29
Uploads: 0
action bar skin

What skin are you using on your action bars?

I've got button facade, but can't determine which skin you're using. Whatever it is looks really cool.

Edit: It's the Darion skin.
Last edited by Kinless : 11-24-09 at 10:44 AM.
Report comment to moderator  
Reply With Quote
Unread 12-06-09, 11:31 AM  
LadySilverwolf
Premium Member
 
LadySilverwolf's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 41
File comments: 70
Uploads: 2
Commenting in .lua

I am not much of a 'programmer' nor do I know how to write scripts, but I do think I can be intuitive when it comes to reading .lua files. Sometimes that is. ... I really should get that World of Warcraft Programming book.... *eyeshift* ....

In the case of Castle Buffs, I find myself tinkering with X axis and Y axis points so that I can move the actual buffs down and to the right since I use Pocket Plot and Docking Station. Would it be possible if you could by chance add some comments within your .lua file? It would make it ssoooooo much easier for those of us who do not speak the lingo as well as most addon authors. Then perhaps I could at least figure out which X's and which Y's I could/should modify/move

And did I mention ... it sure would be greatly appreciated? I seem to find myself scratching my head sometimes, wondering why one x does what I want it to do, and yet another another does not.

Thanks in advance....
Report comment to moderator  
Reply With Quote
Unread 12-09-09, 07:35 PM  
Sketch
A Wyrmkin Dreamwalker

Forum posts: 51
File comments: 15
Uploads: 0
Re: Commenting in .lua

Originally posted by LadySilverwolf
I am not much of a 'programmer' nor do I know how to write scripts, but I do think I can be intuitive when it comes to reading .lua files. Sometimes that is. ... I really should get that World of Warcraft Programming book.... *eyeshift* ....

In the case of Castle Buffs, I find myself tinkering with X axis and Y axis points so that I can move the actual buffs down and to the right since I use Pocket Plot and Docking Station. Would it be possible if you could by chance add some comments within your .lua file? It would make it ssoooooo much easier for those of us who do not speak the lingo as well as most addon authors. Then perhaps I could at least figure out which X's and which Y's I could/should modify/move

And did I mention ... it sure would be greatly appreciated? I seem to find myself scratching my head sometimes, wondering why one x does what I want it to do, and yet another another does not.

Thanks in advance....
I agree...I think this is a great little addon for skinning buffs, but I don't know squat about programming, even in LUA. Even if you just add comments of what should be adjusted where, it would make a world of difference.
__________________
Report comment to moderator  
Reply With Quote
Unread 12-10-09, 05:40 AM  
lanznaster
A Kobold Labourer

Forum posts: 0
File comments: 14
Uploads: 0
i get this error:


Message: Interface\AddOns\CBuff\CBuff.lua:128: hooksecurefunc(): BuffButton_UpdateAnchors is not a function
Time: 12/10/09 11:39:36
Count: 1
Stack: [C]: in function `hooksecurefunc'
Interface\AddOns\CBuff\CBuff.lua:128: in main chunk

Locals:
Report comment to moderator  
Reply With Quote
Unread 12-10-09, 06:49 AM  
Ilve
A Murloc Raider
 
Ilve's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5
File comments: 26
Uploads: 1
2lanznaster
I fixed lua code for myself:

before
hooksecurefunc("BuffButton_UpdateAnchors", function(buttonName, index)
-- function BuffButton_UpdateAnchors(buttonName, index)
...
end)

hooksecurefunc("DebuffButton_UpdateAnchors", function(buttonName, index)
-- function DebuffButton_UpdateAnchors(buttonName, index)
...
end)

after
-- hooksecurefunc("BuffButton_UpdateAnchors", function(buttonName, index)
function BuffButton_UpdateAnchors(buttonName, index)
...
end

-- hooksecurefunc("DebuffButton_UpdateAnchors", function(buttonName, index)
function DebuffButton_UpdateAnchors(buttonName, index)
end
It works, but is not absolutely correct( and very strong...
Waiting for addon update.
Last edited by Ilve : 12-10-09 at 06:57 AM.
Report comment to moderator  
Reply With Quote
Unread 12-10-09, 11:26 AM  
Castle
A Murloc Raider
 
Castle's Avatar
AddOn Author - Click to view AddOns

Forum posts: 7
File comments: 56
Uploads: 3
Originally posted by lanznaster
i get this error:


Message: Interface\AddOns\CBuff\CBuff.lua:128: hooksecurefunc(): BuffButton_UpdateAnchors is not a function
Time: 12/10/09 11:39:36
Count: 1
Stack: [C]: in function `hooksecurefunc'
Interface\AddOns\CBuff\CBuff.lua:128: in main chunk

Locals:
Should be fixed now.
__________________
CError :: Remove red text spam from your screen!
TCL :: True Chain Lightning! Bringing back epic sounds since 2005.
Report comment to moderator  
Reply With Quote
Unread 12-11-09, 11:21 PM  
NickDias
A Defias Bandit

Forum posts: 2
File comments: 11
Uploads: 0
Seems like 3.3 messed up Cbuff. I'm having this issue.



Help is greatly appreciated. Checking the new buff options seems to really mess with this mod.
Report comment to moderator  
Reply With Quote
Unread 12-12-09, 05:59 AM  
Castle
A Murloc Raider
 
Castle's Avatar
AddOn Author - Click to view AddOns

Forum posts: 7
File comments: 56
Uploads: 3
Originally posted by NickDias
Seems like 3.3 messed up Cbuff. I'm having this issue.



Help is greatly appreciated. Checking the new buff options seems to really mess with this mod.
I don't see anything wrong in the screenshot, and you didnt specify any problems. Mine works fine.
__________________
CError :: Remove red text spam from your screen!
TCL :: True Chain Lightning! Bringing back epic sounds since 2005.
Report comment to moderator  
Reply With Quote
Unread 12-12-09, 07:14 AM  
NickDias
A Defias Bandit

Forum posts: 2
File comments: 11
Uploads: 0
Originally posted by Castle
I don't see anything wrong in the screenshot, and you didnt specify any problems. Mine works fine.
Sorry, suppose I should of been more specific. I just want them to be aligned horizontally. I've tried editing lua but I'm terrible at it. Other mods/default frames are all Aligned, but no matter what I try I cant seem to get cbuff aligned. Looking at the screenshot and looking at mine it seems like my buffs only go about 6 wide while the screenie goes much farther. Don't know if that's important or helpful. Trying to give you as much info as I can because I'd really like to use this addon.

Really great graphics btw, thanks for it.
Last edited by NickDias : 12-12-09 at 07:25 AM.
Report comment to moderator  
Reply With Quote
Unread 12-15-09, 06:37 PM  
Vorken
A Kobold Labourer

Forum posts: 0
File comments: 4
Uploads: 0
Having the same problem, the first row of buffs is not aligned with the second row and the debuff row is completely off.
Report comment to moderator  
Reply With Quote
Unread 12-15-09, 11:24 PM  
Castle
A Murloc Raider
 
Castle's Avatar
AddOn Author - Click to view AddOns

Forum posts: 7
File comments: 56
Uploads: 3
Originally posted by Vorken
Having the same problem, the first row of buffs is not aligned with the second row and the debuff row is completely off.
Well it's supposed to be like that. I aligned them in that way, because I play a shaman/rogue usually and the weapon buffs such as poisons and flametongue weapon, need to be clearly seen amongst other buffs, so they are pushed up a bit and moved over, so the other buffs are aligned to the left of them.

If you prefer something different, just edit the LUA where the positions are.
__________________
CError :: Remove red text spam from your screen!
TCL :: True Chain Lightning! Bringing back epic sounds since 2005.
Report comment to moderator  
Reply With Quote
Unread 12-16-09, 01:08 AM  
NickDias
A Defias Bandit

Forum posts: 2
File comments: 11
Uploads: 0
Any chance you could tell me what lines? I tried adjusting numbers with no result at all. I'm by no means great with lua but I thought I was adjusting the right lines. I don't mind figuring out the positioning if I know what lines to edit. I'd like to just reposition the wep chant frame under the map.

EDIT: If you're like me and don't play a rogue or shaman and wep enchants don't matter to you, you can open the lua and erase these lines.

TemporaryEnchantFrame:ClearAllPoints()
TemporaryEnchantFrame:SetPoint("TOPRIGHT", UIParent, "TOPRIGHT", -190, -10)
TemporaryEnchantFrame.SetPoint = function() end

TempEnchant2:ClearAllPoints()
TempEnchant2:SetPoint("BOTTOMLEFT", TempEnchant1, "BOTTOMLEFT", -35, 0)

TemporaryEnchantFrame:HookScript("OnUpdate", function()
local hasMainHandEnchant, _, _, hasOffHandEnchant, _, _ = GetWeaponEnchantInfo()
if (hasMainHandEnchant and hasOffHandEnchant) then
BuffFrame:ClearAllPoints()
BuffFrame:SetPoint("TOPRIGHT", TempEnchant2, "TOPLEFT", -10, 0)
return
elseif (hasMainHandEnchant or hasOffHandEnchant) then
BuffFrame:ClearAllPoints()
BuffFrame:SetPoint("CENTER", TempEnchant1, "CENTER", -60, 0)
return
elseif (not hasMainHandEnchant and not hasOffHandEnchant) then
BuffFrame:ClearAllPoints()
BuffFrame:SetPoint("CENTER", TemporaryEnchantFrame, "CENTER", -60, 0)
return
end
end)

Seems to have worked for me, no promises. I don't know what this will do to the wep chant frame, but I don't care.

EDIT2: Tested on my low level rogue, seems like this just considers the wep buffs normal buffs, so all erasing those lines seems to change is how default cbuff has these enchants stand out.
Last edited by NickDias : 12-16-09 at 01:38 AM.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: