Minion Beta! - Help us test our new AddOn updater. Get it now!
Download
(223 Kb)
Download
Updated: 10-20-14 01:50 AM
Pictures
File Info
Compatibility:
Warlords of Draenor Pre-Patch (6.0.2)
Updated:10-20-14 01:50 AM
Created:04-25-11 12:21 AM
Downloads:5,183
Favorites:84
MD5:

SimplePowerBar  Popular! (More than 5000 hits)

Version: v3.7
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.7]]--
  • ToC Bump
  • New improvements to statusbar coloring options.
  • Ace libraries updated.

--[[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 (17)
File Name
Version
Size
Author
Date
v3.6
221kB
suicidalkatt
09-10-13 08:13 PM
v3.5
221kB
suicidalkatt
07-09-13 05:45 AM
v3.4
221kB
suicidalkatt
03-05-13 08:01 AM
v3.3
221kB
suicidalkatt
11-27-12 08: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 01: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
Unread 04-27-11, 05:40 AM  
gossipgirlxo
A Deviate Faerie Dragon

Forum posts: 10
File comments: 81
Uploads: 1
the only time the bar is shown is when it is unlocked. when I lock it in position it fails to appear even when in combat.

thank you
gossipgirlxo is offline Report comment to moderator  
Reply With Quote
Unread 04-27-11, 05:47 AM  
suicidalkatt
A Rage Talon Dragon Guard
 
suicidalkatt's Avatar
AddOn Author - Click to view AddOns

Forum posts: 317
File comments: 1411
Uploads: 60
Originally posted by gossipgirlxo
the only time the bar is shown is when it is unlocked. when I lock it in position it fails to appear even when in combat.

thank you
This power bar is for the blizzard Alternate Power only. Was there a particular fight or event it wasn't showing for that you were expecting it to?

I've used it for 2 weeks before I uploaded it and I had no issues.
suicidalkatt is offline Report comment to moderator  
Reply With Quote
Unread 04-27-11, 09:46 PM  
gossipgirlxo
A Deviate Faerie Dragon

Forum posts: 10
File comments: 81
Uploads: 1
oh no I misunderstood what the addon did. hahaha <3
Last edited by gossipgirlxo : 04-27-11 at 09:47 PM.
gossipgirlxo is offline Report comment to moderator  
Reply With Quote
Unread 04-27-11, 10:05 PM  
suicidalkatt
A Rage Talon Dragon Guard
 
suicidalkatt's Avatar
AddOn Author - Click to view AddOns

Forum posts: 317
File comments: 1411
Uploads: 60
Originally posted by gossipgirlxo
oh no I misunderstood what the addon did. hahaha <3
This addon is designed to replace what would be the "Sound Bar" for Atramedes, or the "Corruption Bar" for Cho'gall, things like that.

I'm sure you've figured that out by now :P, but I though I'd clarify it a bit.
suicidalkatt is offline Report comment to moderator  
Reply With Quote
Unread 05-08-11, 11:18 AM  
Neteyes
A Kobold Labourer
 
Neteyes's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 11
Uploads: 1
I can't get it to show even if it's unlocked.
Neteyes is offline Report comment to moderator  
Reply With Quote
Unread 05-08-11, 11:34 AM  
suicidalkatt
A Rage Talon Dragon Guard
 
suicidalkatt's Avatar
AddOn Author - Click to view AddOns

Forum posts: 317
File comments: 1411
Uploads: 60
Originally posted by Neteyes
I can't get it to show even if it's unlocked.
Are you getting any errors? Does this occur when it's the only addon enabled?
suicidalkatt is offline Report comment to moderator  
Reply With Quote
Unread 07-18-11, 12:12 AM  
Zallion
A Murloc Raider

Forum posts: 4
File comments: 5
Uploads: 0
During a Cho'gall fight earlier, I noticed that even though the addon hid the blizzard bar, the tooltip that appears when you mouse over the blizz power bar still appears and blocks some of my buttons on nUI's action bars. Any solutions to this?
Zallion is offline Report comment to moderator  
Reply With Quote
Unread 07-18-11, 05:44 PM  
suicidalkatt
A Rage Talon Dragon Guard
 
suicidalkatt's Avatar
AddOn Author - Click to view AddOns

Forum posts: 317
File comments: 1411
Uploads: 60
Originally posted by Zallion
During a Cho'gall fight earlier, I noticed that even though the addon hid the blizzard bar, the tooltip that appears when you mouse over the blizz power bar still appears and blocks some of my buttons on nUI's action bars. Any solutions to this?
Unless nUI has some addon for AlternatePower, I don't see how that's possible.

The blizzard power bar doesn't have any clickability or a tooltip.


Edit, I'm dumb.

Fixed in v2.4
Last edited by suicidalkatt : 07-19-11 at 03:21 AM.
suicidalkatt is offline Report comment to moderator  
Reply With Quote
Unread 07-20-11, 06:26 PM  
Zallion
A Murloc Raider

Forum posts: 4
File comments: 5
Uploads: 0
Originally posted by suicidalkatt
Unless nUI has some addon for AlternatePower, I don't see how that's possible.

The blizzard power bar doesn't have any clickability or a tooltip.


Edit, I'm dumb.

Fixed in v2.4
nUI does not have anything that replaces the alternatepower. Thank you for the fix though.
Zallion is offline Report comment to moderator  
Reply With Quote
Unread 07-28-11, 08:19 AM  
Maxen
A Deviate Faerie Dragon

Forum posts: 17
File comments: 221
Uploads: 0
is it possible to change the strata of the bar ? I want it on top of my broker bar when needed. Thanks.

edit: added this -> SimplePowerBarBG:SetFrameStrata("HIGH") but can't test it yet
Last edited by Maxen : 07-28-11 at 08:29 AM.
Maxen is offline Report comment to moderator  
Reply With Quote
Unread 07-30-11, 01:25 PM  
suicidalkatt
A Rage Talon Dragon Guard
 
suicidalkatt's Avatar
AddOn Author - Click to view AddOns

Forum posts: 317
File comments: 1411
Uploads: 60
Originally posted by Maxen
is it possible to change the strata of the bar ? I want it on top of my broker bar when needed. Thanks.

edit: added this -> SimplePowerBarBG:SetFrameStrata("HIGH") but can't test it yet
I'll add options for this when I'm back from vaction! ( Monday PST )
suicidalkatt is offline Report comment to moderator  
Reply With Quote
Unread 08-01-11, 08:20 AM  
Maxen
A Deviate Faerie Dragon

Forum posts: 17
File comments: 221
Uploads: 0
Woot, thanks !
Maxen is offline Report comment to moderator  
Reply With Quote
Unread 08-01-11, 05:07 PM  
suicidalkatt
A Rage Talon Dragon Guard
 
suicidalkatt's Avatar
AddOn Author - Click to view AddOns

Forum posts: 317
File comments: 1411
Uploads: 60
Originally posted by Maxen
Woot, thanks !
Enjoy !
suicidalkatt is offline Report comment to moderator  
Reply With Quote
Unread 06-23-12, 01:13 PM  
nectary
A Kobold Labourer
 
nectary's Avatar
Premium Member

Forum posts: 0
File comments: 14
Uploads: 0
Addon needs more recognition, this is great.
nectary is offline Report comment to moderator  
Reply With Quote
Unread 08-23-12, 10:17 PM  
galvin
A Black Drake

Forum posts: 84
File comments: 169
Uploads: 0
I downloaded the one from curse and first thing I do is load this up in scite and find some variables that are global. This mod actually works in beta, I like it, but I don't like the globals.

in core.lua you have
Code:
function SimplePowerBar:CreatePowerBar()
	db = self.db.profile
	local frame = self.frame
	local SimplePowerBarBG = CreateFrame("Frame", "SimplePowerBarBG", frame)
	SimplePowerBarBG:SetFrameStrata(db.frameStrata)
	SimplePowerBarBG:SetFrameLevel(db.frameLevel)
	SimplePowerBarBG:SetHeight(db.height)
	SimplePowerBarBG:SetWidth(db.width)
	SimplePowerBarBG:SetPoint("CENTER",UIParent,"CENTER", db.x, db.y)
	SimplePowerBarBG:SetBackdrop({
		bgFile = db.PanelTex, 
		edgeFile = db.PanelTex, 
		tile = false, tileSize = 0, edgeSize = db.borderSize, 
		insets = { left = db.borderInset, right = db.borderInset, top = db.borderInset, bottom = db.borderInset}
	})
	
	SimplePowerBarBG:SetMovable(true)
	SimplePowerBarBG:SetClampedToScreen(true)
	SimplePowerBarBG:SetUserPlaced(true)
	
	local SimplePowerBarLock = SimplePowerBarBG:CreateTexture("SimplePowerBarLock","OVERLAY",nil)
	SimplePowerBarLock:SetTexture("Interface\\GLUES\\CharacterSelect\\Glues-AddOn-Icons")
	SimplePowerBarLock:SetWidth(8)
	SimplePowerBarLock:SetHeight(8)	
	SimplePowerBarLock:SetTexCoord(0.25,0.48,0,1)
	SimplePowerBarLock:SetAlpha(1)
	SimplePowerBarLock:SetPoint("CENTER",SimplePowerBarBG,"TOPRIGHT")
	
	local SimplePowerBarStatus = CreateFrame("StatusBar", "SimplePowerBarStatus", SimplePowerBarBG)
	SimplePowerBarStatus:SetPoint("TOPLEFT", SimplePowerBarBG, "TOPLEFT", 1, -1)
	SimplePowerBarStatus:SetPoint("BOTTOMRIGHT", SimplePowerBarBG, "BOTTOMRIGHT", -1, 1)	
		
	local SimplePowerBarText = SimplePowerBarStatus:CreateFontString("SimplePowerBarText", "OVERLAY")
		
	local SimplePowerBarLabel = SimplePowerBarStatus:CreateFontString("SimplePowerBarLabel", "OVERLAY")
end
These two lines
local SimplePowerBarText = SimplePowerBarStatus:CreateFontString("SimplePowerBarText", "OVERLAY")

local SimplePowerBarLabel = SimplePowerBarStatus:CreateFontString("SimplePowerBarLabel", "OVERLAY")


Problem is these don't become local for the rest of the addon. When you define a local value inside a function, the rest of the addon won't see it. For now I can just declare these two variables at the top of the addon then change those two lines to take the "local" out.

I know you're still around so hopefully you can do a pass on it to clean it up. I'm sure they'll be plenty of raid encounters using the power bar.

In any addon the only things that should be global blizzard UI stuff. Globals are slower than upvalues too. And can risk having another mod conflict.

Anyway good job with the addon, wish I found it sooner.
galvin is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: