Download
(23Kb)
Download
Updated: 02-08-11 12:40 AM
Pictures
File Info
Updated:02-08-11 12:40 AM
Created:01-30-11 01:14 AM
Downloads:5,479
Favorites:11
MD5:

oUF BossBars  Popular! (More than 5000 hits)

Version: 1.02
by: kameelyan [More]

This addon is just something I wanted to share.

It simply replaces Blizzard's Boss Frames (boss1-boss4) with some oUF frames.

It includes Boss HP as a %, Boss Mana/Power bar, Boss's Target, and Boss's PowerBarAlt value as a % (for Onyxia, etc.). Additionally, it'll also show a Boss Cast Bar over the Boss HP whenever a cast begins.

This addon is compatible with oUF 1.5.8 and above.

Changes in 1.02:
I removed the oUF core from the addon, as the latest release by Haste has everything this addon needs. Secondly, I created a media folder to store the textures in instead of relying on the sharedmedia addon.

Optional Files (0)


Post A Reply Comment Options
Unread 09-26-12, 12:54 AM  
And
A Kobold Labourer

Forum posts: 0
File comments: 51
Uploads: 0
With oUF 1.6.0 I get the following error, copied and paster grom BugGrabber:

["message"] = "oUF_BossBars\\oUF_BossBars-1.02.lua:15: attempt to index field \"TagEvents\" (a nil value)",
["time"] = "2012/09/25 12:05:33",
["locals"] = "",
["stack"] = "oUF_BossBars\\oUF_BossBars-1.02.lua:15: in main chunk"

I still have to enter an instance, so I'm not sure if the addon is still working.
Thank you!
Report comment to moderator  
Reply With Quote
Unread 09-27-12, 07:44 AM  
kameelyan
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 17
Uploads: 2
Originally Posted by And
With oUF 1.6.0 I get the following error, copied and paster grom BugGrabber:

["message"] = "oUF_BossBars\\oUF_BossBars-1.02.lua:15: attempt to index field \"TagEvents\" (a nil value)",
["time"] = "2012/09/25 12:05:33",
["locals"] = "",
["stack"] = "oUF_BossBars\\oUF_BossBars-1.02.lua:15: in main chunk"

I still have to enter an instance, so I'm not sure if the addon is still working.
Thank you!
Sorry gents, I quit WoW over a year ago and have no plans on updating this addon myself. However, if someone can post the fix to the code, I'll update a new version of it for use.

Sorry for the inconvenience, and thanks for using the addon while I was playing.
Report comment to moderator  
Reply With Quote
Unread 09-27-12, 10:53 AM  
LokeTNV
A Kobold Labourer

Forum posts: 1
File comments: 2
Uploads: 0
Fix for bug

i haven't done extensive tests on this yet though looking at one of the newer oUF layouts on here i determined that the tag syntax changed:

This is the old code (line 14 to line 33):
Code:
oUF.TagEvents['BossBars:altpower'] = 'UNIT_POWER'
oUF.Tags['BossBars:altpower'] = function(unit)
	local cur = UnitPower(unit, ALTERNATE_POWER_INDEX)
	local max = UnitPowerMax(unit, ALTERNATE_POWER_INDEX)
	if(max > 0 and not UnitIsDeadOrGhost(unit)) then
		return ("%s%%"):format(math.floor(cur/max*100+.5))
	else
		return ''
	end
end

oUF.TagEvents['BossBars:health'] = 'UNIT_HEALTH'
oUF.Tags['BossBars:health'] = function(unit)
		local m = UnitHealthMax(unit)
		if(m == 0) then
			return 0
		else
			return math.floor(UnitHealth(unit)/m*100+.5)
		end
end
What i changed it to:
Code:
oUF.Tags.Events['BossBars:altpower'] = 'UNIT_POWER'
oUF.Tags.Methods['BossBars:altpower'] = function(unit)
	local cur = UnitPower(unit, ALTERNATE_POWER_INDEX)
	local max = UnitPowerMax(unit, ALTERNATE_POWER_INDEX)
	if(max > 0 and not UnitIsDeadOrGhost(unit)) then
		return ("%s%%"):format(math.floor(cur/max*100+.5))
	else
		return ''
	end
end

oUF.Tags.Events['BossBars:health'] = 'UNIT_HEALTH'
oUF.Tags.Methods['BossBars:health'] = function(unit)
		local m = UnitHealthMax(unit)
		if(m == 0) then
			return 0
		else
			return math.floor(UnitHealth(unit)/m*100+.5)
		end
end
this removed the error on startup atleast
Report comment to moderator  
Reply With Quote
Unread 10-08-12, 07:11 AM  
zartok
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Thanks for the fix LokeTNV and thanks for the great addon kameelyan!
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: