Download
(221 Kb)
Download
Updated: 09-10-13 08:13 PM
Pictures
File Info
Compatibility:
Siege of Orgrimmar (5.4)
Updated:09-10-13 08:13 PM
Created:04-25-11 12:21 AM
Downloads:4,718
Favorites:79
MD5:
5.4
SimplePowerBar
Version: v3.6
by: suicidalkatt [More]
!SimplePowerBar
Is a lightweight addon designed to replace the default Blizzard Alternate Power Bar.
It will automatically show or hide when needed.
Features:
  • Use the clean SimplePowerBar or enable the default Blizzard frame if you so desire.
  • Customizable placement and sizing. Drag and drop placement or exact.
  • Horizontal or vertical statusbar orientation.
  • Customizable coloring for everything as well as optional color fading or class coloring.
  • Additional text options for labeling and percentages.
  • Shared Media support (fonts / statusbar / background / border).
  • All new test mode!
Slash Commands:
  • '/spb' Opens options window.
  • '/spb lock' Toggles frame locking.
  • '/spb blizz' Toggles between SimplePowerBar and the default Blizzard frame.
  • '/spb fade' Toggles color fading.
  • '/spb test' Toggles the test mode.
  • '/spb debug' Displays event messages.
  • '/spb about' Shows about information.
  • '/spb help' Shows slash commands.
Work in progress:
  • Support for AlternatePowerTimers.
--[[v3.6]]--
  • ToC Bump

--[[v3.5]]--
  • ToC Update and minor cvar name fix.

--[[v3.4]]--
  • ToC Update


--[[v3.3]]--
  • ToC Update

--[[v3.2]]--
  • Allowed some selective coloring for particular blizzard textures (Stone Guards). Should additional custom coloring be needed, I will update the table.

--[[v3.1]]--
  • Implemented the ability to set statusbar color to use the default blizzard coloring. /spb > Bar Settings > Statusbar > Coloring Method

--[[v3.0]]--
  • Huge re-write of the internals.
  • Internal Ace Libraries updated.
  • Implemented the ability to use the default Blizzard frame.
  • Added a new test mode.
  • Added coloring and texture settings for border, background, text, and text shadow strings.
  • Completely rearranged the options to make a bit more sense.

--[[v2.7]]--
  • ToC Bump

--2.6
  • Updated for 4.3.

--2.5
  • Added frame strata and level options. (Under 'Size & Placement')

--2.4
  • Changed hiding method.
  • Fixed '/spb lock' sometimes not working.

--2.3
  • ToC bump.

--2.2
  • Typo.

--2.1
  • Major bugfixes.

--2.0
  • Bugfixes.
  • Performance increase.

--1.2
  • Added many more text options.
  • Statusbar orientation can now be changed.

--1.1
  • ToC Bump
Optional Files (0)


Archived Files (16)
File Name
Version
Size
Author
Date
v3.5
221kB
suicidalkatt
07-09-13 05:45 AM
v3.4
221kB
suicidalkatt
03-05-13 07:01 AM
v3.3
221kB
suicidalkatt
11-27-12 07:27 PM
v3.2
221kB
suicidalkatt
10-16-12 10:59 PM
v3.1
220kB
suicidalkatt
10-15-12 06:38 PM
v3.0
220kB
suicidalkatt
09-13-12 12:12 PM
v2.7
214kB
suicidalkatt
08-28-12 03:36 AM
v2.6
209kB
suicidalkatt
11-29-11 12:54 AM
v2.5
209kB
suicidalkatt
08-01-11 12:51 AM
v2.4
209kB
suicidalkatt
07-19-11 03:22 AM
v2.3
209kB
suicidalkatt
06-28-11 02:25 PM
v2.2
209kB
suicidalkatt
06-14-11 07:38 PM
v2.0
209kB
suicidalkatt
05-23-11 10:07 PM
v1.2
209kB
suicidalkatt
05-09-11 09:35 AM
v1.1
208kB
suicidalkatt
04-26-11 06:12 PM
v1.0
208kB
suicidalkatt
04-25-11 12:21 AM


Post A Reply Comment Options
Old 08-05-13, 09:29 PM  
vaeevictiss
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Originally Posted by suicidalkatt
Originally Posted by vaeevictiss
having an issue with this. Even with the blizz frame unchecked it still shows up with this bar as well. I cannot find any way to hide the damn default bar lol >
You may have another addon handling the blizzard power bar. Try seeing if the issue persists with no addons enabled other than spb.

Any chance I could see a screenshot?
I can't get one at the moment, but i do have a ton of addons lol. I checked all the main ones like bartender, grid, dbm, etc and couldn't find anything for that bar. I also use hideblizzard and there isn't even an option for that bar. It has to be a secondary setting of some small addon. That could take a while haha.

Edit: after reading some stuff apparently spartanui handles that bar. I'll browse the settings tomorrow and see how that goes.
Last edited by vaeevictiss : 08-05-13 at 09:51 PM.
vaeevictiss is offline Report comment to moderator  
Reply With Quote
Old 08-05-13, 03:38 AM  
suicidalkatt
A Rage Talon Dragon Guard
 
suicidalkatt's Avatar
AddOn Author - Click to view AddOns

Forum posts: 309
File comments: 1378
Uploads: 60
Originally Posted by vaeevictiss
having an issue with this. Even with the blizz frame unchecked it still shows up with this bar as well. I cannot find any way to hide the damn default bar lol >
You may have another addon handling the blizzard power bar. Try seeing if the issue persists with no addons enabled other than spb.

Any chance I could see a screenshot?
suicidalkatt is offline Report comment to moderator  
Reply With Quote
Old 08-04-13, 09:20 PM  
vaeevictiss
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
having an issue with this. Even with the blizz frame unchecked it still shows up with this bar as well. I cannot find any way to hide the damn default bar lol >
vaeevictiss is offline Report comment to moderator  
Reply With Quote
Old 07-15-13, 09:28 PM  
suicidalkatt
A Rage Talon Dragon Guard
 
suicidalkatt's Avatar
AddOn Author - Click to view AddOns

Forum posts: 309
File comments: 1378
Uploads: 60
Originally Posted by FaulTier
Since MoP i'm getting this error:

Code:
12x SimplePowerBar-3.3\Core.lua:475: attempt to index field "shadow" (a number value)
SimplePowerBar-3.3\Core.lua:475: in function "FullUpdate"
SimplePowerBar-3.3\Core.lua:169: in function <SimplePowerBar\Core.lua:56>
(tail call): ?
<in C code>
<string>:"safecall Dispatcher[1]":9: in function <string>:"safecall Dispatcher[1]":5
(tail call): ?
Ace3-r1066\AceAddon-3.0\AceAddon-3.0-11.lua:514: in function "InitializeAddon"
Ace3-r1066\AceAddon-3.0\AceAddon-3.0-11.lua:629: in function <Ace3\AceAddon-3.0\AceAddon-3.0.lua:621>

Locals:
nil
Any help on this?
This was a wow client bug that's since been addressed. Hope this is no long an issue for you.
suicidalkatt is offline Report comment to moderator  
Reply With Quote
Old 11-28-12, 02:31 PM  
FaulTier
A Theradrim Guardian
 
FaulTier's Avatar
AddOn Author - Click to view AddOns

Forum posts: 60
File comments: 175
Uploads: 5
Since MoP i'm getting this error:

Code:
12x SimplePowerBar-3.3\Core.lua:475: attempt to index field "shadow" (a number value)
SimplePowerBar-3.3\Core.lua:475: in function "FullUpdate"
SimplePowerBar-3.3\Core.lua:169: in function <SimplePowerBar\Core.lua:56>
(tail call): ?
<in C code>
<string>:"safecall Dispatcher[1]":9: in function <string>:"safecall Dispatcher[1]":5
(tail call): ?
Ace3-r1066\AceAddon-3.0\AceAddon-3.0-11.lua:514: in function "InitializeAddon"
Ace3-r1066\AceAddon-3.0\AceAddon-3.0-11.lua:629: in function <Ace3\AceAddon-3.0\AceAddon-3.0.lua:621>

Locals:
nil
Any help on this?
__________________
FaulTier is offline Report comment to moderator  
Reply With Quote
Old 10-18-12, 10:00 AM  
blizzart
A Murloc Raider
 
blizzart's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4
File comments: 111
Uploads: 9
Originally Posted by suicidalkatt
Originally Posted by blizzart
No rage support?
Dont get it to work for my warrior.
This addon is not intended to show your current power level. It is used for displaying the UnitPowerBarAlt information. This is blizzards informational display used for various boss encounters such as the Stone Guards within MV or the game timers you see while enjoying the darkmoon fair.
Oh ok, absolutely my fail... I thought that it also works with the own powerbar.
__________________
Kryptik @ Die Arguswacht
blizzart is offline Report comment to moderator  
Reply With Quote
Old 10-18-12, 04:24 AM  
suicidalkatt
A Rage Talon Dragon Guard
 
suicidalkatt's Avatar
AddOn Author - Click to view AddOns

Forum posts: 309
File comments: 1378
Uploads: 60
Originally Posted by blizzart
No rage support?
Dont get it to work for my warrior.
This addon is not intended to show your current power level. It is used for displaying the UnitPowerBarAlt information. This is blizzards informational display used for various boss encounters such as the Stone Guards within MV or the game timers you see while enjoying the darkmoon fair.
suicidalkatt is offline Report comment to moderator  
Reply With Quote
Old 10-18-12, 02:37 AM  
blizzart
A Murloc Raider
 
blizzart's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4
File comments: 111
Uploads: 9
No rage support?
Dont get it to work for my warrior.
__________________
Kryptik @ Die Arguswacht
blizzart is offline Report comment to moderator  
Reply With Quote
Old 10-16-12, 09:18 PM  
galvin
A Theradrim Guardian

Forum posts: 66
File comments: 152
Uploads: 0
Originally Posted by suicidalkatt
Originally Posted by galvin
The color option doesn't work on stone guardians, my guess is they're using colored textures instead.
So the best thing to do is allow us to change the color of each type of bar thru a table.
It seems you are correct. I assume the color came out white? Instead of going by name and directly looking for an unlocalized name, I'll do a check for texture:

Lua Code:
  1. local path = "Interface\\UNITPOWERBARALT\\"
  2. local blizzColors = {
  3.     [path.."StoneGuardAmethyst_Horizontal_Fill"] = {
  4.         r = 0.50,
  5.         g = 0.45,
  6.         b = 0.75,
  7.     },
  8.     [path.."StoneGuardCobalt_Horizontal_Fill"] = {
  9.         r = 0.35,
  10.         g = 0.66,
  11.         b = 0.78,
  12.     },
  13.     [path.."StoneGuardJade_Horizontal_Fill"] = {
  14.         r = 0.48,
  15.         g = 0.75,
  16.         b = 0.47,
  17.     },
  18.     [path.."StoneGuardJasper_Horizontal_Fill"] = {
  19.         r = 0.72,
  20.         g = 0.48,
  21.         b = 0.48,
  22.     }
  23. }

Also, to make it easy on users, I'll be keeping it 'blizzard' coloring and not have to worry about particular bosses and custom coloring.
Yeah it was white, I had to go back to using my modifed mod instead. Glad I tested your new version in LFR first before doing heroic
Last edited by galvin : 10-16-12 at 09:18 PM.
galvin is offline Report comment to moderator  
Reply With Quote
Old 10-16-12, 07:04 PM  
suicidalkatt
A Rage Talon Dragon Guard
 
suicidalkatt's Avatar
AddOn Author - Click to view AddOns

Forum posts: 309
File comments: 1378
Uploads: 60
Originally Posted by galvin
The color option doesn't work on stone guardians, my guess is they're using colored textures instead.
So the best thing to do is allow us to change the color of each type of bar thru a table.
It seems you are correct. I assume the color came out white? Instead of going by name and directly looking for an unlocalized name, I'll do a check for texture:

Lua Code:
  1. local path = "Interface\\UNITPOWERBARALT\\"
  2. local blizzColors = {
  3.     [path.."StoneGuardAmethyst_Horizontal_Fill"] = {
  4.         r = 0.50,
  5.         g = 0.45,
  6.         b = 0.75,
  7.     },
  8.     [path.."StoneGuardCobalt_Horizontal_Fill"] = {
  9.         r = 0.35,
  10.         g = 0.66,
  11.         b = 0.78,
  12.     },
  13.     [path.."StoneGuardJade_Horizontal_Fill"] = {
  14.         r = 0.48,
  15.         g = 0.75,
  16.         b = 0.47,
  17.     },
  18.     [path.."StoneGuardJasper_Horizontal_Fill"] = {
  19.         r = 0.72,
  20.         g = 0.48,
  21.         b = 0.48,
  22.     }
  23. }

Also, to make it easy on users, I'll be keeping it 'blizzard' coloring and not have to worry about particular bosses and custom coloring.
Last edited by suicidalkatt : 10-16-12 at 07:04 PM.
suicidalkatt is offline Report comment to moderator  
Reply With Quote
Old 10-16-12, 06:23 PM  
galvin
A Theradrim Guardian

Forum posts: 66
File comments: 152
Uploads: 0
Originally Posted by suicidalkatt
Originally Posted by galvin
Originally Posted by suicidalkatt
Originally Posted by galvin
Is there a way to have this show the original texture and color. On the stone guardians fight, the color of the bar is important.
I believe I could add "use default coloring" in there but Im not familiar with the encounter. Could you enlighten me on the encounter or show me a screenshot of the blizzard bar?
I updated my post below. I'd rather have a list of all the alt action bars, then be able to set a color to each one. But if that's too complicated then just searching a substring in the alt text would be best.
I can access the Blizzard statusbar colors with their function they provide:
Lua Code:
  1. local texture, r, g, b = UnitAlternatePowerTextureInfo(unit,textureIndex,[timerFrameIndex])

Being able to set a custom color per bar with every bar listed is not doable however. You can now enable 'Blizzard coloring' for statusbars but you must disable class coloring and not use the color fade option (obviously).

/spb > Bar Settings > Statusbar > Coloring Method
The color option doesn't work on stone guardians, my guess is they're using colored textures instead.
So the best thing to do is allow us to change the color of each type of bar thru a table.
galvin is offline Report comment to moderator  
Reply With Quote
Old 10-15-12, 06:36 PM  
suicidalkatt
A Rage Talon Dragon Guard
 
suicidalkatt's Avatar
AddOn Author - Click to view AddOns

Forum posts: 309
File comments: 1378
Uploads: 60
Originally Posted by galvin
Originally Posted by suicidalkatt
Originally Posted by galvin
Is there a way to have this show the original texture and color. On the stone guardians fight, the color of the bar is important.
I believe I could add "use default coloring" in there but Im not familiar with the encounter. Could you enlighten me on the encounter or show me a screenshot of the blizzard bar?
I updated my post below. I'd rather have a list of all the alt action bars, then be able to set a color to each one. But if that's too complicated then just searching a substring in the alt text would be best.
I can access the Blizzard statusbar colors with their function they provide:
Lua Code:
  1. local texture, r, g, b = UnitAlternatePowerTextureInfo(unit,textureIndex,[timerFrameIndex])

Being able to set a custom color per bar with every bar listed is not doable however. You can now enable 'Blizzard coloring' for statusbars but you must disable class coloring and not use the color fade option (obviously).

/spb > Bar Settings > Statusbar > Coloring Method
Last edited by suicidalkatt : 10-15-12 at 06:44 PM.
suicidalkatt is offline Report comment to moderator  
Reply With Quote
Old 10-15-12, 01:10 PM  
galvin
A Theradrim Guardian

Forum posts: 66
File comments: 152
Uploads: 0
Originally Posted by suicidalkatt
Originally Posted by galvin
Is there a way to have this show the original texture and color. On the stone guardians fight, the color of the bar is important.
I believe I could add "use default coloring" in there but Im not familiar with the encounter. Could you enlighten me on the encounter or show me a screenshot of the blizzard bar?
I updated my post below. I'd rather have a list of all the alt action bars, then be able to set a color to each one. But if that's too complicated then just searching a substring in the alt text would be best.
galvin is offline Report comment to moderator  
Reply With Quote
Old 10-14-12, 05:55 PM  
suicidalkatt
A Rage Talon Dragon Guard
 
suicidalkatt's Avatar
AddOn Author - Click to view AddOns

Forum posts: 309
File comments: 1378
Uploads: 60
Originally Posted by galvin
Is there a way to have this show the original texture and color. On the stone guardians fight, the color of the bar is important.
I believe I could add "use default coloring" in there but Im not familiar with the encounter. Could you enlighten me on the encounter or show me a screenshot of the blizzard bar?
Last edited by suicidalkatt : 10-14-12 at 05:58 PM.
suicidalkatt is offline Report comment to moderator  
Reply With Quote
Old 10-14-12, 04:03 PM  
galvin
A Theradrim Guardian

Forum posts: 66
File comments: 152
Uploads: 0
Is there a way to have this show the original texture and color. On the stone guardians fight, the color of the bar is important.

Came up with a simple way to do this. Have a lookup table for the name. So if powerbar text has a certain name, it looks the name up in a table then applies a color.

I did some looking, and I think there is a table of all the bars or a way to build a table. This way you could just have a list, and put in an override color for the bars you want. For now I'm going to hack the mod to show the color for the guardians.

I added this function, but checking for exact text wouldn't be a good idea as an option, but searching for a substring would.

Code:
local function SetColorBasedOnText()
  local Label = select(10,UnitAlternatePowerInfo('player'))
  local r, g, b = 0, 0, 0

  if Label == 'Jade Petrification' then -- green
    r, g, b = 0, 1, 0
  elseif Label == 'Jasper Petrification' then -- red
    r, g, b = 1, 0, 0
  elseif Label == 'Amethyst Petrification' then -- purple
    r, g, b = 1, 0, 1
  elseif Label == 'Cobalt Petrification' then -- blue
    r, g, b = 0, 0, 1
  end

  SimplePowerBarStatus:SetStatusBarColor(r, g, b)
end
Last edited by galvin : 10-14-12 at 07:00 PM.
galvin is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: