View Single Post
11-17-11, 01:15 PM   #11
strickland
A Cyclonian
Join Date: Apr 2007
Posts: 40
Originally Posted by Taryble View Post
Roughly 5 minutes of playing got this result (see attachment).

Hardest part was the "custom lua" to show the target's name class-colored, so I'm including it here (and by "hardest" I mean "most annoying for people who aren't into lua coding ).

How to use this: just pop open a Text section, select "Custom Lua", paste this in, hit "Accept", and click the box for "Frequent Updates".

Code:
function(unit, cache, textframe)
  if UnitExists("target") then
    if UnitIsPlayer("target") then
      local classcolor = RAID_CLASS_COLORS[select(2, UnitClass("target"))]
      return "|cff%02x%02x%02x%s|r",classcolor.r*255,classcolor.g*255,classcolor.b*255,UnitName("target")
    end
  end
  return
end
I'm not exactly feeling well at the moment, so I'll finish it up tomorrow (so far, only the Player frame is done - I'll do Target, ToT, Focus, Pet, Party, etc, tomorrow when I feel better).
Thats so awesome, I'm so excited man, you must be good with Stuf, cause I been trying to copy that, but I'm not getting 100% right, like yours.
  Reply With Quote