Download
(20Kb)
Download
Updated: 01-03-09 01:00 PM
Pictures
File Info
Updated:01-03-09 01:00 PM
Created:unknown
Downloads:7,804
Favorites:48
MD5:

ActionButtonText  Popular! (More than 5000 hits)

Version: 1.02
by: kerrang [More]

ActionButtonText - Version 1.02
(formerly known as O.B.I. - On Button Information - users should check the 0.9 upgrade notes for details)
by <Damage Inc> of (EU)Draenor - email damageinc [at] theedgeofthevoid.com

Adds text to your actionbuttons including
Last Damage/Heal Done or Miss (Block/Parry/Dodge)
Casts until OOM
Combo Points
Energy Deficit (Energy or Ticks)
Rune Power Deficit (Death Knights)
Buff/Debuff remaining time/stacks
Supports spells,items and macros

Tested with standard Blizzard Action Bars, Bartender3/4, Bongos2/3, Trinity 1.0/2.0(*), CogsBar, Dominos, idActionBar and nMainBar
Should work with any bar addon which is based on the Blizzard Action Bars
(*) Trinity 2.0 needs a small 'hack' to make it work - see "Changes in Version 0.5" for details (at the end of this document)


How to add ActionButtonText to your actionbuttons
Type /abt (or access ActionButtonText from Menu>>Interface>>Addons)

Presets specific to you race/class are shown here - simply tick the ones you'd like to use.

To change font size/color/position - or to create your own ActionButtonTexts - click through to the Configuratron


ActionButtonText Configuratron! (/abt config)
Select an existing Spell or "New ActionButtonText" to create a new ActionButtonText (/abt add)
Spells which begin "PRESET" are created by the Presets you selected - you can edit these if you wish.

Add ActionButtonText to which buttons
Spell/Item/Macro: (the only thing you MUST enter)
A full (or partial e.g. "Seal of") spell, item (or macro) name.
Note: Any text preceding a # is NOT included when matching spells/items/macros - it's just to comment/describe the ActionButtonText e.g. MYABT#SEAL OF

Search Tooltip?:
Whether Spell/Item/Macro should be matched against the spell/item/macro tooltip rather than just the name

What ActionButtonText to show about Spell(s)
Show Damage/Heal/Miss/Block/Parry
Checking this will show the amount of damage or healing done or a miss (block, parry etc.)

Show Casts until OOM?
Show how many times you can cast a spell with your current mana
No=never, Yes=always, 1-9 =show when this or fewer casts remain

Show CPs?
Show Combo Points on your current target.
No=never, 0=always, 1=show 1 or more CPs

Show Energy Deficit
Shows how much energy you need before you can use an ability.
No=never, As Energy=shows energy required, As Ticks=shows energy ticks required

Show RP Deficit
Shows how much Rune Power you need before you can use an ability.
No=never, In-Combat=shows deficit only when in-combat, Always=shows deficit everywhere

What ActionButtonText to show about Buff/Debuff(s)
Buff:
A full (or partial e.g. "Poison") buff/debuff you wish to track
If blank, defaults to the spell matched (e.g. "Seal of Righteousness")

Debuff?
Whether the Buff is actually a Debuff (e.g. "Recently Bandaged" or "Shadow Word: Pain")

Anyones?
Whether to show a Buff/Debuff from any source (by default only your own Buffs/Debuffs will appear)

Player/Target/Pet
Whether the Buff/Debuff appears on the PLAYER, TARGET or PET

Hide Time?
Check if you DON'T want to see time remaining on the Buff/Debuff

Show Stacks?
Check if you want to see number of stacks of the Buff/Debuff

How ActionButtonText should look
You can set the Position, Font Size, Style and Color for the ActionButtonText text here
The example button shows how it will look.

Save Changes/Cancel Changes/Delete this ActionButtonText
Are self-explanatory...


How to add macros
Macros are identified by reading their tooltip.
You can either 'force' a spellname to show using #showtooltip or you can add the macroname as a 'Spell'

Example 1 - forcing spellnames inside the macro
#showtooltip judgement
[macro code]
This will behave as if you were using the Judgement spell

Example 2 - referencing the macroname
In /abt, select "New ActionButtonText" and enter the macroname in 'Spell'
Spell: TESTMACRO
Buff: SEAL OF
This will show the remaining time on any "Seal of" spell on macro "TESTMACRO"

Macros which use modifiers to change the spell being cast also work
#showtooltip
/cast [modifier:alt] seal of command; seal of righteousness
This will show remaining time on SoR normally and SoC if [ALT] is held down


FAQ
Q - Is this an ACE/ACE2/ACE3 Mod?
A - No - partly because I'm not familiar with ACE and partly because it wouldn't greatly benefit from ACE's framework/libraries.
It's very low-cpu and low-memory - it typically uses < 60kb memory and less than .1% CPU

Q - ActionButtonText seems to use quite a lot of CPU time
A - ActionButtonText has to check the status of buffs/spells and update upto 120 actionbuttons AT LEAST once a second.
It works constantly - even out of combat - hence it will clock-up CPU time constantly.
I've never seen it exceed 1% usage at any one time and it's overall usage is always less than my actionbars/inventory addon tho.
and my PC is old and creaky!!


Known Issues
Q - The 'example' button on the config. screen is black/invisible.
A - It's icon/texture is taken from from the spell you enter OR from ActionButton1
If neither exist/are valid - nothing will appear here...


Credits

Credit to Gagorian for his addon DrDamage
His code for finding and adding text to actionbuttons (Blizzard AND addon-based) was ENORMOUSLY helpful

Credit to Mikk for MSBT - the MSBTOptions frame creation code is used as-is for the Configuratron

My thanks go to these authors for granting permission to use their code...

1.02
BUFFNAME can now contain multiple names separated by "~" (or)
It's possible to show anyone's buffs/debuffs (by default only your own will appear)
The longest duration buff/debuff will be shown when more than one (by name or caster) is matched

1.01
Fixed 'seeing other peoples buffs' as per 3.0.2. changes
Removed Weaponbuff 'test' code
Removed 'absorb' code
Removed OBI_ references
Added API - initial support for ShieldLeft addon

1.00
Fixed width of Delete button in config panel
Fixed issue with Druid 'Mangle' for debuffs...
Changed the Paladin 'Judgement' default to account for the multiple Judgements now possible
Removed 'IF_WRATH' code
Removed all code backwards compatible with O.B.I. - O.B.I. users should upgrade 'through' Version 0.9

0.91
3.0.2. optionsframe change made

0.9
Renamed to ActionButtonText
Slash command now /abt ...
Former O.B.I. users:
Keep O.B.I. installed the first time you login with ActionButtonText (for each character you play) and their settings will be copied over
Once this has been done for every character, you can then delete O.B.I.
You MAY see some odd things with both mods active, but at least you won't lose your settings...

0.8
Fixed error caused by "numeric" macronames being mistaken for spellids
Fixed error which could cause 'Damage/Miss' to be toggled 'on' when it shouldn't have been
Death Knight: Removed Rune Timers (as cooldown addons now work AOK with Rune-based spells)
Code heavily rewritten to reduce reliance on globals

0.7
Font Size now goes down to 8pt (for the more eagle-eyed out there!)
Font Style now includes 'NORMAL' - which means "no border" (another one for the 20-20 vision squad!)
Configuratron! reorganised to make it a bit easier to use (I hope!)
Configuratron! now shows options relevant to your class only (e.g. CTOOM to mana classes, CPs to Rogues/Druids, Runes to DeathKnights etc.)
Tooltips/Hints added to the Configuratron!
"/abt add" will take you straight to the 'Create New ActionButtonText' screen
Death Knights: Runic Power Deficit added - can be showm in-combat or 'always' - new Preset added to put this on all spells which use RP
Hunters: "PET" added as a Buff/Debuff Unit - new preset for Mend Pet added
Support for the WOTLK release of Trinity 2.0 (no hack will be required once that is released)

0.6a
Fixed problem with items on bars in Trinity 2.0

0.6
Better support for Clearcasting on EDEF and CTOOM (shows "00" when Clearcasting active)
idActionBar and nMainBar now supported and some problems with Dominos fixed
Warriors rejoice I remembered to put your ActionBar back in this time! (SORRY!)
DeathKnight Rune Timers added - shows time until all runes spell requires are available - understands death runes - assumes no spell uses more than 1 of a 'type'
TARGET is now a choice of PLAYER/TARGET only - existing ActionButtonText which used black, PLAYER or TARGET will be converted - others will cease to work - sorry!
Added 'Font Style' - a choice of outline thickness for the text.
/abt now shows presets as easy-to-use checkboxes (/abt) - for more detailed ActionButtonText click through to the Configuratron!

0.5
Core code rewritten to support more actionbars and smooth-out updates.
ActionButtonText can now be placed Top/Centre/Bottom of buttons on a per-spell basis
'Damage/Heals/Misses' can now be enabled on buttons (Experimental - feedback greatly apprec. on this!)
Trinity 1.0 support is back!
Trinity 2.0 support is back IF you make a small change to the Trinity 2.0 sourcecode
In WOW\interface\addons\TrinityBars2\bars.lua find the line which looks like this
local spellIndex = {}
and change it (delete the 'local' bit) so it looks like
spellIndex = {}
I've sent a PM to Maul (Trinity developer) for a more permanent solution but he's not been around for some months so in the meanwhile - hack it!

0.4
Fixed some issues with "Energy Deficit" and "Casts til OOM" options being saved correctly
'Always show CTOOM' now previews correctly
Show 1 or more CPs will now show '1' as well as more than '1' *coughs*
Added Support for Cogsbar and Dominos
Removed support for Trinity Bars1/2 - some issues I just can't workaround atm - sorry!
Now works with WOTLK BETA Client (at least it does with Blizzard's Action Bars - NOT tested other addons as yet!)

0.3
Users upgrading WILL LOSE ANY EXISTING SPELLS - sorry about that!
No spells are setup by default now.
Presets exist for most classes - mainly intended as examples of what you can do NOT as a definitive list of possibilities for each class!
Spells are now character-specific - meaning you can have diff. spells on each character without the list getting unmanageably large
"Energy Deficit" and "Casts til OOM" added
Font size, color and 'Example' button added (can be different for each spell)

0.2
UI Added (/abt) - more lines of code than the actual ADDON!!

0.1
Initial Release - manual editing of spells only
Optional Files (0)


Post A Reply Comment Options
Unread 09-30-08, 03:46 PM  
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1710
File comments: 1222
Uploads: 43
Tip: WoWInterface has an own changelog feature, would love if you'd use it
Report comment to moderator  
Reply With Quote
Unread 10-02-08, 11:26 AM  
kerrang
A Flamescale Wyrmkin
AddOn Author - Click to view AddOns

Forum posts: 109
File comments: 96
Uploads: 4
Originally posted by p3lim
Tip: WoWInterface has an own changelog feature, would love if you'd use it
Creating a new addon doesn't offer (or didn't when I did it) the separate changelog (makes sense - it's a new addon) - hence I didnt' separate that out...
Report comment to moderator  
Reply With Quote
Unread 10-05-08, 06:39 PM  
boronak
A Kobold Labourer

Forum posts: 0
File comments: 13
Uploads: 0
Not sure if anyone else having the problem but when i setup up I can't change the colour of the text by clicking on the colour box . It worked fine before it changed from obi to abt. Maybe a mod conflict. I have been able to get around it by putting values in manually into the saved file but its far from ideal. Could you check it out please.

I am playing on the live realms and have deleted all traces of the previous obi install
Last edited by boronak : 10-05-08 at 06:40 PM.
Report comment to moderator  
Reply With Quote
Unread 10-06-08, 05:52 PM  
kerrang
A Flamescale Wyrmkin
AddOn Author - Click to view AddOns

Forum posts: 109
File comments: 96
Uploads: 4
Just a quick note...

In their desperation to get WOTLK out-the-door at any cost, Blizzard are resorting to some outrageously stupid changes to the API - the sort of things anyone with 2 days of formal programming training would NEVER do (renaming API calls for example)!!

This is being done with little-or-no documentation being supplied to addon developers - we're just fielding masses of errors in our code and THEN they tell us what they changed - if we're lucky...

With that in mind, I'm not touching my addons again until 3.0.2. goes live, because right now I'm just chasing my tail while they hack and rename and generally screw things up royally...

Should only be a few weeks - well, maybe, who knows - at the rate they're thrashing builds out and the rate they're changing stuff ANYTHING could happen (the current BETA build is so unstable for me I've given up trying to login!)

I recommend Warhammer Online meanwhile - it's effing excellent
Last edited by kerrang : 10-06-08 at 05:55 PM.
Report comment to moderator  
Reply With Quote
Unread 10-16-08, 12:21 PM  
kerrang
A Flamescale Wyrmkin
AddOn Author - Click to view AddOns

Forum posts: 109
File comments: 96
Uploads: 4
0.91 uploaded and awaiting approval.

Just a quick fix to their last minute API renaming nonsense

Have fun with 3.0.2 and all that!
Last edited by kerrang : 10-16-08 at 12:56 PM.
Report comment to moderator  
Reply With Quote
Unread 10-16-08, 03:46 PM  
sillysyra
A Murloc Raider

Forum posts: 5
File comments: 25
Uploads: 0
Post Weapon Buff Information

Nice to see you updating. abi and o-wheely are so flexible, usable, and unique I just love them

I wanted to know if you are aware of any way to make a player's own castable weapon buff durations i.e. Windfury Weapon, Earthliving Weapon, etc. show up on a button? (even if the button has to be a macro that does nothing or something similarly odd)
I know that weapon buffs are weird to track and ABT probably cant do it... but I was hoping!!

thanks
Report comment to moderator  
Reply With Quote
Unread 10-16-08, 05:18 PM  
kerrang
A Flamescale Wyrmkin
AddOn Author - Click to view AddOns

Forum posts: 109
File comments: 96
Uploads: 4
Weaponbuffs aren't handled well by the WOW API - it will tell you whether you have buffs, how long/how many charges they have left but the ONLY way to tell WHAT buff you have on a weapon - is by reading it's tooltip!!

The buffs you cast have a different name to the actual buff the weapon gets too (Windfury II become Windfury Weapon and so on) and the tooltip is, of course, localised based on your language - it's a REAL mess to sort that out.

I'd hoped they'd sort it out in the 3.0.2 API but there's no sign of that (DK weapon buffs are just as bad or even WORSE than Shaman/Rogue ones) - sorry!
Report comment to moderator  
Reply With Quote
Unread 10-19-08, 05:51 PM  
Lysiander
An Aku'mai Servant

Forum posts: 37
File comments: 16
Uploads: 0
Hi there,

I have a bit of a problem. I am trying to get the duration of a spell to show up. I want a duration indicator for mangle - cat, but not for mangle - bear. If I just put in "Mangle" in both fields, it works fine, but for both incarnations. Any combination of "Mangle - Cat" and "Mangle" (or both the former) won't work however. I tried it with both, tooltip searching enabled and disabled. I even tried to input the ranks.

Is there any form of special format needed because of the "-" in the abilities name or is it just plain impossible to do what I want?
Report comment to moderator  
Reply With Quote
Unread 10-19-08, 06:46 PM  
kerrang
A Flamescale Wyrmkin
AddOn Author - Click to view AddOns

Forum posts: 109
File comments: 96
Uploads: 4
Originally posted by Lysiander I have a bit of a problem. I am trying to get the duration of a spell to show up. I want a duration indicator for mangle - cat, but not for mangle - bear
I'd yet to respec my chars since 3.0.2 so I can't test this just yet but I think the name (as far as the spell is concerned) is Mangle (Cat) or Mangle (Bear).

If you make the Spellname either

Mangle (Cat)
or
Mangle.*Cat
that's a full-stop and an asterisk

That should restrict it to just buttons with that spell on.

You probably won't need to qualify the debuff as you're not likely to have both up at the same time!? - e.g. just Mangle will do...

Let me know if this works - and I'll try to get my chars respecced to try this ASAP
Report comment to moderator  
Reply With Quote
Unread 10-21-08, 12:40 AM  
Lysiander
An Aku'mai Servant

Forum posts: 37
File comments: 16
Uploads: 0
I'd yet to respec my chars since 3.0.2 so I can't test this just yet but I think the name (as far as the spell is concerned) is Mangle (Cat) or Mangle (Bear).
Sorry for beeing unclear, the druid ability names were changed. Previously, you would have been correct, Bliz used to place the form in parenthes behind the abilities. They changed that duo to API problems, because the system would consider the (cat) as ranks and spit out errors. To adress that, the abilities were changed to <name> - <form> in the last patch.

I'll give it a shot anyway tho, maybe Bliz was lazy and didn't fix the combat log entries.
Report comment to moderator  
Reply With Quote
Unread 10-22-08, 06:56 AM  
kerrang
A Flamescale Wyrmkin
AddOn Author - Click to view AddOns

Forum posts: 109
File comments: 96
Uploads: 4
Originally posted by Lysiander
Sorry for beeing unclear, the druid ability names were changed.
I banged my head on the Mangle thing once before (Mangle (Cat)()!!)

I just respecced my druid tho - and entering

MANGLE.*CAT as the spell AND buffname (set debuff and TARGET) works.

.* is a pattern match - it means 'zero or more of any character'

There is an issue in the Blizzard API because according to it

strfind("Mangle - Cat","Mangle - Cat") fails! (- should not be a special character unless surrounded by [] so...)

I suspect it's (mistakenly) reading the - as a pattern match tho so I'll have to figure out a way of getting around their latest half-baked untested code then...
Last edited by kerrang : 10-22-08 at 11:28 AM.
Report comment to moderator  
Reply With Quote
Unread 11-09-08, 05:40 PM  
Lysiander
An Aku'mai Servant

Forum posts: 37
File comments: 16
Uploads: 0
MANGLE.*CAT
Worked fine. Sorry I ddidn't post that before.
Report comment to moderator  
Reply With Quote
Unread 11-18-08, 11:01 AM  
kerrang
A Flamescale Wyrmkin
AddOn Author - Click to view AddOns

Forum posts: 109
File comments: 96
Uploads: 4
Updated to 1.00

Fixed the Paladin 'Judgement' default to reflect the 3 new judgements spells.

Removed some old backwards-compatibility code (mostly relating to the previous addon O.B.I.)
Report comment to moderator  
Reply With Quote
Unread 11-18-08, 04:31 PM  
doomveteran
A Defias Bandit

Forum posts: 3
File comments: 8
Uploads: 0
Any chance of adding ability to turn off tooltip scanning? Running several tooltip mods this becomes a problem.

Using a unique name for a macro rather than having it scan every tooltip to see if the buff matches for each macro would be much better.
Report comment to moderator  
Reply With Quote
Unread 11-18-08, 07:42 PM  
kerrang
A Flamescale Wyrmkin
AddOn Author - Click to view AddOns

Forum posts: 109
File comments: 96
Uploads: 4
Originally posted by doomveteran
Any chance of adding ability to turn off tooltip scanning? Running several tooltip mods this becomes a problem.
What sort of problem does it cause exactly?

I ask because ABT creates it's own (hidden) tooltip using the standard UI - the same way dozens of other addons do - so if it's a problem for ABT it's a problem for MANY other addons...

Using a unique name for a macro rather than having it scan every tooltip to see if the buff matches for each macro would be much better.
You clearly don't know what you're talking about here - ABT doesn't "scan every tooltip" - it scans it's own, hidden tooltip only when it needs to.

ABT uses the tooltip so that macro writers to use the #showtooltip to control how ABT treats their macro.

Even without that tho - reading the tooltip is the simplest (and possibly only with some actionbar mods) way to get the name of a macro from an actionbutton.
Last edited by kerrang : 11-18-08 at 07:43 PM.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: