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 |
------------------
-- Guild Finder: Guild Recruitment Manager --
--
-- Manages Guild Recruitment data in lua
------------------
return manager
end
end
end
end
local defaults = { guildResponseTexts = { } }
self . savedVars = ZO_SavedVars : NewAccountWide ( "ZO_Ingame_SavedVariables" , 1 , "ZO_GuildRecruitment_ResponseMessage" , defaults )
end
end
ZO_Dialogs_ShowPlatformDialog ( "GUILD_FINDER_BLACKLIST_FAILED" , nil , { mainTextParams = { result } } )
ZO_Alert ( UI_ALERT_CATEGORY_ALERT , nil , zo_strformat ( SI_GUILD_RECRUITMENT_ADDED_TO_BLACKLIST_ALERT , displayName , guildName ) )
end
end
end
if result == GUILD_PROCESS_APP_RESPONSE_APPLICATION_PROCESSED_ACCEPT then
ZO_Alert ( UI_ALERT_CATEGORY_ALERT , nil , zo_strformat ( SI_GUILD_RECRUITMENT_APPLICATION_ACCEPTED_ALERT , displayName , guildName ) )
elseif result == GUILD_PROCESS_APP_RESPONSE_APPLICATION_PROCESSED_DECLINE then
ZO_Alert ( UI_ALERT_CATEGORY_ALERT , nil , zo_strformat ( SI_GUILD_RECRUITMENT_APPLICATION_DECLINED_ALERT , displayName , guildName ) )
elseif result == GUILD_PROCESS_APP_RESPONSE_APPLICATION_PROCESSED_RESCIND then
-- No alert needed for rescind
else
ZO_Dialogs_ShowPlatformDialog ( "GUILD_FINDER_PROCESS_APPLICATION_FAILED" , nil , { mainTextParams = { result } } )
end
end
end
EVENT_MANAGER : RegisterForEvent ( "ZO_GuildRecruitment_Manager" , EVENT_GUILD_FINDER_APPLICATION_RESULTS_GUILD , OnGuildFinderApplicationsReceived )
EVENT_MANAGER : RegisterForEvent ( "ZO_GuildRecruitment_Manager" , EVENT_GUILD_FINDER_GUILD_NEW_APPLICATIONS , OnGuildFinderApplicationsReceived )
EVENT_MANAGER : RegisterForEvent ( "ZO_GuildRecruitment_Manager" , EVENT_GUILD_FINDER_BLACKLIST_RESULTS , OnGuildFinderBlacklistReceived )
EVENT_MANAGER : RegisterForEvent ( "ZO_GuildRecruitment_Manager" , EVENT_GUILD_RANK_CHANGED , OnGuildPermissionsReceived )
EVENT_MANAGER : RegisterForEvent ( "ZO_GuildRecruitment_Manager" , EVENT_GUILD_FINDER_BLACKLIST_RESPONSE , OnBlacklistResponse )
EVENT_MANAGER : RegisterForEvent ( "ZO_GuildRecruitment_Manager" , EVENT_GUILD_MEMBER_ADDED , OnGuildMembershipChanged )
EVENT_MANAGER : RegisterForEvent ( "ZO_GuildRecruitment_Manager" , EVENT_GUILD_MEMBER_REMOVED , OnGuildMembershipChanged )
EVENT_MANAGER : RegisterForEvent ( "ZO_GuildRecruitment_Manager" , EVENT_GUILD_PLAYER_RANK_CHANGED , OnGuildPermissionsReceived )
EVENT_MANAGER : RegisterForEvent ( "ZO_GuildRecruitment_Manager" , EVENT_GUILD_FINDER_PROCESS_APPLICATION_RESPONSE , OnProcessApplicationResponse )
EVENT_MANAGER : RegisterForEvent ( "ZO_GuildRecruitment_Manager" , EVENT_GUILD_RECRUITMENT_INFO_UPDATED , OnUpdatedGuildInfoReceived )
end
return result == GUILD_BLACKLIST_RESPONSE_BLACKLIST_SUCCESSFULLY_ADDED or
result == GUILD_BLACKLIST_RESPONSE_BLACKLIST_SUCCESSFULLY_REMOVED or
result == GUILD_BLACKLIST_RESPONSE_BLACKLIST_SUCCESSFULLY_EDITTED
end
return result == GUILD_BLACKLIST_RESPONSE_BLACKLIST_SUCCESSFULLY_ADDED
end
end
end
function ZO_GuildRecruitment_Manager . PopulateDropdown ( dropDownControl , iterBegin , iterEnd , stringBase , selectionFunction , data , omittedIndex )
end
local selectedEntryIndex
local currentIndex = 1
selectedEntryIndex = currentIndex
end
currentIndex = currentIndex + 1
end
end
for i = iterBegin , iterEnd do
end
end
end
local IGNORE_CALLBACK = true
if selectedEntryIndex then
else
end
end
|