wanting to load different artwork per character...
I currently have oUF_Diablo for unit frames and it works quite well with my rogue artwork/UI
However,
I am making new artwork for my Paladin and have also created new target, targettarget, and castbar backgrounds and want them to load instead.
Its easy enough to just go in and change the path that the background is looking for, but how can I add a statement that says "if characters name is" then "load this art/path"
example in the target.lua;
--actionbar background
local createArtwork = function(self)
local t = self:CreateTexture(nil,"BACKGROUND",nil,-8)
t:SetAllPoints(self)
t:SetTexture("Interface\\AddOns\\rTextures\\target")
end
can i just add a "check for character name" before this?
Thanks a bunch guys
|