WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   AddOn Help/Support (https://www.wowinterface.com/forums/forumdisplay.php?f=3)
-   -   Question about DBM (modifying) (https://www.wowinterface.com/forums/showthread.php?t=41506)

esoteric2 10-01-11 11:44 AM

Question about DBM (modifying)
 
Hi, I'm about modifying my DBM, everyone know the original skin :



and I'm wanting to do something similar to :



This evening, I've modified my DBT.xml and I obtained :



Now my questions are the following, I'd like to put the Darion skin on the icon of DBM (I used button facade and the Darion skin is on my actionbar). I'd like too to put the borde texture of darion (without the gloss) around my timer bar on DBM. And to finish I'd like to turn off the spark.

Is anyone can help me please, I've spent around 2 hours to looking everywhere in DBM.lua but I can't find anything about it (surely because I'm a ".lua noob")

Thanks a lot in advance and sorry for my poor english.

Seerah 10-01-11 01:44 PM

Have you looked through this thread to see if it's listed in there? http://www.wowinterface.com/forums/s...ad.php?t=33235

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 ? :)

esoteric2 10-01-11 06:42 PM

So, after spending around 3-4h on this I'm alright with the bar texture and the spark but I'm still looking for the icon texture :(



It's what I got for the moment.

Ither 10-01-11 09:55 PM

Why not use this template? It's what I use and I love it.

http://www.wowinterface.com/download...late.html#info

esoteric2 10-02-11 09:13 AM

Omg you're my hero :D, I've didn't use it cause I've didn't find it :) So now it's alright, juste modify a little this template to fit better whit my ui but it's really nice thank you.

Thank you both for trying to help me ;)


All times are GMT -6. The time now is 09:42 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI