ESO Lua File v100010

ingame/chatsystem/pc/chatsystem.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
--[[ Chat Container ]]--
ChatContainer = SharedChatContainer:Subclass()
function ChatContainer:New(...)
     return SharedChatContainer.New(self, ...)
end
function ChatContainer:Initialize(control, windowPool, tabPool)
     SharedChatContainer.Initialize(self, control, windowPool, tabPool)
end
function ChatContainer:ShowRemoveTabDialog(index)
     SharedChatContainer.ShowRemoveTabDialog(self, index, "CHAT_TAB_REMOVE")
end
--[[ Chat System ]]--
ZO_ChatSystem = SharedChatSystem:Subclass()
function ZO_ChatSystem:New(...)
     return SharedChatSystem.New(self, ...)
end
function ZO_ChatSystem:Initialize(control)
     SharedChatSystem.Initialize(self, control)
end
local function NewContainerHelper(chat, control, windowPool, tabPool)
     return ChatContainer:New(chat, control, windowPool, tabPool)
end
function ZO_ChatSystem:LoadChatFromSettings()
     local defaults = {
        containers = {
            ["*"] = {
                point = BOTTOMLEFT,
                relPoint = BOTTOMLEFT,
                x = 0,
                y = -82,
                width = 445,
                height = 267,
            },
        },
    }
     SharedChatSystem.LoadChatFromSettings(self, NewContainerHelper, defaults)
end
function ZO_ChatSystem:SetupSavedVars(defaults)
     self.sv = ZO_SavedVars:New("ZO_Ingame_SavedVariables", 4, "Chat", defaults)
end
function ZO_ChatSystem:InitializeSharedControlManagement(control)
end
--[[ XML Functions ]]--
    CHAT_SYSTEM = ZO_ChatSystem:New(control)
end