lua Code:
if DBM then
hooksecurefunc(DBT, "CreateBar", function(self)
for bar in self:GetBarIterator() do
local frame = bar.frame
frame:SetScale(UIParent:GetScale())
local tbar = getglobal(frame:GetName().."Bar")
local texture = getglobal(frame:GetName().."BarTexture")
local icon1 = getglobal(frame:GetName().."BarIcon1")
local icon2 = getglobal(frame:GetName().."BarIcon2")
local name = getglobal(frame:GetName().."BarName")
local timer = getglobal(frame:GetName().."BarTimer")
tbar:SetHeight(16)
texture:SetTexture(settings.texture)
texture.SetTexture = function() end
icon1:SetTexCoord(.1,.9,.1,.9)
icon2:SetTexCoord(.1,.9,.1,.9)
name:SetPoint("CENTER")
name:SetPoint("LEFT", 4, 0)
name:SetFont(settings.font, settings.fsize, "OUTLINE")
name.SetFont = function() end
timer:SetPoint("CENTER")
timer:SetPoint("RIGHT", -4, 0)
timer:SetFont(settings.font, settings.fsize, "OUTLINE")
timer.SetFont = function() end
end
end)
hooksecurefunc(DBM.BossHealth, "AddBoss", function(cId, name)
local i = 1
while (_G[format("DBM_BossHealth_Bar_%d", i)]) do
local bar = _G[format("DBM_BossHealth_Bar_%d", i)]
local background = _G[bar:GetName().."BarBorder"]
local progress = _G[bar:GetName().."Bar"]
local name = _G[bar:GetName().."BarName"]
local timer = _G[bar:GetName().."BarTimer"]
bar:SetScale(UIParent:GetScale())
bar:SetHeight(16)
background:SetNormalTexture(nil)
progress:SetStatusBarTexture(settings.texture)
progress:SetPoint("TOPLEFT", bar, "TOPLEFT", 2, -2)
progress:SetPoint("BOTTOMRIGHT", bar, "BOTTOMRIGHT", -2, 2)
progress:SetPoint("BOTTOMRIGHT", bar, "BOTTOMRIGHT", -2, 2)
name:SetPoint("CENTER")
name:SetPoint("LEFT", 4, 0)
name:SetFont(settings.font, settings.fsize, "OUTLINE")
timer:SetPoint("CENTER")
timer:SetPoint("RIGHT", -4, 0)
timer:SetFont(settings.font, settings.fsize, "OUTLINE")
i = i + 1
end
end)
end
where settings.font, fsize, texture - own media
enjoy