|Go to Page...|
The intention of the mod is to teach how to use the SetBackdrop feature.Addon
SetBackdrop can be used on 4 occasions. To create a background, a border, an outer-glow and an inner-glow.
It includes a small addon and some textures for borders, glows and backgrounds.
Color can be applied to SetBackdrop via SetBackdropBorderColor and SetBackdropColor. Even the alpha value can be set there.
Adding color to a black area is not possible. 0*0 = 0. The lighter the color, the more the choosen color will become visible. If you apply a red color to a white area that area will be completly red.
Another important part of the texture is the alpha layer. Black areas will be transparent, white areas will be visible. http://en.wikipedia.org/wiki/Alpha_compositing
As you can see in the screenshots the tooltip texture is split into 8 parts, each 16x16 pixel in size, thuse 128x16px in full size. This will make it possible to calculate graphics for every corner and every side.
Move the frame via SHIFT+LEFTCLICKDRAG.Why should I use SetBackdrop instead of SetTexture
Resize the frame via ALT+LEFTCLICKDRAG.
Frames that show a spell texture will stay at a square (looks ugly otherwise )
The biggest plus of that is that your border will always be the same. It will not change it's width. So if you increase/decrease the size of a frame with that border, the border will stay constant.WOW API
If you use the trick of overlaying frame you can even create the illusion of a button. Lower layer will have a backdrop with an outer glow texture and a flat background. A layer above will have a different backdrop with just a border.
Check the mod and you will get it.