Download
(359Kb)
Download
Updated: 10-24-20 12:31 AM
Pictures
File Info
Compatibility:
Shadowlands pre-patch (9.0.1)
Updated:10-24-20 12:31 AM
Created:04-25-11 12:21 AM
Downloads:10,003
Favorites:76
MD5:

SimplePowerBar  Popular! (More than 5000 hits)

Version: v3.8
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.8]]--
  • ToC Bump
  • Fixes to "SetBackdrop" API change.
  • Fixes to Blizzard API calls and Blizzard color detection.
  • Ace libraries updated.

** Known Issues **
  • Blizzard mover is not working as expected.

--[[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)


Post A Reply Comment Options
Unread 04-27-11, 05:40 AM  
gossipgirlxo
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 10
File comments: 108
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
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: 331
File comments: 1467
Uploads: 50
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.
Report comment to moderator  
Reply With Quote
Unread 04-27-11, 09:46 PM  
gossipgirlxo
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 10
File comments: 108
Uploads: 1
oh no I misunderstood what the addon did. hahaha <3
Last edited by gossipgirlxo : 04-27-11 at 09:47 PM.
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: 331
File comments: 1467
Uploads: 50
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.
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.
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: 331
File comments: 1467
Uploads: 50
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?
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?
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: 331
File comments: 1467
Uploads: 50
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.
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.
Report comment to moderator  
Reply With Quote
Unread 07-28-11, 08:19 AM  
Maxen
A Fallenroot Satyr

Forum posts: 23
File comments: 235
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.
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: 331
File comments: 1467
Uploads: 50
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 )
Report comment to moderator  
Reply With Quote
Unread 08-01-11, 08:20 AM  
Maxen
A Fallenroot Satyr

Forum posts: 23
File comments: 235
Uploads: 0
Woot, thanks !
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: 331
File comments: 1467
Uploads: 50
Originally posted by Maxen
Woot, thanks !
Enjoy !
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: 15
Uploads: 0
Addon needs more recognition, this is great.
Report comment to moderator  
Reply With Quote
Unread 08-23-12, 10:17 PM  
galvin
A Frostmaul Preserver
AddOn Author - Click to view AddOns

Forum posts: 265
File comments: 166
Uploads: 1
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.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump:

Support AddOn Development!

You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.