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,752
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 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 09-10-12, 12:24 AM  
suicidalkatt
A Rage Talon Dragon Guard
 
suicidalkatt's Avatar
AddOn Author - Click to view AddOns

Forum posts: 310
File comments: 1379
Uploads: 60
Originally Posted by galvin
How hard would it be to make the addon just move the default bar without changing the way it looks?

I tried doing this my self, but the bar wouldn't move vertically.
No, I've been reworking this addon a lot and I'll be providing a way to use the addon or switch to the default blizzard frames and place them where you'd like.
suicidalkatt is offline Report comment to moderator  
Reply With Quote
Unread 09-04-12, 05:22 PM  
galvin
A Cliff Giant

Forum posts: 75
File comments: 158
Uploads: 0
How hard would it be to make the addon just move the default bar without changing the way it looks?

I tried doing this my self, but the bar wouldn't move vertically.
galvin is offline Report comment to moderator  
Reply With Quote
Unread 08-24-12, 12:01 AM  
galvin
A Cliff Giant

Forum posts: 75
File comments: 158
Uploads: 0
Originally Posted by suicidalkatt
Originally Posted by galvin
I updated your toc file, so you don't need the libs.xml file.
Maybe I like my Libs xml!
haha, I hate XML evil xml :P
galvin is offline Report comment to moderator  
Reply With Quote
Unread 08-23-12, 11:39 PM  
suicidalkatt
A Rage Talon Dragon Guard
 
suicidalkatt's Avatar
AddOn Author - Click to view AddOns

Forum posts: 310
File comments: 1379
Uploads: 60
Originally Posted by galvin
I updated your toc file, so you don't need the libs.xml file.
Maybe I like my Libs xml!
suicidalkatt is offline Report comment to moderator  
Reply With Quote
Unread 08-23-12, 11:06 PM  
galvin
A Cliff Giant

Forum posts: 75
File comments: 158
Uploads: 0
I updated your toc file, so you don't need the libs.xml file.

Code:
## Interface: 40300
## Author: Suicidal Katt
## Version: 2.6
## Title: !Simple|cff5CB3FFPowerBar|r
## Notes: A smart and simple blizzard power bar alt.
## SavedVariables: SimpPB_DB

# load libs

Libs\LibStub\LibStub.lua
Libs\CallbackHandler-1.0\CallbackHandler-1.0.xml
Libs\AceGUI-3.0\AceGUI-3.0.xml
Libs\AceAddon-3.0\AceAddon-3.0.xml
Libs\AceConfig-3.0\AceConfig-3.0.xml
Libs\AceConsole-3.0\AceConsole-3.0.xml
Libs\AceDB-3.0\AceDB-3.0.xml
Libs\AceDBOptions-3.0\AceDBOptions-3.0.xml
Libs\LibSharedMedia-3.0\lib.xml
Libs\AceGUI-3.0-SharedMediaWidgets\widget.xml


# Load addon stuff

Media.lua
Core.lua
Options.lua
galvin is offline Report comment to moderator  
Reply With Quote
Unread 08-23-12, 10:26 PM  
suicidalkatt
A Rage Talon Dragon Guard
 
suicidalkatt's Avatar
AddOn Author - Click to view AddOns

Forum posts: 310
File comments: 1379
Uploads: 60
Originally Posted by galvin
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
--[[ snip ]]--
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.
When I first made this addon I was still relatively new to Lua coding and how frame elements were created / used.

I will be updating this for MoP Beta and will be adding those silly timers that blizzard uses for their AlternatePowerBar.

I'm glad you're enjoying the addon
suicidalkatt is offline Report comment to moderator  
Reply With Quote
Unread 08-23-12, 10:17 PM  
galvin
A Cliff Giant

Forum posts: 75
File comments: 158
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
Unread 06-23-12, 01:13 PM  
nectary
A Kobold Labourer
 
nectary's Avatar
Premium Member

Forum posts: 0
File comments: 9
Uploads: 0
Addon needs more recognition, this is great.
nectary 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: 310
File comments: 1379
Uploads: 60
Originally posted by Maxen
Woot, thanks !
Enjoy !
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 07-30-11, 01:25 PM  
suicidalkatt
A Rage Talon Dragon Guard
 
suicidalkatt's Avatar
AddOn Author - Click to view AddOns

Forum posts: 310
File comments: 1379
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 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-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-18-11, 05:44 PM  
suicidalkatt
A Rage Talon Dragon Guard
 
suicidalkatt's Avatar
AddOn Author - Click to view AddOns

Forum posts: 310
File comments: 1379
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-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
Post A Reply



Category Jump: