(23 Kb)
Updated: 05-12-11 02:49 AM
File Info
Updated:05-12-11 02:49 AM
Created:04-14-11 10:33 AM
!Beautycase  Popular! (More than 5000 hits)
Version: 1.1.0
by: Neal [More]
This is a small addon for add fast and efficiently smooth borders to your frames!
You dont need to create a texture for all of your frames annymore. Just this little addon and some code below.
The benefit? The border remains the same, even if the window's size changes. It always looks like it should be.

It's a LUA bases addon. So there are no ingame configurations.

So ok, and how can you use it?

It's quite simple!
!Beautycase has some simple functions.

Create a border
CreateBorder(myFrame, borderSize, R, G, B, uL1, uL2, uR1, uR2, bL1, bL2, bR1, bR2)
-> The name of your frame, It must be a frame not a texture
-> The size of the simple square Border. 10-12 looks amazing with the default beautycase texture
R, G, B -> The colors of the Border. r = Red, g = Green, b = Blue
uL1, uL2 -> top left x, top left y
uR1, uR2 -> top right x, top right y
bL1, bL2 -> bottom left x, bottom left y
bR1, bR2 -> bottom right x, bottom right y
Shorter method to add a border with no spacing
CreateBorder(myFrame, borderSize, r, g, b)
Or simple just one number (x) for the same distance on all corners
CreateBorder(myFrame, borderSize, r, g, b, x)
Change the border/shadow color

"a" is the alpha, its is an alternative possibility and is not needed
ColorBorder(self, r, g, b, a)
ColorBorderShadow(self, r, g, b, a)

Change the border/shadow texture

Why? So when you want to use different textures like a "normal" texture
and a white texture for debuff highlight or as indicator for something
SetBorderTexture(myFrame, texture.tga)
SetBorderShadowTexture(myFrame, texture.tga)

Get infos about the beautycase border on a frame

local size, texture, r, g, b, alpha = GetBorderInfo(myFrame)

Try it out und you will see how easy you can add a cool border to your frames!


    myFrame:SetBorderPadding(number or [uL1, uL2, uR1, uR2, bL1, bL2, bR1, bR2])
    myFrame:SetBorderColor(r, g, b)
    myFrame:SetBorderShadowColor(r, g, b)
    myFrame:GetBorder() - true if has a beautycase border, otherwise false
    local borderSize, texture, r, g, b, alpha = myFrame:GetBorderInfo()
Change the texture

You dont like the texture included in !Beautycase? Want your own?
So go into the !Beautycase/media folder and change the textureNormal.tga
file with a file of your choice.

How or where can i put these code snippets into a file or get to work?

First: DONT'T put the code snippets into the beautycase file.
Create a little addons and put the code in its .lua file.


You want to skin the frames of an addon.
For example Pitbull or Omen but you get an error message?
So watch out.

WoW initalize all addon alphabetically.
So when you created a addon like "myAddon" and want
to "CreateBorder(aPitbullFrame, ...)" you can only get an error message because
you want to create a border on a frame which at that time does not exist.

Loading ... !Beautycase
Loading ... aAddon
Loading ... bAddon
Loading ... cAddon
Loading ... myAddon > CreateBorder(aPitbullFrame, ...) > Error. This frame does not exist
Loading ... Omen
Loading ... Pitbull > CreatePitbullUnitFrames
So thats one of the most mistake.
You cannot create a border on a frame that does not exist.

In the example below you must create a addon whose first character must be greater than "p"
The some for Omen and other addons. (z is a good character)

Thats the point why this addon is called !Beautycase and not Beautycase.
Its loaded as one of the first addons so that you can use the !Beautycase functions very early in a addon


How can i find out the name of an frame?
Create a macro
/print GetMouseFocus():GetName()
Go over the frame you want to give a border and use this macro

Your frame has no name? Than the only solution is to insert the beautycase
code directly into the source data/function of these addon.

If you have no idea how to do this. Ask other people on the wowi/other ui forums.
There are to many wow addons, so I can't give some help with this problems.
If they have no ideas, you can even try it on the comment function of these addon.
v. 1.1.0

- huge update
- border is now names "self.beautyBorder[i]" to prevent issues with other addons
- do NOT update if you dont need the "new" features!

v. 1.0.3

- new functions
- alpha can now be change
- some non-essential changes

v. 1.0.2

- fix how variables should be handled
Optional Files (0)

Archived Files (1)
File Name
04-17-11 02:24 PM

Post A Reply Comment Options
Old 04-15-11, 08:56 AM  
A Nerdscale Dorkin
Toran's Avatar

Forum posts: 142
File comments: 430
Uploads: 0
Oooh the border shadows are new methinks?
Toran is offline Report comment to moderator  
Reply With Quote
Old 04-14-11, 08:51 PM  
A Kobold Labourer
pekaziz's Avatar

Forum posts: 0
File comments: 126
Uploads: 0
Omg, mark the calenders for today, I'm so happy to see you're back Neal.
pekaziz is offline Report comment to moderator  
Reply With Quote
Old 04-14-11, 06:57 PM  
A Black Drake

Forum posts: 88
File comments: 106
Uploads: 0
Awesome to see you back Neal! Lovely this is a download on its own now with a "How To"...I know many will LOVE it!
Porsha is offline Report comment to moderator  
Reply With Quote
Old 04-14-11, 03:37 PM  
A Frostmaul Preserver
Aprikot's Avatar
AddOn Author - Click to view AddOns

Forum posts: 284
File comments: 67
Uploads: 2
Originally posted by Game92
Good to see you back Neal And this addon, is the best one
Aprikot is offline Report comment to moderator  
Reply With Quote
Old 04-14-11, 01:24 PM  
A Molten Giant
Game92's Avatar
AddOn Author - Click to view AddOns

Forum posts: 616
File comments: 696
Uploads: 14
Good to see you back Neal And this addon, is the best one
Last edited by Game92 : 04-14-11 at 01:25 PM.
Game92 is offline Report comment to moderator  
Reply With Quote
Post A Reply

Category Jump: