Thread Tools Display Modes
03-13-11, 10:54 AM   #1
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
Creating powerbar alt as TAG

Talking especially about the Nefarian encounter where the powerbar that is bound to the Onyxia bossframe disappears once you have your own bossframes in the layout.

I thought about a workaround by using the tag system (Because I don't want to create a powerbar). Has anyone a tag at hand that supports powerbar alt?
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)

Last edited by zork : 03-13-11 at 10:57 AM.
  Reply With Quote
03-13-11, 02:18 PM   #2
Aftermathhqt
A Molten Giant
 
Aftermathhqt's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 784
Originally Posted by zork View Post
Talking especially about the Nefarian encounter where the powerbar that is bound to the Onyxia bossframe disappears once you have your own bossframes in the layout.

I thought about a workaround by using the tag system (Because I don't want to create a powerbar). Has anyone a tag at hand that supports powerbar alt?
This

http://www.wowinterface.com/download...yPowerBar.html
  Reply With Quote
03-13-11, 03:49 PM   #3
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
No not at all. I'm looking for a tag based system that works inside an oUF layout not a standalone addon that has to use onUpdate scripts to track blackwing lair encounters.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
  Reply With Quote
03-13-11, 08:09 PM   #4
Monolit
A Black Drake
AddOn Author - Click to view addons
Join Date: Jan 2006
Posts: 81
Originally Posted by zork View Post
Talking especially about the Nefarian encounter where the powerbar that is bound to the Onyxia bossframe disappears once you have your own bossframes in the layout.

I thought about a workaround by using the tag system (Because I don't want to create a powerbar). Has anyone a tag at hand that supports powerbar alt?
mmmm, can't really call it 'workaround' as it's pretty a straight forward tag that I use:

lua Code:
  1. oUF.Tags['mono:altpower'] = function(unit)
  2.     local cur = UnitPower(unit, ALTERNATE_POWER_INDEX)
  3.     local max = UnitPowerMax(unit, ALTERNATE_POWER_INDEX)
  4.     if(max > 0 and not UnitIsDeadOrGhost(unit)) then
  5.         return ("%s%%"):format(math.floor(cur/max*100))
  6.     end
  7. end
  8. oUF.TagEvents['mono:altpower'] = 'UNIT_POWER'
you can also return it as the actual number, but I personally prefer it as % display.

here's the result: http://idfiles.homeip.net/Images/oUF_mono/alt_pow.jpg
  Reply With Quote
03-14-11, 02:07 AM   #5
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
Exactly what I was looking for. Ty.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » Creating powerbar alt as TAG


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