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 |
------------------
-- Guild Finder --
------------------
ZO_GUILD_FINDER_ROLE_ORDER =
{
LFG_ROLE_TANK ,
LFG_ROLE_HEAL ,
LFG_ROLE_DPS ,
}
ZO_GUILD_FINDER_APPLICATION_ENTRY_TYPE = 1
local DEFAULT_ICON_SIZE = 24
return manager
end
end
self . applicationKeyboardTooltipInfo =
{
}
end
local levelText = zo_strformat ( SI_GUILD_FINDER_APPLICATIONS_ATTRIBUTE_TOOLTIP_FORMATTER , GetString ( SI_GUILD_RECRUITMENT_APPLICATIONS_SORT_HEADER_LEVEL ) , GetLevelOrChampionPointsString ( data . level , data . championPoints , iconSize ) )
local classValue = ZO_CachedStrFormat ( SI_GUILD_FINDER_APPLICATIONS_ATTRIBUTE_ICON_VALUE_TOOLTIP_FORMATTER , classIcon , GetClassName ( GENDER_MALE , classId ) )
local classText = zo_strformat ( SI_GUILD_FINDER_APPLICATIONS_ATTRIBUTE_TOOLTIP_FORMATTER , GetString ( SI_GUILD_RECRUITMENT_CLASS_HEADER ) , classValue )
local allianceIcon = zo_iconFormatInheritColor ( GetAllianceSymbolIcon ( allianceId ) , iconSize , iconSize )
local allianceValue = ZO_CachedStrFormat ( SI_GUILD_FINDER_APPLICATIONS_ATTRIBUTE_ICON_VALUE_TOOLTIP_FORMATTER , allianceIcon , GetAllianceName ( allianceId ) )
local allianceText = zo_strformat ( SI_GUILD_FINDER_APPLICATIONS_ATTRIBUTE_TOOLTIP_FORMATTER , GetString ( SI_GUILD_RECRUITMENT_ALLIANCE_HEADER ) , allianceValue )
local achievementPointsText = zo_strformat ( SI_GUILD_FINDER_APPLICATIONS_ATTRIBUTE_TOOLTIP_FORMATTER , GetString ( SI_GUILD_RECRUITMENT_ACHIEVEMENT_POINTS_HEADER ) , ZO_CommaDelimitNumber ( data . achievementPoints ) )
end
end
function ZO_GuildFinder_Manager . GetAttributeCommaFormattedList ( guildId , iterBegin , iterEnd , checkFunction , stringBase )
local foundValues = { }
local hasAttributeSet = false
for i = iterBegin , iterEnd do
table . insert ( foundValues , ZO_CachedStrFormat ( SI_GUILD_FINDER_ATTRIBUTE_VALUE_FORMATTER , GetString ( stringBase , i ) ) )
hasAttributeSet = true
end
end
if not hasAttributeSet then
end
end
function ZO_GuildFinder_Manager . SetTextForMetaDataAttributeKeyboard ( labelControl , metaDataAttribute , attributeStringPrefix , data )
ZO_GuildFinder_Manager . SetTextForValuePairKeyboard ( labelControl , zo_strformat ( SI_GUILD_FINDER_GUILD_INFO_HEADER_FORMATTER , labelString ) , valueString )
end
local text = zo_strformat ( SI_GUILD_FINDER_GUILD_INFO_ATTRIBUTE_FORMATTER , labelString , ZO_SELECTED_TEXT : Colorize ( valueString ) )
end
function ZO_GuildFinder_Manager . SetTextForNoGrammarValuePairKeyboard ( labelControl , labelString , valueString )
local text = zo_strformat ( SI_GUILD_FINDER_GUILD_INFO_NO_GRAMMAR_ATTRIBUTE_FORMATTER , labelString , ZO_SELECTED_TEXT : Colorize ( valueString ) )
end
local formattedStartTime = ZO_FormatTime ( guildData . startTimeHour * ZO_ONE_HOUR_IN_SECONDS , TIME_FORMAT_STYLE_CLOCK_TIME , ZO_GetClockFormat ( ) )
local formattedEndTime = ZO_FormatTime ( guildData . endTimeHour * ZO_ONE_HOUR_IN_SECONDS , TIME_FORMAT_STYLE_CLOCK_TIME , ZO_GetClockFormat ( ) )
return zo_strformat ( SI_GUILD_FINDER_GUILD_INFO_PLAYTIME_FORMATTER , formattedStartTime , formattedEndTime )
end
local MAX_ROLES = 3
local iconTexts = { }
-- If none are selected auto-select all
if # roles == 0 then
roles = { LFG_ROLE_DPS , LFG_ROLE_TANK , LFG_ROLE_HEAL }
end
for i = 1 , MAX_ROLES do
if i <= # roles then
else
iconTexts [ i ] = ""
end
end
end
do
return MAX_CP_ALLOWED
end
end
return applicationResult ~= GUILD_PROCESS_APP_RESPONSE_APPLICATION_UNPROCESSED and
applicationResult ~= GUILD_PROCESS_APP_RESPONSE_APPLICATION_ACTION_PROCESSING
end
-- XML Functions
end |