Back to Home

ESO Lua File v100032

ingame/guildfinder/gamepad/guildrecruitment_applicationsdefaultmessage_gamepad.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
37
38
39
40
41
------------------
-- Guild Finder --
------------------
ZO_GuildRecruitment_ApplicationsDefaultMessage_Gamepad = ZO_Object.MultiSubclass(ZO_GuildRecruitment_Panel_Shared, ZO_GuildFinder_Panel_GamepadBehavior)
function ZO_GuildRecruitment_ApplicationsDefaultMessage_Gamepad:New(...)
    return ZO_GuildFinder_Panel_GamepadBehavior.New(self, ...)
end
function ZO_GuildRecruitment_ApplicationsDefaultMessage_Gamepad:Initialize(control)
    ZO_GuildRecruitment_Panel_Shared.Initialize(self, control)
    ZO_GuildFinder_Panel_GamepadBehavior.Initialize(self, control)
    self.messageLabel = control:GetNamedChild("PanelMessage")
end
function ZO_GuildRecruitment_ApplicationsDefaultMessage_Gamepad:UpdateText(savedMessage, messageLabel)
    if type(savedMessage) == "function" then
        savedMessage = savedMessage()
    end
    if savedMessage == "" then
        messageLabel:SetText(GetString(SI_GUILD_RECRUITMENT_DEFAULT_RESPONSE_DEFAULT_TEXT))
    else
        messageLabel:SetText(savedMessage)
    end
end
function ZO_GuildRecruitment_ApplicationsDefaultMessage_Gamepad:OnShowing()
    self:UpdateText(self.savedMessageFunction, self.messageLabel)
end
-- XML functions
----------------
    GUILD_RECRUITMENT_RESPONSE_MESSAGE_GAMEPAD = ZO_GuildRecruitment_ApplicationsDefaultMessage_Gamepad:New(control)
end