Show guild rank level in addition to rank name
frozn opened this issue · 1 comments
Source: https://www.curseforge.com/wow/addons/tiptac-reborn?comment=16
athko:
Is it possible to Show guild rank level as above in 【ttStyle.lua】?
The guild rank now only shows the rank not the rank level
-- guild--
guild local guild, guildName, guildRank = GetGuildInfo(unit);
if (guild) then local pGuild = GetGuildInfo("player");
local guildColor = (guild == pGuild and cfg.colSameGuild or cfg.colorGuildByReaction and u.reactionColor or cfg.colGuild);
GameTooltipTextLeft2:SetFormattedText(cfg.showGuildRank and guildRank and guildName and "%s<%s> %s%s %s%s" or "%s%s<%s>",guildColor,guild,COL_LIGHTGRAY,guildRank,COL_LIGHTGRAY,guildName);
lineInfo.Index = (lineInfo.Index + 1);
Portalbendarwinden:
I agree with this. The numerical guild rank is way more useful than the rank name, unless you know the meaning of the names by heart (which is rarely the case for other peoples guilds, and sometimes not even for the guilds of your own chars).
Best would be to have the possibility to display both, so you could learn the rank names on the fly.
jeremy7600:
thanks for the tip, i've done the text line like this:
GameTooltipTextLeft2:SetFormattedText(cfg.showGuildRank and guildRank and guildName and "%s<%s> %s%s %s(%s)" or "%s%s<%s>",guildColor,guild,COL_LIGHTGRAY,guildName,COL_LIGHTGRAY,guildRank);
swaps rank and rank level and puts the rank level in parenthesis:
<Guild> Alt (8)
Added with release v22.11.18.