Originally Posted by duhwhat
Thanks saul, that worked well. I believe I've found a solution to truncating names, I forgot to change self.Name:SetWidth. However, an ellipsis shows up on trunctation. How can I suppress the appearance of the ellipsis, and rather show a few extra characters?
|
http://lua-users.org/wiki/StringLibraryTutorial
in a tag
Code:
oUF.Tags["[name]"] = function(unit)
if(not unit) then return end
return string.sub(UnitName(unit), 0, 4) or ""
end