1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
-----------------------
-- Tribute Club Rank --
-----------------------
local currentClubExperienceForRank , maxClubExperienceForRank = GetTributePlayerExperienceInCurrentClubRank ( )
--If the maximum club experience for this rank is 0, then we are maxed out
if maxClubExperienceForRank == 0 then
InformationTooltip : AddLine ( GetString ( SI_TRIBUTE_CLUB_EXPERIENCE_LIMIT_REACHED ) , "" , ZO_NORMAL_TEXT : UnpackRGBA ( ) )
else
local formattedRatioText = zo_strformat ( SI_TRIBUTE_EXPERIENCE_CURRENT_MAX_PERCENT , ZO_CommaDelimitNumber ( currentClubExperienceForRank ) , ZO_CommaDelimitNumber ( maxClubExperienceForRank ) , percentageXp )
InformationTooltip : AddLine ( zo_strformat ( SI_TRIBUTE_CLUB_EXPERIENCE_TOOLTIP_FORMATTER , formattedRatioText ) , "" , ZO_TOOLTIP_DEFAULT_COLOR : UnpackRGBA ( ) )
end
InformationTooltip : AddLine ( GetString ( SI_TRIBUTE_CLUB_EXPERIENCE_DESCRIPTION ) , "" , ZO_TOOLTIP_DEFAULT_COLOR : UnpackRGBA ( ) )
end
end
end
end
-- Display one higher than the clubRank used so we don't display 0 as the minimum
local currentClubExperienceForRank , maxClubExperienceForRank = GetTributePlayerExperienceInCurrentClubRank ( )
end |