esoteric2 |
10-01-11 02:34 PM |
Hi Seerah, yes I've been looking primary in this post and tried to do what they said but nothing worked.
When I've done like the post #21, I could'nt even launch the DBM GUI :(
Now I don't really understand lua or xml very well (just know how to do the basics.
For expample I don't really understand where in :
Quote:
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
|
the texture are and how to change it. I'm not sure that I really understand the post #8 and if I've unstand it, where to add :
Quote:
local gxMedia = gxMedia or {
bgFile = [=[Interface\ChatFrame\ChatFrameBackground]=],
buttonOverlay = [=[Interface\Buttons\UI-ActionButton-Border]=],
edgeFile = [=[Interface\Addons\gxMedia\media\backdropedge]=],
font = [=[Fonts\FRIZQT__.TTF]=],
statusBar = [=[Interface\AddOns\gxMedia\media\statusbar]=],
}
|
or :
Quote:
progress:SetStatusBarTexture(Interface\\AddOns\\!media\\statusbar)
|
Maybe can you help me with that please ? :)
|