Back to Home

ESO Lua File v101044

ingame/guildfinder/guildrecruitment_shared.lua

[◄ back to folders ]
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
------------------
-- Guild Finder --
------------------
ZO_GuildRecruitment_Shared = ZO_Object:Subclass()
function ZO_GuildRecruitment_Shared:New(...)
    local object = ZO_Object.New(self)
    object:Initialize(...)
    return object
end
function ZO_GuildRecruitment_Shared:Initialize(control)
    self.control = control
    local function OnGuildPermissionChanged(guildId)
        if guildId == self.guildId then
            self:RefreshGuildPermissionsState()
        end
    end
    GUILD_RECRUITMENT_MANAGER:RegisterCallback("GuildPermissionsChanged", OnGuildPermissionChanged)
end
function ZO_GuildRecruitment_Shared:InitializeDefaultMessageDefaults()
   self.savedMessageFunction = function()
        return GUILD_RECRUITMENT_MANAGER:GetSavedApplicationsDefaultMessage(self.guildId) or ""
    end
end
function ZO_GuildRecruitment_Shared:SetGuildId(guildId)
    self.guildId = guildId
end
function ZO_GuildRecruitment_Shared:RefreshGuildPermissionsState()
    -- To be overridden
end