Minion Beta! - Help us test our new AddOn updater. Get it now!
Download
(3 Kb)
Download
Updated: 01-12-11 11:39 PM
Pictures
File Info
Updated:01-12-11 11:39 PM
Created:01-04-11 05:13 AM
Downloads:1,379
Favorites:7
MD5:

Onyxia Bar for Nefarian Encounter

Version: 1.20
by: Pixol [More]

Simple addon that allows you to move Onyxia's Power Bar Alt in the Nefarian Encounter.

You may move it anywhere you want by using the command:
/onybar

New updates:
I have added the value of Onyxia's power (0-100) to the right of the bar. (Not seen in screenshots)

You no longer need to set your focus to Onyxia.

The frame is click through so that it does not get in the way during combat, meaning you can no longer alt click drag the frame.






Based on MovePowerBarAlt

1.2 Oops, forgot to change the ID to boss1
Optional Files (0)


Archived Files (2)
File Name
Version
Size
Author
Date
1.10
3kB
Pixol
01-11-11 11:42 PM
1.00
2kB
Pixol
01-04-11 05:13 AM


Post A Reply Comment Options
Unread 01-23-11, 08:07 PM  
Asheyla
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 354
Uploads: 3
Yeah, that should work, as long as you also call Hide() when it IS zero.
Asheyla is offline Report comment to moderator  
Reply With Quote
Unread 01-21-11, 11:23 PM  
Pixol
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 13
File comments: 62
Uploads: 8
Originally posted by Asheyla
(1) The frame doesn't save its position for me in between sessions. Fix: give the border frame (the one that's being positioned) a name, so that SetUserPlaced() has an effect on it.

(2) When Onyxia's power is 0, the bar shows the previous value from the last attempt. Fix: when setting its width, don't let its width be less than 1 (a frame width of 0 is ignored). Alternatively, use a status bar instead of manually resizing a frame.

Other than that, great work.
Thanks, still learning about lua
I fixed problem 1 like you said
Code:
local border = CreateFrame("Frame","OnyxiaPowerBarAltBorder",UIParent)
I'm thinking for problem 2...

Code:
      if not (onyxia_power == 0) then
        bar:Show()
        spark:Show()
      end
should work.

I'll try learn about statusbars and maybe upload an update next week since nef's dead (woot)
Pixol is offline Report comment to moderator  
Reply With Quote
Unread 01-21-11, 03:16 PM  
Asheyla
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 354
Uploads: 3
(1) The frame doesn't save its position for me in between sessions. Fix: give the border frame (the one that's being positioned) a name, so that SetUserPlaced() has an effect on it.

(2) When Onyxia's power is 0, the bar shows the previous value from the last attempt. Fix: when setting its width, don't let its width be less than 1 (a frame width of 0 is ignored). Alternatively, use a status bar instead of manually resizing a frame.

Other than that, great work.
Last edited by Asheyla : 01-21-11 at 03:16 PM.
Asheyla is offline Report comment to moderator  
Reply With Quote
Unread 01-11-11, 05:25 AM  
Pixol
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 13
File comments: 62
Uploads: 8
I'll create an update for this add-on this evening (due to server maintenance)

The update will still require a focus bar, until I acquire the UnitID of Onyxia in the Nefarian encounter. (i.e. "boss2" or something)
The update creates a new frame rather than use blizzard's frame (which many add-ons have disabled, causing players problem with the add-on)

Edit: Found out Onyxia is boss1 so, don't need a focus frame at all, can just get all the data from there
Last edited by Pixol : 01-12-11 at 02:27 AM.
Pixol is offline Report comment to moderator  
Reply With Quote
Unread 01-04-11, 05:34 AM  
Pixol
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 13
File comments: 62
Uploads: 8
Edit: Below is for old version of this addon: 1.0

If anyone uses Stuf Unit Frames
There's a line inside the following file:
AddOns\Stuf\core.lua
DisableDefault(FocusFrame)
change it to

--DisableDefault(FocusFrame)
I know Pitbull has a module to hide Blizzard Frames, so I'm sure you can just uncheck that.
Last edited by Pixol : 01-12-11 at 02:28 AM.
Pixol is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: