Thread Tools Display Modes
Prev Previous Post   Next Post Next
04-07-11, 04:38 PM   #1
Remsaa
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 19
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
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » wanting to load different artwork per character...


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