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 |
------------------
-- Guild Finder --
------------------
ZO_GUILD_RECRUITMENT_GUILD_INFO_ATTRIBUTE_OFFSET_X = 20
ZO_GUILD_RECRUITMENT_GUILD_INFO_ATTRIBUTE_OFFSET_Y = 20
ZO_GuildRecruitment_GuildListingInfo_Gamepad = ZO_Object . MultiSubclass ( ZO_GuildRecruitment_GuildListingInfo_Shared , ZO_GuildFinder_Panel_GamepadBehavior )
end
self . recruitmentStatusLabelPair . header : SetText ( GetString ( "SI_GUILDMETADATAATTRIBUTE" , GUILD_META_DATA_ATTRIBUTE_RECRUITMENT_STATUS ) )
self . primaryFocusLabelPair . header : SetText ( GetString ( "SI_GUILDMETADATAATTRIBUTE" , GUILD_META_DATA_ATTRIBUTE_PRIMARY_FOCUS ) )
self . secondaryFocusLabelPair . header : SetText ( GetString ( "SI_GUILDMETADATAATTRIBUTE" , GUILD_META_DATA_ATTRIBUTE_SECONDARY_FOCUS ) )
self . personalitiesLabelPair . header : SetText ( GetString ( "SI_GUILDMETADATAATTRIBUTE" , GUILD_META_DATA_ATTRIBUTE_PERSONALITIES ) )
self . languagesLabelPair . header : SetText ( GetString ( "SI_GUILDMETADATAATTRIBUTE" , GUILD_META_DATA_ATTRIBUTE_LANGUAGES ) )
self . rolesLabelPair . header : SetText ( GetString ( "SI_GUILDMETADATAATTRIBUTE" , GUILD_META_DATA_ATTRIBUTE_ROLES ) )
self . minCPLabelPair . header : SetText ( GetString ( "SI_GUILDMETADATAATTRIBUTE" , GUILD_META_DATA_ATTRIBUTE_MINIMUM_CP ) )
activitiesHeader : SetText ( GetString ( "SI_GUILDMETADATAATTRIBUTE" , GUILD_META_DATA_ATTRIBUTE_ACTIVITIES ) )
end
if numMembers + numInvitees >= MAX_GUILD_MEMBERS then
GAMEPAD_TOOLTIPS : LayoutGuildAlert ( GAMEPAD_RIGHT_TOOLTIP , GetString ( SI_GUILD_RECRUITMENT_GUILD_LISTING_FULL_GUILD_ALERT ) )
GAMEPAD_TOOLTIPS : LayoutGuildAlert ( GAMEPAD_RIGHT_TOOLTIP , GetString ( SI_GUILD_RECRUITMENT_GUILD_LISTING_APPLICATIONS_FULL_GUILD_ALERT ) )
end
end
end
end
end
end
end
-- Overridden
return false
end
-- Overridden
local currentData = self . currentData
if currentData then
self . recruitmentStatusLabelPair . value : SetText ( zo_strformat ( SI_GAMEPAD_GUILD_FINDER_GUILD_INFO_ATTRIBUTE_FORMATTER , GetString ( "SI_GUILDRECRUITMENTSTATUSATTRIBUTEVALUE" , currentData . recruitmentStatus ) ) )
if currentData . recruitmentStatus == GUILD_RECRUITMENT_STATUS_ATTRIBUTE_VALUE_LISTED then
self . primaryFocusLabelPair . value : SetText ( zo_strformat ( SI_GAMEPAD_GUILD_FINDER_GUILD_INFO_ATTRIBUTE_FORMATTER , GetString ( "SI_GUILDFOCUSATTRIBUTEVALUE" , currentData . primaryFocus ) ) )
self . secondaryFocusLabelPair . value : SetText ( zo_strformat ( SI_GAMEPAD_GUILD_FINDER_GUILD_INFO_ATTRIBUTE_FORMATTER , GetString ( "SI_GUILDFOCUSATTRIBUTEVALUE" , currentData . secondaryFocus ) ) )
self . personalitiesLabelPair . value : SetText ( zo_strformat ( SI_GAMEPAD_GUILD_FINDER_GUILD_INFO_ATTRIBUTE_FORMATTER , GetString ( "SI_GUILDPERSONALITYATTRIBUTEVALUE" , currentData . personality ) ) )
self . languagesLabelPair . value : SetText ( zo_strformat ( SI_GAMEPAD_GUILD_FINDER_GUILD_INFO_ATTRIBUTE_FORMATTER , GetString ( "SI_GUILDLANGUAGEATTRIBUTEVALUE" , currentData . language ) ) )
self . rolesLabelPair . value : SetText ( zo_strformat ( SI_GAMEPAD_GUILD_FINDER_GUILD_INFO_ATTRIBUTE_FORMATTER , rolesText ) )
self . minCPLabelPair . value : SetText ( zo_strformat ( SI_GAMEPAD_GUILD_FINDER_GUILD_INFO_ATTRIBUTE_FORMATTER , currentData . minimumCP ) )
self . headerMessageLabel : SetText ( EscapeMarkup ( currentData . recruitmentHeadline , ALLOW_MARKUP_TYPE_COLOR_ONLY ) )
else
end
end
end
-- XML functions
----------------
GUILD_RECRUITMENT_GUILD_LISTING_INFO_GAMEPAD = ZO_GuildRecruitment_GuildListingInfo_Gamepad : New ( control )
end |