I cant seem to change the colors for my runes. I tried SetStatusBarColor like my other class bars, but nothing changes.
I really dislike the default colors and I want to change them.
Any ideas?
lua Code:
if playerClass =="DEATHKNIGHT" then
self.Runes = CreateFrame("Frame", nil, self)
for i = 1, 6 do
self.Runes[i] = CreateFrame("StatusBar", self:GetName().."_Runes"..i, self)
self.Runes[i]:SetHeight(cfg.ClassBarHeight)
self.Runes[i]:SetWidth((cfg.widthCB - 5) / 6)
if (i == 1) then
self.Runes[i]:SetPoint("TOPLEFT", self, "TOPLEFT", -1, 1)
else
self.Runes[i]:SetPoint("TOPLEFT", self.Runes[i-1], "TOPRIGHT", 1, 0)
end
self.Runes[i]:SetStatusBarTexture(cfg.HPtex)
self.Runes[i].bg = self.Runes[i]:CreateTexture(nil, "BORDER")
self.Runes[i].bg:SetPoint("TOPLEFT", self.Runes[i], "TOPLEFT", -0, 0)
self.Runes[i].bg:SetPoint("BOTTOMRIGHT", self.Runes[i], "BOTTOMRIGHT", 0, -0)
self.Runes[i].bg:SetTexture(cfg.Itex)
self.Runes[i].bg.multiplier = 0.2
self.RunesBorder = CreateFrame("Frame", nil, self)
self.RunesBorder:SetPoint("TOPLEFT", self.Runes[i], "TOPLEFT", -1, 1)
self.RunesBorder:SetPoint("BOTTOMRIGHT", self.Runes[i], "BOTTOMRIGHT", 1, -1)
self.RunesBorder:SetBackdrop(backdrop)
self.RunesBorder:SetBackdropColor(unpack(cfg.backdropcolor))
self.RunesBorder:SetBackdropBorderColor(unpack(cfg.brdcolor))
self.RunesBorder:SetFrameLevel(0)
end
end