Thread Tools Display Modes
06-02-10, 12:27 AM   #1
SuranthianH3
A Murloc Raider
 
SuranthianH3's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2010
Posts: 8
Buff Bars.. Any tutorials out there?

I'm interested in making a buff bar addon just for the sake of learning how to, but I can't seem to find tutorials out there and it feels kind of cheap to take and modify other's work. All addons I see that do this seem to have the same basic setup, just like most nameplate addons, but I don't want to just take it and modify it to suit my needs (because I want to release it when I'm done, but I don't want to have to say "I took this addon an modified it")

tl;dr - Any tutorials out there for buff bars?
  Reply With Quote
06-02-10, 12:56 AM   #2
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,934
There's nothing wrong with looking at other addons to see how they made them

From my understanding so far of these things, I would hazard a guess that the following are needed to make a buff addon.

A list of buff functions and events you may need.
A container frame to hold the list of buffs
A frame for each of the possible 40 max buffs anyone can have ( hidden by default I would guess )
Some fontstrings and textures to handle the appropriate values you can glean from the spellinfo function.

The container frame at a guess could also double as the event catcher for the addon watching for login/logout/aura changes etc. Draw the frames and update them as needed.

The different addons probably all use the above but just deal with them in different ways. Learn the possible ways of doing it then see how you can make one that does what YOU want

wowprogramming.com and wowwiki.com are real good resources for looking up events and functions. I usually jump between the both of them as sometimes one will have info and the other won't and vice versa.
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
  Reply With Quote
06-02-10, 01:20 AM   #3
SuranthianH3
A Murloc Raider
 
SuranthianH3's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2010
Posts: 8
Originally Posted by Xrystal View Post
There's nothing wrong with looking at other addons to see how they made them

From my understanding so far of these things, I would hazard a guess that the following are needed to make a buff addon.

A list of buff functions and events you may need.
A container frame to hold the list of buffs
A frame for each of the possible 40 max buffs anyone can have ( hidden by default I would guess )
Some fontstrings and textures to handle the appropriate values you can glean from the spellinfo function.

The container frame at a guess could also double as the event catcher for the addon watching for login/logout/aura changes etc. Draw the frames and update them as needed.

The different addons probably all use the above but just deal with them in different ways. Learn the possible ways of doing it then see how you can make one that does what YOU want

wowprogramming.com and wowwiki.com are real good resources for looking up events and functions. I usually jump between the both of them as sometimes one will have info and the other won't and vice versa.
Thanks for all the help. I appreciate it. Just wondering, though. Since almost all buff addons have the same basic setup of functions, would I be able to take it, take out all the stuff that makes that addon unique (basically making it a very generic buff addon), leaving only the stuff that EVERY buff addon has, then change it into my own to fit my needs? Because if you look up buff bar here all of them are VERY similar
  Reply With Quote
06-02-10, 06:25 AM   #4
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,934
If it's just the sake of learning how they work you can tear an addon apart and see how it works and then write your own one once you figure it out.

Once you get to the point of releasing your own version to the public that's when you need to watch how similarly coded your addons are with others. And of course give credit where it is due.
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » Buff Bars.. Any tutorials out there?


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off