Minion Beta! - Help us test our new AddOn updater. Get it now!
Download
(1 Kb)
Download
Updated: 12-03-11 05:58 PM
Pictures
File Info
Updated:12-03-11 05:58 PM
Created:05-20-11 10:56 PM
Downloads:3,104
Favorites:14
MD5:

BetterBlizzardButtonBorder

Version: 1.1.3
by: Aprikot [More]

* Version 1.1.3

  • Extra fix for extra ExtraActionButton error
* AddOn Description
Designed for use with the default UI, BBBB is an AddOn that attempts to present the "true" identity of Blizzard's existing button border texture (UI-Quickslot2) by changing the parameters of its in-game presentation.



Code:
-- Config
local tr, tg, tb, ta = 1, 1, 1, 1 -- top color
local br, bg, bb, ba = .2, .2, .2, 1 -- bottom color
local auraborder = true -- make & color aura borders

* A Note On Colors
WoW uses 0-1 decimal RGB values to define color instead of the more common 0-255 RGB values. A regular 0-255 color can be converted to WoW's format by dividing each channel value by 255.

As an example, for the color Cyan (RGB 0, 255, 255), each color channel divided by 255 would return 0, 1, 1. For the Paladin class color (RGB 245, 140, 186), each color channel divided by 255 would return .96, .55, .73.

Alternately, the actual division can be made to occur within an AddOn's Lua code. The two functions below would produce the same color.

Code:
SetVertexColor(.96, .55, .73)
SetVertexColor(245/255, 140/255, 186/255)

For assistance in choosing RGB values, a quick web search for something like "rgb color pickers" will return several useful online utilities.


* Thanks & Credit
Thanks to Neal & thek for ideas & code contained in portions of nMainbar & thek: Buttonskin.

* Version 1.1.3
  • Extra fix for extra ExtraActionButton error

* Version 1.1.2
  • Fix for ExtraActionButton error
  • ToC update to 4.3

* Version 1.1.1
  • Code simplified to dramatically reduce memory usage (runs at 10-20 KB in testing).
  • FacePaint support removed temporarily until a better approach can be developed. (Colors can still be set manually atop the .lua file.
Optional Files (0)


Archived Files (2)
File Name
Version
Size
Author
Date
1.1.2
1kB
Aprikot
12-03-11 04:18 PM
1.1.1
1kB
Aprikot
10-22-11 12:04 PM


Post A Reply Comment Options
Unread 05-21-11, 03:31 AM  
blizzart
A Murloc Raider
 
blizzart's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4
File comments: 111
Uploads: 9
I don't know why, but infight I have massive fps lags with this addon.
__________________
Kryptik @ Die Arguswacht
blizzart is offline Report comment to moderator  
Reply With Quote
Unread 05-21-11, 08:21 AM  
Aprikot
A Frostmaul Preserver
 
Aprikot's Avatar
AddOn Author - Click to view AddOns

Forum posts: 284
File comments: 67
Uploads: 2
Originally posted by blizzart
I don't know why, but infight I have massive fps lags with this addon.
Combat in general? What character class and addons are you using when this happens. I'll try to reproduce.
Aprikot is offline Report comment to moderator  
Reply With Quote
Unread 05-21-11, 08:59 AM  
Aprikot
A Frostmaul Preserver
 
Aprikot's Avatar
AddOn Author - Click to view AddOns

Forum posts: 284
File comments: 67
Uploads: 2
Originally posted by Aprikot
I'll try to reproduce.
Shapeshifting seems to send this addon from 10 KB to 2.5 MB mem use , but then it settles back down...not sure why yet. Not seeing any growth during combat though.
Aprikot is offline Report comment to moderator  
Reply With Quote
Unread 05-21-11, 10:26 AM  
Lily.Petal
A Molten Giant
 
Lily.Petal's Avatar
AddOn Author - Click to view AddOns

Forum posts: 537
File comments: 108
Uploads: 3
Hm, great addition to facepaint, now if only you can make amazing looking Exp Rep Bars ;D
__________________

Aggro Color to KG Panels Borders - Nibelheim
Lua Based UI Hider - Nibelheim
Custom LUA PowerText - Stuf - Nibelheim, Seerah
Lily.Petal is offline Report comment to moderator  
Reply With Quote
Unread 05-21-11, 03:49 PM  
blizzart
A Murloc Raider
 
blizzart's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4
File comments: 111
Uploads: 9
Originally posted by Aprikot
Combat in general? What character class and addons are you using when this happens. I'll try to reproduce.
With my Warrior, Rogue and Mage.
Outfight I have every ~5sek one small fps lagg.
Infight, especially at pvp, I have a diashow :P
So i need to disable it.

My active addons:
AddonControlPanel
AtlasLoot
Bagnon
CError
Debuff Filter
Gnosis
Shadowed Unitframes
TipTac
TullaCooldownCount
TullaRange
__________________
Kryptik @ Die Arguswacht
blizzart is offline Report comment to moderator  
Reply With Quote
Unread 05-21-11, 05:15 PM  
Aprikot
A Frostmaul Preserver
 
Aprikot's Avatar
AddOn Author - Click to view AddOns

Forum posts: 284
File comments: 67
Uploads: 2
I'd be curious how your FPS performs with nothing enabled but BBBB (not that I expect anyone to play like that ). I'm testing with TullaRange at the moment.

Originally posted by blizzart
With my Warrior, Rogue and Mage.
Outfight I have every ~5sek one small fps lagg.
Infight, especially at pvp, I have a diashow :P
So i need to disable it.

My active addons:
AddonControlPanel
AtlasLoot
Bagnon
CError
Debuff Filter
Gnosis
Shadowed Unitframes
TipTac
TullaCooldownCount
TullaRange
Aprikot is offline Report comment to moderator  
Reply With Quote
Unread 05-21-11, 05:18 PM  
Aprikot
A Frostmaul Preserver
 
Aprikot's Avatar
AddOn Author - Click to view AddOns

Forum posts: 284
File comments: 67
Uploads: 2
Originally posted by Lily.Petal
Hm, great addition to facepaint, now if only you can make amazing looking Exp Rep Bars ;D
Ty I do have some FP stuff in the works .
Aprikot is offline Report comment to moderator  
Reply With Quote
Unread 05-21-11, 06:14 PM  
Lily.Petal
A Molten Giant
 
Lily.Petal's Avatar
AddOn Author - Click to view AddOns

Forum posts: 537
File comments: 108
Uploads: 3
Originally posted by Aprikot
Ty I do have some FP stuff in the works .
Question though, If I decide to download/use Bartender, will FacePaint and this still work with it by chance?

I like the preset of 3 Bars tall that buttonfacade has to be honest, and not the entire bag/macro right side wow had.
__________________

Aggro Color to KG Panels Borders - Nibelheim
Lua Based UI Hider - Nibelheim
Custom LUA PowerText - Stuf - Nibelheim, Seerah
Lily.Petal is offline Report comment to moderator  
Reply With Quote
Unread 05-21-11, 06:37 PM  
Aprikot
A Frostmaul Preserver
 
Aprikot's Avatar
AddOn Author - Click to view AddOns

Forum posts: 284
File comments: 67
Uploads: 2
BBBB should work with Bartender (I'd need to test), and FacePaint should always work with BBBB. (should )

Originally posted by Lily.Petal
Question though, If I decide to download/use Bartender, will FacePaint and this still work with it by chance?

I like the preset of 3 Bars tall that buttonfacade has to be honest, and not the entire bag/macro right side wow had.
Aprikot is offline Report comment to moderator  
Reply With Quote
Unread 05-21-11, 08:47 PM  
Lily.Petal
A Molten Giant
 
Lily.Petal's Avatar
AddOn Author - Click to view AddOns

Forum posts: 537
File comments: 108
Uploads: 3
Just tried it with Bartender, nope :< not changing colors at all. For both this AND facepaint

I'll try it with other bar addons~
__________________

Aggro Color to KG Panels Borders - Nibelheim
Lua Based UI Hider - Nibelheim
Custom LUA PowerText - Stuf - Nibelheim, Seerah
Last edited by Lily.Petal : 05-21-11 at 08:52 PM.
Lily.Petal is offline Report comment to moderator  
Reply With Quote
Unread 05-21-11, 09:24 PM  
Aprikot
A Frostmaul Preserver
 
Aprikot's Avatar
AddOn Author - Click to view AddOns

Forum posts: 284
File comments: 67
Uploads: 2
Originally posted by Lily.Petal
Just tried it with Bartender, nope :< not changing colors at all. For both this AND facepaint

I'll try it with other bar addons~
I took a quick look at BT code, and see its actually hiding everything BBBBorder & FacePaint look for . I hadn't realized BT was from scratch. Oh well.

As for other bar AddOns, ones that use Blizzard objects (Neal's & thek's come to mind) are generally compatible, however these do their own button styling too (hooking ActionButton_Update) which conflicts with BetterBlizBBBBB ugh maybe I should rename this.
Aprikot is offline Report comment to moderator  
Reply With Quote
Unread 05-21-11, 10:02 PM  
Aprikot
A Frostmaul Preserver
 
Aprikot's Avatar
AddOn Author - Click to view AddOns

Forum posts: 284
File comments: 67
Uploads: 2
Example shot of nMainbar/FacePaint/BBBB with nMainbar's own button styling disabled:

Aprikot is offline Report comment to moderator  
Reply With Quote
Unread 05-21-11, 10:15 PM  
Lily.Petal
A Molten Giant
 
Lily.Petal's Avatar
AddOn Author - Click to view AddOns

Forum posts: 537
File comments: 108
Uploads: 3
This is with nMainBar, BBBB, and FacePaint on only O.o

EDIT: oh you said disabled.
EDIT2: bleh Dx trying to find it
EDIT3: Got it, thanks for the run through, <3 muchlove
__________________

Aggro Color to KG Panels Borders - Nibelheim
Lua Based UI Hider - Nibelheim
Custom LUA PowerText - Stuf - Nibelheim, Seerah
Last edited by Lily.Petal : 05-21-11 at 10:29 PM.
Lily.Petal is offline Report comment to moderator  
Reply With Quote
Unread 05-21-11, 10:54 PM  
Aprikot
A Frostmaul Preserver
 
Aprikot's Avatar
AddOn Author - Click to view AddOns

Forum posts: 284
File comments: 67
Uploads: 2
Originally posted by Lily.Petal
This is with nMainBar, BBBB, and FacePaint on only O.o

EDIT: oh you said disabled.
EDIT2: bleh Dx trying to find it
EDIT3: Got it, thanks for the run through, <3 muchlove
I should've said disabled via renaming nMainbar_ButtonSkins.lua. Glad it's working.

Originally posted by Aprikot
As for other bar AddOns, ones that use Blizzard objects (Neal's & thek's come to mind) are generally compatible, however these do their own button styling too
thek's bar addon actually doesn't mess with button styling, I misspoke...

http://www.wowinterface.com/download...Actionbar.html
Aprikot is offline Report comment to moderator  
Reply With Quote
Unread 05-23-11, 03:25 AM  
Lily.Petal
A Molten Giant
 
Lily.Petal's Avatar
AddOn Author - Click to view AddOns

Forum posts: 537
File comments: 108
Uploads: 3
Thanks for the update~ All the lag is gone for me <3
__________________

Aggro Color to KG Panels Borders - Nibelheim
Lua Based UI Hider - Nibelheim
Custom LUA PowerText - Stuf - Nibelheim, Seerah
Lily.Petal is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: