Skip to content

Commit

Permalink
Add custom default colors for healthbar statusbar and background
Browse files Browse the repository at this point in the history
  • Loading branch information
zorker committed Nov 21, 2016
1 parent fe7a10a commit 9d48892
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions wow7.0/oUF_Simple/core/functions.lua
Expand Up @@ -216,10 +216,16 @@ local function CreateHealthBar(self)
local s = CreateFrame("StatusBar", nil, self)
s:SetStatusBarTexture(L.C.textures.statusbar)
s:SetAllPoints()
if L.C.colors.healthbar and L.C.colors.healthbar.default then
s:SetStatusBarColor(unpack(L.C.colors.healthbar.default))
end
--bg
local bg = s:CreateTexture(nil, "BACKGROUND")
bg:SetTexture(L.C.textures.statusbarBG)
bg:SetAllPoints()
if L.C.colors.healthbar and L.C.colors.healthbar.defaultBG then
bg:SetVertexColor(unpack(L.C.colors.healthbar.defaultBG))
end
s.bg = bg
--backdrop
CreateBackdrop(s)
Expand Down
2 changes: 2 additions & 0 deletions wow7.0/oUF_SimpleConfig/global.lua
Expand Up @@ -59,6 +59,8 @@ L.C.colors.castbar = {
}
--colors healthbar
L.C.colors.healthbar = {
--default = {0,1,0},
--defaultBG = {0*L.C.colors.bgMultiplier,1*L.C.colors.bgMultiplier,0},
threat = {1,0,0},
threatBG = {1*L.C.colors.bgMultiplier,0,0},
threatInvers = {0,1,0},
Expand Down

0 comments on commit 9d48892

Please sign in to comment.