Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- Adds border to Bars ---
- if not bar.bg then
- local frame = CreateFrame("Frame", nil, bar)
- frame:ClearAllPoints()
- frame:SetPoint("TOPLEFT", bar, "TOPLEFT", -1, 1)
- frame:SetPoint("BOTTOMRIGHT", bar, "BOTTOMRIGHT", 1, -1)
- frame:SetBackdrop({
- edgeFile = [=[Interface\ChatFrame\ChatFrameBackground]=], edgeSize = 1,
- bgFile = [=[Interface\ChatFrame\ChatFrameBackground]=],
- insets = {left = 1, right = 1, top = 1, bottom = 1}})
- frame:SetFrameLevel(bar:GetFrameLevel())
- frame:SetBackdropColor(0, 0, 0, .3)
- frame:SetBackdropBorderColor(0, 0, 0)
- bar.bg = frame
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement