Minion Beta! - Help us test our new AddOn updater. Get it now!
Download
(2 Kb)
Download
Updated: 01-28-11 03:57 AM
Pictures
File Info
Updated:01-28-11 03:57 AM
Created:01-23-11 05:32 PM
Downloads:1,584
Favorites:10
MD5:

BossAltBar

Version: 1.2
by: tutti [More]

Some bosses have special mechanics that place an additional UI bar on your screen. This addon gives you a very plain looking bar in addition to that, that displays the same thing, but being more plain it's in some cases also much more clear. Also, this bar comes along with a numeric display, which the original bars don't, allowing you to accurately gauge how much of the bar is filled rather than having to estimate. Finally, this bar can be moved.

Normally, the bar will appear once you start a fight that uses such a bar, and disappear when you leave combat. You can 'force' it to appear using the slash command /altbar, which is also the command to hide it if it's already shown.

If you want to hide the bored and/or background of the frame, use "/altbar border <on/off>" and "/altbar background <on/off>".

Note that this addon will need the original bar to be shown in order to function. It does not have to be placed anywhere you can actually see it, but it needs to be 'visible' to the UI.

Also note that this addon has only been tested on Onyxia's lightning charge, as the other two bosses with bars are down for me this week. It should, however, work just the same on both

1.2: Added functionality for hiding the border and background of the frame. Fixed a bug that would sometimes reduce the bar to 0 on Cho'gall until the next display update (untested, but should work - update next week if not). Found a better (and hopefully more future-proof) way to hook into the display function.

1.0: Release
Optional Files (0)


Archived Files (1)
File Name
Version
Size
Author
Date
1.0
1kB
tutti
01-23-11 05:32 PM


Post A Reply Comment Options
Unread 02-11-11, 07:27 AM  
tutti
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 18
File comments: 14
Uploads: 6
This is now obsolete. 4.0.6 added an option to display the number on the original bar; it's found under the Status Text category of interface options.

Thus, there will be no further updates.
Last edited by tutti : 02-11-11 at 07:27 AM.
tutti is offline Report comment to moderator  
Reply With Quote
Unread 02-04-11, 08:12 AM  
tutti
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 18
File comments: 14
Uploads: 6
I know it's acting weird on Cho'gall and Atramedes now.

Apparently, the function I hooked into updtes every time anyone's bar changes, even though there's no information about whose bar is changed. Go figure.

A fix will have to wait until next week, I'm afraid. I recommend using version 1.0 until then. I might just add the coding for hiding the borders and background to that and release that as the updated version.
Last edited by tutti : 02-04-11 at 08:13 AM.
tutti is offline Report comment to moderator  
Reply With Quote
Unread 01-28-11, 04:15 AM  
Nibelheim
local roygbi-
 
Nibelheim's Avatar
Featured Addon Author

Forum posts: 1591
File comments: 2310
Uploads: 50
To hide the default, you just have to set it's opacity to 0 in your addon

Code:
PlayerPowerBarAlt:SetAlpha(0)
This way it's OnUpdate scripts will still work, maintaining the operation of your addon.
Nibelheim is offline Report comment to moderator  
Reply With Quote
Unread 01-27-11, 06:35 AM  
tutti
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 18
File comments: 14
Uploads: 6
I can remove the border.

As for the original bar, it needs to remain shown. The reason is that this addon hooks into the function that updates the original bar, and uses the value to update the addon's display. In the tests I've done, that function doesn't run if the bar isn't visible. So unfortunately, the original bar needs to stay visible.

However, in this case 'visible' means that the game will consider it displayed. It doesn't necessarily have to be visible in a way that the player can see it - you are free to hide it off-screen or behind something else. I don't think I will build that into this addon, as there are several other addons that will allow you to move frames - I have even made one myself, called Movable.

On Cho'gall, I have experienced this myself, the bar reset to 0. This only happened once to me, when I was being mind controlled. It looked to me like the original bar disappeared, which is probably related. Either way, it returned to where it was supposed to be the next time I took damage that increased the bar. I'm going to try to fix this.

EDIT: Hiding borders (and background if you want to) works. The Cho'gall bug should also be fixed, although I won't be able to test that this week. I will also need to make sure that I didn't break the addon, which I will be able to do in tonight's raid.
Last edited by tutti : 01-27-11 at 07:44 AM.
tutti is offline Report comment to moderator  
Reply With Quote
Unread 01-25-11, 01:24 PM  
Codex
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 19
File comments: 281
Uploads: 21
Thanks. Any chance to have an option to disable border, and also a way to move and hidet he original bar?

Also on chogall, bar seemed to reset to 0 a few times, not sure why
Last edited by Codex : 01-26-11 at 11:41 PM.
Codex is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: