Advertisement
InfamousX

skadaBarBorders

Sep 10th, 2014
505
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. --- Adds border to Bars ---
  2. if not bar.bg then
  3. local frame = CreateFrame("Frame", nil, bar)
  4. frame:ClearAllPoints()
  5. frame:SetPoint("TOPLEFT", bar, "TOPLEFT", -1, 1)
  6. frame:SetPoint("BOTTOMRIGHT", bar, "BOTTOMRIGHT", 1, -1)
  7. frame:SetBackdrop({
  8. edgeFile = [=[Interface\ChatFrame\ChatFrameBackground]=], edgeSize = 1,
  9. bgFile = [=[Interface\ChatFrame\ChatFrameBackground]=],
  10. insets = {left = 1, right = 1, top = 1, bottom = 1}})
  11. frame:SetFrameLevel(bar:GetFrameLevel())
  12. frame:SetBackdropColor(0, 0, 0, .3)
  13. frame:SetBackdropBorderColor(0, 0, 0)
  14. bar.bg = frame
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement