|
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 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 |
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 = ZO_GetLevelOrChampionPointsString(applicationData.level, applicationData.championPoints, ICON_SIZE) local levelNarrationText = ZO_GetLevelOrChampionPointsNarrationString(applicationData.level, applicationData.championPoints) statValuePair:SetValueWithCustomNarration(levelText, levelNarrationText, self:GetStyle("socialStatsValue")) -- 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, applicationData.achievementPoints), self:GetStyle("socialStatsValue"))end local params = { "UI_SHORTCUT_SECONDARY", } local KEYBIND_INDEX = 1 bodySection:AddParameterizedKeybindLine(SI_GAMEPAD_GUILD_LINK_TOOLTIP_DESCRIPTION, params, KEYBIND_INDEX, self:GetStyle("flavorText"))endend end local IS_GAMEPAD = true section:AddLineWithCustomNarration(eventData:GetText(IS_GAMEPAD), GetEventNarration, self:GetStyle("bodyDescription")) section:AddLine(eventData:GetFormattedTime(), self:GetStyle("bodyDescription"), self:GetStyle("whiteFontColor"))end local guildId, subject, body, _, expiresInSeconds, _, senderDisplayName = GetGuildMailItemInfo(guildMailId) --Sender if senderDisplayName == "" then else end local senderPair = statPairSection:AcquireStatValuePair(self:GetStyle("statValuePair"), self:GetStyle("fullWidth")) senderPair:SetStat(GetString(SI_GUILD_MAIL_MANAGEMENT_SORT_HEADER_SENDER), self:GetStyle("statValuePairStat")) --Expires local formattedExpiresText if expiresInSeconds <= ZO_ONE_MINUTE_IN_SECONDS then elseif expiresInSeconds < ZO_ONE_HOUR_IN_SECONDS then formattedExpiresText = ZO_FormatTime(expiresInSeconds, TIME_FORMAT_STYLE_SHOW_LARGEST_UNIT, TIME_FORMAT_PRECISION_SECONDS, TIME_FORMAT_DIRECTION_DESCENDING) else formattedExpiresText = ZO_FormatTimeLargestTwo(expiresInSeconds, TIME_FORMAT_STYLE_DESCRIPTIVE_MINIMAL_HIDE_ZEROES) end local expiresPair = statPairSection:AcquireStatValuePair(self:GetStyle("statValuePair"), self:GetStyle("fullWidth")) expiresPair:SetStat(GetString(SI_GUILD_MAIL_MANAGEMENT_SORT_HEADER_EXPIRES), self:GetStyle("statValuePairStat")) -- Target Ranks local targetRankNames = {} if rankIndex then end end local formattedRanksText if #targetRankNames > 0 then else end ranksSection:AddLine(GetString(SI_GUILD_MAIL_MANAGEMENT_TO_LABEL), self:GetStyle("guildMailManagementBodyHeader")) -- Subject if subject == "" then end subjectSection:AddLine(GetString(SI_GAMEPAD_MAIL_SUBJECT_LABEL), self:GetStyle("guildMailManagementBodyHeader")) --Message if body == "" then end messageSection:AddLine(GetString(SI_GAMEPAD_MAIL_BODY_LABEL), self:GetStyle("guildMailManagementBodyHeader"))end |