Hi,
I did it infact in the version I published:
Lua Code:
-- GUILD
row,col = tooltip:AddLine(_G["NAME"],_G["LEVEL"],_G["ZONE"],_G["RANK"])
-- BNET
row,col = tooltip:AddLine(_G["NAME"],_G["BATTLETAG"],_G["ZONE"],_G["GAME"])
-- FRIENDS
row,col = tooltip:AddLine(_G["NAME"],_G["LEVEL"],_G["ZONE"],_G["CLASS"])
I have find some problems in the color by class because the C_BattleNet.GetFriendAccountInfo return the class name in the format not suitable for checking the raid colors (especially if you have a non english client).
But I have found a snippet by phanx (which I miss so much really
that works great to fix this.
Lua Code:
local classes = {}
for class in pairs(RAID_CLASS_COLORS) do
tinsert(classes, class)
end
sort(classes)
local classTokens = {}
for token, class in pairs(LOCALIZED_CLASS_NAMES_MALE) do
classTokens[class] = token
end
for token, class in pairs(LOCALIZED_CLASS_NAMES_FEMALE) do
classTokens[class] = token
end
function GetClassToken(className)
return className and classTokens[className]
end
In this way the GetClassToken(class) works always for class coloring the names and do the jobs always instead of my ugly solution I have found and that works only in english clients.
Lua Code:
class = strupper(class):gsub("%s+","")
BTW: if you want to check it is here:
https://www.wowinterface.com/downloa...ldFriends.html
Any comments are welcome.
Thanks so much for your time.