Download
(1Kb)
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:4,867
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)


Post A Reply Comment Options
Unread 07-21-16, 08:58 PM  
Jayhog
A Kobold Labourer

Forum posts: 1
File comments: 22
Uploads: 0
I know it's been forever but is there a chance this could get updated? I haven't used this in years but wanted to go back to it but I remember if I had it set to change the border on buffs/debuffs it would lag really bad and cpu usage went though the roof.
Report comment to moderator  
Reply With Quote
Unread 03-08-12, 02:31 AM  
zin99
A Deviate Faerie Dragon

Forum posts: 12
File comments: 41
Uploads: 0
hi aprikot,

just curious: any updates on resolving the high cpu usage?
Report comment to moderator  
Reply With Quote
Unread 12-16-11, 11:55 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 microcolt
I've only been able to test it with two dungeons but I think its safe to say that the Aura's setting is what is making it lag. When I disabled it I had no lag or frame drops of any sort.

I think the constant updating of the aura frames especially when you have a ton of buffs and what not is causing the freezes. I hope this info helps a little, I can go without it for right now but it doesn't look as awesome without the borders .
Thanks for testing, this is useful info. I'm looking at the code a few other buff & bar addons, and think I might have a better approach worked out. I hope to have an update in the next few days.
Report comment to moderator  
Reply With Quote
Unread 12-14-11, 11:45 AM  
microcolt
A Kobold Labourer

Forum posts: 0
File comments: 10
Uploads: 0
I've only been able to test it with two dungeons but I think its safe to say that the Aura's setting is what is making it lag. When I disabled it I had no lag or frame drops of any sort.

I think the constant updating of the aura frames especially when you have a ton of buffs and what not is causing the freezes. I hope this info helps a little, I can go without it for right now but it doesn't look as awesome without the borders .
Report comment to moderator  
Reply With Quote
Unread 12-13-11, 02:05 PM  
microcolt
A Kobold Labourer

Forum posts: 0
File comments: 10
Uploads: 0
Originally Posted by Aprikot
Originally Posted by microcolt
Is there any way to lessen the cpu usage of this. I've been toying with add-ons all day only to find that this add-on is causing frame rate drops in the middle of raids and dungeons.

I really love how small and simple the add-on is but it seems to be affecting my gameplay sadly.

Thanks in advance!
Thanks for the feedback, I'll see what I can do. I haven't had much free time of late unfortunately.

Do you have the auras feature enabled while in dungeons? I haven't dungeoned in awhile (I don't do much but play with my UI anymore ) and I'm curious how much the aura skinning might be a factor, and what difference in CPU utilization there might be (in a dungeon) with the aura feature disabled.

Are you using a CPU monitoring addon, and if so what kind of numbers are you seeing?
I do have the auras feature enabled. In the LFR that I just did I actually was able to see what the add-on was doing while I was lagging. When the screen froze anything with a border actually disappeared (except for the border). The usage I'm seeing with several cpu/profiler add ons was from 0.02 to 0.03. These numbers don't seem very big but not even my Healbot add-on gets that high.

I can try this again with auras disabled and get back to you.
Report comment to moderator  
Reply With Quote
Unread 12-13-11, 12:05 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 microcolt
Is there any way to lessen the cpu usage of this. I've been toying with add-ons all day only to find that this add-on is causing frame rate drops in the middle of raids and dungeons.

I really love how small and simple the add-on is but it seems to be affecting my gameplay sadly.

Thanks in advance!
Thanks for the feedback, I'll see what I can do. I haven't had much free time of late unfortunately.

Do you have the auras feature enabled while in dungeons? I haven't dungeoned in awhile (I don't do much but play with my UI anymore ) and I'm curious how much the aura skinning might be a factor, and what difference in CPU utilization there might be (in a dungeon) with the aura feature disabled.

Are you using a CPU monitoring addon, and if so what kind of numbers are you seeing?
Report comment to moderator  
Reply With Quote
Unread 12-13-11, 12:23 AM  
microcolt
A Kobold Labourer

Forum posts: 0
File comments: 10
Uploads: 0
Is there any way to lessen the cpu usage of this. I've been toying with add-ons all day only to find that this add-on is causing frame rate drops in the middle of raids and dungeons.

I really love how small and simple the add-on is but it seems to be affecting my gameplay sadly.

Thanks in advance!
Report comment to moderator  
Reply With Quote
Unread 12-03-11, 04:22 PM  
Aprikot
A Frostmaul Preserver
 
Aprikot's Avatar
AddOn Author - Click to view AddOns

Forum posts: 284
File comments: 67
Uploads: 2
Update pending approval. Code now ignores the ExtraActionButton, so errors on load are gone, but haven't tested an actual extra button scenario (dragon soul?)...should remain unskinned, but error free (I think).

EDIT: Another update (v1.1.3) for more ExtraActionButtonShenanigans
Last edited by Aprikot : 12-03-11 at 05:59 PM.
Report comment to moderator  
Reply With Quote
Unread 12-03-11, 03:07 PM  
Aprikot
A Frostmaul Preserver
 
Aprikot's Avatar
AddOn Author - Click to view AddOns

Forum posts: 284
File comments: 67
Uploads: 2
Yeah seeing errors from extraactionbutton stuff i think. Not 100% wtf it is but I'm reading some threads for helps
Report comment to moderator  
Reply With Quote
Unread 12-02-11, 09:20 AM  
Rufio
A Murloc Raider
 
Rufio's Avatar
AddOn Author - Click to view AddOns

Forum posts: 9
File comments: 289
Uploads: 5
still works on 4.3. But vehicle buttons/fancy new clickstuff in Dragon Souls looks wierd.

Getting this error:
Code:
ButtonBorder.lua:19: attempt to index local 'bo' (a nil value)
<in C code>: in function `ActionButton_Update'
Interface\FrameXML\ActionButton.lua:478: in function <Interface\FrameXML\ActionButton.lua:469>:
<in C code>: in function `ActionButton_OnEvent'
Interface\FrameXML\ActionButton.lua:105: in function <Interface\FrameXML\ActionButton.lua:98>:
Report comment to moderator  
Reply With Quote
Unread 10-22-11, 04:01 PM  
Lily.Petal
A Molten Giant
 
Lily.Petal's Avatar
AddOn Author - Click to view AddOns

Forum posts: 540
File comments: 105
Uploads: 3
Button Facade would definitely be easier Me thinks ;D
Originally posted by Aprikot
Ah, gotcha. I'll initiate a level of effort discovery.
__________________

Aggro Color to KG Panels Borders - Nibelheim
Lua Based UI Hider - Nibelheim
Custom LUA PowerText - Stuf - Nibelheim, Seerah
Report comment to moderator  
Reply With Quote
Unread 10-22-11, 04:00 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
Well I wasn't talking about BF, but that would be a good alternative if it wouldn't work, but just Bartender in general. And that would be a nice addition, bigger auras
Ah, gotcha. I'll initiate a level of effort discovery.
Report comment to moderator  
Reply With Quote
Unread 10-22-11, 02:59 PM  
Lily.Petal
A Molten Giant
 
Lily.Petal's Avatar
AddOn Author - Click to view AddOns

Forum posts: 540
File comments: 105
Uploads: 3
Well I wasn't talking about BF, but that would be a good alternative if it wouldn't work, but just Bartender in general. And that would be a nice addition, bigger auras

Originally posted by Aprikot
That's not a bad idea. I'll look into making a skin for BF (or Maske? Masque?) and/or rAB.

As far as new stuff, a have some changes to FacePaint coming which will require me to change BBBB a tad. For BBBB, the next thing will be tryin to control button size (auras especially...make em bigger ).
__________________

Aggro Color to KG Panels Borders - Nibelheim
Lua Based UI Hider - Nibelheim
Custom LUA PowerText - Stuf - Nibelheim, Seerah
Report comment to moderator  
Reply With Quote
Unread 10-22-11, 02:43 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 ikomiko
Nice aprikot.

now reduce the cpu impact and this addon will be perfect.

on broker cpu i have cpu impact from 0.2-0.5.

facepaint has still 0
FP does its thing once (on load), whereas BBBB does its thing whenever the button states update (constantly)...I'll see what I can do though.
Report comment to moderator  
Reply With Quote
Unread 10-22-11, 02:39 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
Anything new about maybe adding this for Bartender or other bar mods by chance <3?
That's not a bad idea. I'll look into making a skin for BF (or Maske? Masque?) and/or rAB.

As far as new stuff, a have some changes to FacePaint coming which will require me to change BBBB a tad. For BBBB, the next thing will be tryin to control button size (auras especially...make em bigger ).
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: