- Home
- Downloads
-
Addons & Mods
Featured
World of Warcraft
5,105 Addons
-
Popular Downloads
- Top World of Warcraft Addons
- Top Minecraft Server Mods
- Top Rift Addons
- Top Skyrim Mods
- Top World of Tanks WoT Mods
- Top Starcraft II Maps
- Top Terraria Maps
- Top Runes of Magic Addons
- Top Warhammer Online Addons
- Top Age of Conan Addons
-
- Curse Client
- Premium
- News
- Giveaways
- Videos
- Forums
LibBackdrop-1.0
- 0 Likes
- World of Warcraft
- 18 Monthly Downloads
- Supports: 4.1
- 1,827 Total Downloads
- Updated 4/28/2011 6:42:00 AM
- Created 9/30/2010 2:07:37 PM
- 2 Favorites
- Project Site
- Comments
- Release Type: Release
- License: All Rights Reserved
- Newest File: 1.1.0
About LibBackdrop-1.0
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
tag 1.1.0
1e400846b1fa0eade169c85ba5a5c263eb49a7e9
root <root@db06.curselive.local>
2011-04-28 11:40:56 +0000
Tagging as 1.1.0
--------------------
Sal Scotto:
- toc dump
- calling SetBackdrop(nil) will now properly nill out the backdrop
| File Name | Release Type | Game Version | Downloads | Date |
|---|---|---|---|---|
| 1.1.0 | Release | 4.1 | 541 | 4/28/2011 6:42:00 AM |
| 1.0.9 | Release | 4.0.3a | 307 | 1/8/2011 11:20:58 AM |
| 1.0.8 | Release | 4.0.3a | 181 | 12/30/2010 11:17:15 AM |
| 1.0.7 | Release | 4.0.1 | 359 | 10/12/2010 9:27:37 AM |
| 1.0.6 | Release | 4.0.1 | 69 | 10/4/2010 10:27:36 AM |
| 1.0.5.1 | Release | 4.0.1 | 7 | 10/2/2010 12:55:40 PM |
| 1.0.5 | Release | 4.0.1 | 1 | 10/2/2010 12:55:39 PM |
| 1.0.4 | Release | 4.0.1 | 1 | 10/2/2010 12:55:38 PM |
| 1.0.3 | Release | 4.0.1 | 9 | 9/30/2010 8:50:16 PM |
| 1.0.2 | Release | 4.0.1 | 4 | 9/30/2010 7:36:26 PM |
| 1.0.1 | Release | 4.0.1 | 1 | 9/30/2010 7:36:25 PM |
| 1.0 | Release | 4.0.1 | 3 | 9/30/2010 4:55:38 PM |
Top Downloads
-
- Bagnon
- Bags & Inventory
- 380,324 Monthly Downloads
-
- Deadly Boss Mods
- Combat and Boss Encounters
- 302,560 Monthly Downloads
-
- Recount
- Combat
- 301,016 Monthly Downloads
-
- SpellFlash
- PvP, Buffs & Debuffs, Quests & Leveling, Action Bars, and Combat
- 282,737 Monthly Downloads
-
- GatherMate2_Data
- Achievements
- 210,508 Monthly Downloads
Comments
What is this?
First one is when I changed the border thickness the top part of the border no longer lines up with the rest.
Second one is changing insets changes the border width/height instead of the background texture.
I think I'll stick with blizzards backdrop till they remove it. But I'm impressed at the work that was done to this.
I just wanted to give it a try to see what its like :)