Originally Posted by
Annelot
Still need some help :<
It looks kind of like the unit frames in SolvexxUI.
---------- Post added 2012-12-11 at 07:02 AM ----------
I'm also in a bit of need myself. I messed around a bit in Skada's files to add a border to every bar. I succeed with doing so, but I'm having troubles with the background. I want a black background at 10% opacity, but with the code I added to get the bars, every time the bars are created (by starting a new combat segment or just going back and forth in the menu) the opacity increases by 10% (see image). Does anyone have experience with lua editing in Skada and know where to move or how to change my code so that stays at 10% opacity?
I added this code after the bar initialization in BarDisplay.lua
Code:
line259-- Initialization of bars.
bar = mod:CreateBar(win, barid, barlabel, data.value, win.metadata.maxvalue or 1, data.icon, false)
bar.id = data.id
--inserting border stuff
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, .1)
frame:SetBackdropBorderColor(0, 0, 0)
-- inserting border stuff end
Edit: I can avoid the eventual black background by just having 0% opacity background, but I'd prefer the 10% opacity if possible.