Earlier Versions
Name | Size | Uploaded | Game Version | Downloads | |
1.5-1-g5db2e26-alpha release | 14.98 KB | Feb 24, 2018 | 7.3.5 | 12,844 | ![]() |
1.5 release | 15.23 KB | Oct 24, 2014 | 6.0.2 | 1,381 | ![]() |
1.4 release | 15.20 KB | Oct 17, 2014 | 6.0.2 | 148 | ![]() |
1.3 release | 15.33 KB | May 20, 2014 | 5.4.7 | 368 | ![]() |
1.2 release | 14.84 KB | Aug 28, 2012 | 5.0.4 +1 | 607 | ![]() |
1.1.2 release | 14.89 KB | Jul 29, 2012 | 4.3.4 +1 | 171 | ![]() |
1.1.1 release | 14.97 KB | Jul 15, 2012 | 4.3.4 +1 | 158 | ![]() |
1.1.0 release | 8.75 KB | Apr 28, 2011 | 4.1.0 +1 | 611 | ![]() |
1.0.9 release | 6.19 KB | Jan 8, 2011 | 4.0.3a +1 | 351 | ![]() |
1.0.8 release | 6.41 KB | Dec 30, 2010 | 4.0.3a +1 | 218 | ![]() |
1.0.7 release | 6.38 KB | Oct 12, 2010 | 4.0.1 +1 | 394 | ![]() |
1.0.6 release | 6.20 KB | Oct 4, 2010 | 4.0.1 +1 | 85 | ![]() |
1.0.5.1 release | 5.62 KB | Oct 2, 2010 | 4.0.1 +1 | 34 | ![]() |
1.0.5 release | 5.72 KB | Oct 2, 2010 | 4.0.1 +1 | 67 | ![]() |
1.0.4 release | 5.78 KB | Oct 2, 2010 | 4.0.1 +1 | 35 | ![]() |
1.0.3 release | 5.71 KB | Oct 1, 2010 | 4.0.1 | 29 | ![]() |
1.0.2 release | 5.36 KB | Oct 1, 2010 | 4.0.1 | 31 | ![]() |
1.0.1 release | 5.42 KB | Oct 1, 2010 | 4.0.1 | 41 | ![]() |
1.0 release | 5.42 KB | Sep 30, 2010 | 4.0.1 | 26 | ![]() |
1.4-1-g822fec4 alpha | 15.16 KB | Oct 24, 2014 | 6.0.2 | 70 | ![]() |
1.3-1-g62f347b alpha | 15.13 KB | Oct 17, 2014 | 6.0.2 | 26 | ![]() |
1.1.2-1-g8068b22 alpha | 15.27 KB | Jan 30, 2014 | 5.4.2 | 47 | ![]() |
1.1.1-1-ge6b887f alpha | 14.82 KB | Jul 29, 2012 | 4.3.4 +1 | 26 | ![]() |
1.1.0-5-g5732226 alpha | 14.91 KB | Jul 15, 2012 | 4.3.4 +1 | 31 | ![]() |
1.1.0-4-g8d5323e alpha | 14.87 KB | Jul 15, 2012 | 4.3.4 +1 | 27 | ![]() |
1.1.0-3-g5ce8d6b alpha | 14.81 KB | Jul 14, 2012 | 4.3.4 +1 | 35 | ![]() |
1.1.0-2-gd5a211d alpha | 14.71 KB | Jul 9, 2012 | 4.3.4 +1 | 30 | ![]() |
1.1.0-1-gd76b455 alpha | 14.61 KB | Nov 29, 2011 | 3.3.5 | 112 | ![]() |
1.0.9-2-g1904a6d alpha | 8.69 KB | Apr 28, 2011 | 4.1.0 +1 | 43 | ![]() |
1.0.9-1-g7f75879 alpha | 6.12 KB | Jan 10, 2011 | 4.0.3a +1 | 89 | ![]() |
1.0.8-3-g048daa3 alpha | 6.13 KB | Jan 7, 2011 | 4.0.3a +1 | 29 | ![]() |
1.0.8-2-g2a2a365 alpha | 6.09 KB | Jan 7, 2011 | 4.0.3a +1 | 41 | ![]() |
1.0.7-7-g709fc1a alpha | 6.32 KB | Dec 30, 2010 | 4.0.3a +1 | 24 | ![]() |
1.0.7-6-g62c7b64 alpha | 6.29 KB | Oct 31, 2010 | 4.0.1 +1 | 48 | ![]() |
1.0.7-4-gc67fc1c alpha | 6.21 KB | Oct 31, 2010 | 4.0.1 +1 | 27 | ![]() |
1.0.7-3-g4be39e5 alpha | 6.20 KB | Oct 28, 2010 | 4.0.1 +1 | 26 | ![]() |
1.0.7-2-g764690a alpha | 6.14 KB | Oct 28, 2010 | 4.0.1 +1 | 20 | ![]() |
1.0.7-1-ga647f36 alpha | 6.12 KB | Oct 27, 2010 | 4.0.1 +1 | 23 | ![]() |
1.0.6-8-g63f509a alpha | 6.31 KB | Oct 12, 2010 | 4.0.1 +1 | 11 | ![]() |
1.0.6-3-gf085b94 alpha | 6.11 KB | Oct 4, 2010 | 4.0.1 +1 | 18 | ![]() |
1.0.6-2-g6f3ef2e alpha | 6.23 KB | Oct 4, 2010 | 4.0.1 +1 | 16 | ![]() |
1.0.6-1-g9262510 alpha | 6.06 KB | Oct 4, 2010 | 4.0.1 +1 | 14 | ![]() |
1.0.5-2-gb8381e1 alpha | 6.13 KB | Oct 3, 2010 | 4.0.1 +1 | 24 | ![]() |
1.0.5-1-gd4385de alpha | 6.11 KB | Oct 3, 2010 | 4.0.1 +1 | 17 | ![]() |
1.0.3-4-gcef3ecf alpha | 5.71 KB | Oct 1, 2010 | 4.0.1 +1 | 20 | ![]() |
1.0.3-3-g049d03a alpha | 5.51 KB | Oct 1, 2010 | 4.0.1 +1 | 19 | ![]() |
1.0.3-2-gd4d3adf alpha | 5.85 KB | Oct 1, 2010 | 4.0.1 | 15 | ![]() |
1.0.1-1-ge4a7731 alpha | 5.65 KB | Oct 1, 2010 | 4.0.1 | 30 | ![]() |
1.0-1-g661a322 alpha | 5.32 KB | Sep 30, 2010 | 4.0.1 | 20 | ![]() |
Description
LibBackdrop provides a 100% compatible replacement for SetBackDrop
It also mixes in the following methods to the frame
Mxin methods
SetBackdropGradient(orient,minR,minG,minB,maxR,maxG,maxB)
setup a gradient on the bg texture.
SetBackdropGradientAlpha(orient,minR,minG,minB,minA,maxR,maxG,maxB,maxA)
setup a gradient with alpha on the bg texture
SetBackdropBorderGradient(orient,minR,minG,minB,maxR,maxG,maxB)
setup a gradient on the border texture
SetBackdropBorderGradientAlpha(orient,minR,minG,minB,minA,maxR,maxG,maxB,maxA)
setup a gradient with alpha on the border texture
GetBackdropBorderSection(section)
get a reference to a section of the border
[Valid values are: TOPLEFTCORNER,TOP,TOPRIGHTCORNER,LEFT,RIGHT,BOTLEFTCORNER,BOT,BOTRIGHTCORNER]
GetBackdropBackground
get a reference to the backdrop background texture itself
BorderTextureFunction(function name, params)
this method allows you to call a function on each border texture, passing whatever params you want. This is a convience
method, instead of having to fetch each subtexture to call some method. Example usage
frame:BorderTextureFunction("SetDrawLayer","ARTWORK") to raise the border draw layer
Library High Level Function
IsEnhanced(frame)
test if a frame has already been enhanced
EnhanceBackdrop (frame)
embed the mixins into a given frame
To Use:
local BD = LibStub("LibBackdrop-1.0") -- Create a frame as normal local testFrame = CreateFrame("Frame","Test Frame",UIParent) -- Embed the new backdrop functions BD:EnhanceBackdrop(testFrame) -- Use as you would normally testFrame:SetBackdrop({ bgFile = "Interface/Tooltips/UI-Tooltip-Background", edgeFile = "Interface/Tooltips/UI-Tooltip-Border", tile = true, tileSize = 16, edgeSize = 16, insets = { left = 4, right = 4, top = 4, bottom = 4 }}) --Now for some coloring fun -- Set the border to gradient upward from red to green testFrame:SetBackdropBorderGradient("vertical",1,0,0,0.5,1,0) -- Set the background image to color from blue to green testFrame:SetBackdropGradient("VERTICAL",0,0,1,0,1,0)
Here is the result of the above code
http://dl.dropbox.com/u/10956/LibBackDrop-Example.png
Add a comment