Change Log:
v. 1.1.0
- huge update
- border is now names "self.beautyBorder" 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
Description:
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)
myFrame -> The name of your frame, It must be a frame not a texture
borderSize -> 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 "no... |