Back to Home

ESO Lua File v100027

ingame/guildfinder/keyboard/guildbrowser_applicationsdefaultmessage_keyboard.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
------------------
-- Guild Finder --
------------------
ZO_GuildBrowser_ApplicationsDefaultMessage_Keyboard = ZO_GuildFinder_Panel_Shared:Subclass()
function ZO_GuildBrowser_ApplicationsDefaultMessage_Keyboard:New(...)
    return ZO_GuildFinder_Panel_Shared.New(self, ...)
end
function ZO_GuildBrowser_ApplicationsDefaultMessage_Keyboard:Initialize(control)
    ZO_GuildFinder_Panel_Shared.Initialize(self, control)
    self.messageBox = ZO_ScrollingSavingEditBox:New(control:GetNamedChild("DefaultMessage"))
    self.messageBox:SetDefaultText(GetString(SI_GUILD_BROWSER_APPLICATIONS_MESSAGE_DEFAULT_TEXT))
    self.messageBox:SetEmptyText(GetString(SI_GUILD_BROWSER_APPLICATIONS_MESSAGE_EMPTY_TEXT))
    local editControl = self.messageBox:GetEditControl()
    editControl:SetMaxInputChars(MAX_GUILD_APPLICATION_MESSAGE_LENGTH)
    self.messageBox:RegisterCallback("Save", function(text) GUILD_BROWSER_MANAGER:SetSavedApplicationMessage(text) end)
end
function ZO_GuildBrowser_ApplicationsDefaultMessage_Keyboard:OnShowing()
    self.messageBox:SetText(GUILD_BROWSER_MANAGER:GetSavedApplicationMessage() or "")
end
-- XML Functions
-----------------
    GUILD_BROWSER_APPLICATIONS_KEYBOARD:SetSubcategoryManager(ZO_GUILD_BROWSER_APPLICATIONS_SUBCATEGORY_MESSAGE, ZO_GuildBrowser_ApplicationsDefaultMessage_Keyboard:New(control))
end