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 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 |
if tokenType == SERVICE_TOKEN_ALLIANCE_CHANGE then
local tokensAvailableText = zo_strformat ( SI_SERVICE_TOOLTIP_REQUIRES_COLLECTIBLE_TO_USE , collectibleName , categoryName )
local meetsRequirementTextStyle
else
end
requiredCollectibleSection : AddLine ( tokensAvailableText , self : GetStyle ( "bodyDescription" ) , meetsRequirementTextStyle )
end
local tokensAvailableText
local tokensAvailableTextStyle
if numTokens ~= 0 then
tokensAvailableText = zo_strformat ( SI_SERVICE_TOOLTIP_SERVICE_TOKENS_AVAILABLE , numTokens , tokenTypeString )
else
end
tokenSection : AddLine ( tokensAvailableText , self : GetStyle ( "bodyDescription" ) , tokensAvailableTextStyle )
end
do
local gamepadIconString = "EsoUI/Art/Champion/Gamepad/gp_champion_icon.dds"
if characterData . championPoints and characterData . championPoints > 0 then
return zo_strformat ( SI_CHARACTER_SELECT_LEVEL_CHAMPION , formattedIcon , characterData . championPoints )
else
end
end
local raceName = characterData . race and GetRaceName ( characterData . gender , characterData . race ) or GetString ( SI_UNKNOWN_RACE )
end
local className = characterData . class and GetClassName ( characterData . gender , characterData . class ) or GetString ( SI_UNKNOWN_CLASS )
end
end
local locationName = characterData . location ~= 0 and GetLocationName ( characterData . location ) or GetString ( SI_UNKNOWN_LOCATION )
end
local characterLevelPair = detailsSection : AcquireStatValuePair ( self : GetStyle ( "statValuePair" ) , self : GetStyle ( "fullWidth" ) )
characterLevelPair : SetStat ( GetString ( SI_CHARACTER_SELECT_LEVEL ) , self : GetStyle ( "statValuePairStat" ) )
local characterRacePair = detailsSection : AcquireStatValuePair ( self : GetStyle ( "statValuePair" ) , self : GetStyle ( "fullWidth" ) )
characterRacePair : SetStat ( GetString ( SI_CHARACTER_SELECT_RACE_LABEL ) , self : GetStyle ( "statValuePairStat" ) )
local characterClassPair = detailsSection : AcquireStatValuePair ( self : GetStyle ( "statValuePair" ) , self : GetStyle ( "fullWidth" ) )
characterClassPair : SetStat ( GetString ( SI_CHARACTER_SELECT_CLASS_LABEL ) , self : GetStyle ( "statValuePairStat" ) )
local characterAlliancePair = detailsSection : AcquireStatValuePair ( self : GetStyle ( "statValuePair" ) , self : GetStyle ( "fullWidth" ) )
characterAlliancePair : SetStat ( GetString ( SI_CHARACTER_SELECT_ALLIANCE_LABEL ) , self : GetStyle ( "statValuePairStat" ) )
characterAlliancePair : SetValue ( GetFormattedAlliance ( characterData ) , self : GetStyle ( "statValuePairValue" ) )
local characterLocationPair = detailsSection : AcquireStatValuePair ( self : GetStyle ( "statValuePair" ) , self : GetStyle ( "fullWidth" ) )
characterLocationPair : SetStat ( GetString ( SI_CHARACTER_SELECT_LOCATION_LABEL ) , self : GetStyle ( "statValuePairStat" ) )
characterLocationPair : SetValue ( GetFormattedLocation ( characterData ) , self : GetStyle ( "statValuePairValue" ) )
end
end |