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 |
end
if note and note ~= "" then
end
end
offlineSection : AddLine ( GetString ( SI_GAMEPAD_CONTACTS_STATUS_OFFLINE ) , self : GetStyle ( "socialOffline" ) )
local lastOnlinePair = lastOnlineSection : AcquireStatValuePair ( self : GetStyle ( "statValuePair" ) , self : GetStyle ( "fullWidth" ) )
lastOnlinePair : SetStat ( GetString ( SI_GAMEPAD_SOCIAL_LIST_LAST_ONLINE ) , self : GetStyle ( "statValuePairStat" ) )
lastOnlinePair : SetValue ( ZO_FormatDurationAgo ( secsSinceLogoff + GetFrameTimeSeconds ( ) - timeStamp ) , self : GetStyle ( "socialStatsValue" ) )
end
end
local function AddCharacterInfo ( self , characterName , class , gender , guildId , guildRankIndex , level , championPoints , alliance , zone )
if characterName then
characterSection : AddLine ( ZO_FormatUserFacingCharacterName ( characterName ) , self : GetStyle ( "socialStatsValue" ) )
end
local levelPair = statsSection : AcquireStatValuePair ( self : GetStyle ( "statValuePair" ) , self : GetStyle ( "fullWidth" ) )
levelPair : SetStat ( GetString ( SI_GAMEPAD_CONTACTS_LIST_HEADER_LEVEL ) , self : GetStyle ( "statValuePairStat" ) )
local ICON_SIZE = 40
end
if class then
local classPair = statsSection : AcquireStatValuePair ( self : GetStyle ( "statValuePair" ) , self : GetStyle ( "fullWidth" ) )
classPair : SetStat ( GetString ( SI_GAMEPAD_CONTACTS_LIST_HEADER_CLASS ) , self : GetStyle ( "statValuePairStat" ) )
gender = gender or GENDER_MALE
end
if alliance then
local alliancePair = statsSection : AcquireStatValuePair ( self : GetStyle ( "statValuePair" ) , self : GetStyle ( "fullWidth" ) )
alliancePair : SetStat ( GetString ( SI_GAMEPAD_CONTACTS_LIST_HEADER_ALLIANCE ) , self : GetStyle ( "statValuePairStat" ) )
end
if guildRankIndex and guildId then
local guildRankPair = statsSection : AcquireStatValuePair ( self : GetStyle ( "statValuePair" ) , self : GetStyle ( "fullWidth" ) )
guildRankPair : SetStat ( GetString ( SI_GAMEPAD_GUILD_ROSTER_RANK_HEADER ) , self : GetStyle ( "statValuePairStat" ) )
end
if zone then
local zonePair = statsSection : AcquireStatValuePair ( self : GetStyle ( "statValuePair" ) , self : GetStyle ( "fullWidth" ) )
end
end
function ZO_Tooltip : LayoutFriend ( displayName , characterName , class , gender , level , championPoints , alliance , zone , offline , secsSinceLogoff , timeStamp )
AddCharacterInfo ( self , characterName , class , gender , nil , nil , level , championPoints , alliance , zone )
end
function ZO_Tooltip : LayoutGuildMember ( displayName , characterName , class , gender , guildId , guildRankIndex , note , level , championPoints , alliance , zone , offline , secsSinceLogoff , timeStamp )
AddCharacterInfo ( self , characterName , class , gender , guildId , guildRankIndex , level , championPoints , alliance , zone )
end |