Thread Tools Display Modes
10-01-11, 11:44 AM   #1
esoteric2
A Deviate Faerie Dragon
AddOn Compiler - Click to view compilations
Join Date: Sep 2010
Posts: 12
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.

Last edited by esoteric2 : 10-01-11 at 12:22 PM.
  Reply With Quote
10-01-11, 01:44 PM   #2
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
Have you looked through this thread to see if it's listed in there? http://www.wowinterface.com/forums/s...ad.php?t=33235
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
10-01-11, 02:34 PM   #3
esoteric2
A Deviate Faerie Dragon
AddOn Compiler - Click to view compilations
Join Date: Sep 2010
Posts: 12
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 :
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 :
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 :
progress:SetStatusBarTexture(Interface\\AddOns\\!media\\statusbar)
Maybe can you help me with that please ?

Last edited by esoteric2 : 10-01-11 at 03:36 PM.
  Reply With Quote
10-01-11, 06:42 PM   #4
esoteric2
A Deviate Faerie Dragon
AddOn Compiler - Click to view compilations
Join Date: Sep 2010
Posts: 12
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.
  Reply With Quote
10-01-11, 09:55 PM   #5
Ither
A Firelord
 
Ither's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2009
Posts: 497
Why not use this template? It's what I use and I love it.

http://www.wowinterface.com/download...late.html#info
__________________
  Reply With Quote
10-02-11, 09:13 AM   #6
esoteric2
A Deviate Faerie Dragon
AddOn Compiler - Click to view compilations
Join Date: Sep 2010
Posts: 12
Omg you're my hero , 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
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Question about DBM (modifying)


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off