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 |
local secondaryName = ZO_GetSecondaryPlayerName ( applicationData . name , applicationData . characterName )
-- Primary Name Header
-- Secondary Name
-- Player Level
local statValuePair = statsSection : AcquireStatValuePair ( self : GetStyle ( "statValuePair" ) , self : GetStyle ( "fullWidth" ) )
statValuePair : SetStat ( GetString ( SI_GUILD_RECRUITMENT_APPLICATIONS_SORT_HEADER_LEVEL ) , self : GetStyle ( "statValuePairStat" ) )
local ICON_SIZE = 40
local levelText = GetLevelOrChampionPointsString ( applicationData . level , applicationData . championPoints , ICON_SIZE )
-- Player Class
statValuePair = statsSection : AcquireStatValuePair ( self : GetStyle ( "statValuePair" ) , self : GetStyle ( "fullWidth" ) )
statValuePair : SetStat ( GetString ( SI_GUILD_RECRUITMENT_CLASS_HEADER ) , self : GetStyle ( "statValuePairStat" ) )
statValuePair : SetValue ( zo_strformat ( SI_CLASS_NAME , GetClassName ( GENDER_MALE , applicationData . class ) ) , self : GetStyle ( "socialStatsValue" ) )
-- Player Alliance
statValuePair = statsSection : AcquireStatValuePair ( self : GetStyle ( "statValuePair" ) , self : GetStyle ( "fullWidth" ) )
statValuePair : SetStat ( GetString ( "SI_GUILDMETADATAATTRIBUTE" , GUILD_META_DATA_ATTRIBUTE_ALLIANCE ) , self : GetStyle ( "statValuePairStat" ) )
statValuePair : SetValue ( ZO_CachedStrFormat ( SI_ALLIANCE_NAME , GetAllianceName ( applicationData . alliance ) ) , self : GetStyle ( "socialStatsValue" ) )
-- Player Achievement Points
statValuePair = statsSection : AcquireStatValuePair ( self : GetStyle ( "statValuePair" ) , self : GetStyle ( "fullWidth" ) )
statValuePair : SetStat ( GetString ( SI_GAMEPAD_ACHIEVEMENTS_POINTS_LABEL ) , self : GetStyle ( "statValuePairStat" ) )
statValuePair : SetValue ( zo_strformat ( SI_NUMBER_FORMAT , ZO_CommaDelimitNumber ( applicationData . achievementPoints ) ) , self : GetStyle ( "socialStatsValue" ) )
end
do
local TEXTURE_SCALE_PERCENT = 100
local keybindString
local key , mod1 , mod2 , mod3 , mod4 = GetHighestPriorityActionBindingInfoFromName ( "UI_SHORTCUT_SECONDARY" , IsInGamepadPreferredMode ( ) )
if key ~= KEY_INVALID then
keybindString = ZO_Keybindings_GetBindingStringFromKeys ( key , mod1 , mod2 , mod3 , mod4 , KEYBIND_TEXT_OPTIONS_FULL_NAME , KEYBIND_TEXTURE_OPTIONS_EMBED_MARKUP , TEXTURE_SCALE_PERCENT , TEXTURE_SCALE_PERCENT )
else
end
bodySection : AddLine ( zo_strformat ( SI_GAMEPAD_GUILD_LINK_TOOLTIP_DESCRIPTION , keybindString , ZO_WHITE : Colorize ( guildName ) ) , self : GetStyle ( "flavorText" ) )
end
end
end |