FrameworkZ 4.4.2
Provides a framework for Project Zomboid with various systems.
Loading...
Searching...
No Matches
client/_FrameworkZ/0_Pre_Config.lua
Go to the documentation of this file.
1require "OptionScreens/ConnectToServer"
2require "OptionScreens/MainScreen"
3
8function FrameworkZ.PreConfig.onChatWindowInit()
9 ISChat.instance:setVisible(false)
10end
11Events.OnChatWindowInit.Add(FrameworkZ.PreConfig.onChatWindowInit)
12
13ConnectToServer.OnConnected = function(self)
14 if not SystemDisabler.getAllowDebugConnections() and getDebug() and not isAdmin() and not isCoopHost() and not SystemDisabler.getOverrideServerConnectDebugCheck() then
15 forceDisconnect()
16 return
17 end
18 connectionManagerLog("connect-state-finish", "lua-connected");
20 self:setVisible(false)
21 if not checkSavePlayerExists() then
22 if not getWorld():getMap() then
23 getWorld():setMap("Muldraugh, KY")
24 end
25
26 if MainScreen.instance.createWorld then
27 createWorld(getWorld():getWorld())
28 end
29
30 GameWindow.doRenderEvent(false)
31 forceChangeState(LoadingQueueState.new())
32 else
33 GameWindow.doRenderEvent(false)
34 forceChangeState(LoadingQueueState.new())
35 end
36end
37
39MainScreen.onMenuItemMouseDownMainMenu = function(item, x, y)
40 if item.internal == "EXIT" then
41 FrameworkZ.Players:Destroy(getPlayer():getUsername())
42 end
43
44 if item.internal == "QUIT_TO_DESKTOP" then
45 FrameworkZ.Players:Destroy(getPlayer():getUsername())
46 end
47
49end
50
void local Events()
void FrameworkZ Foundation()
void local y()
void local x()
void local instance()
void self self
Definition MainMenu.lua:85
void local getPlayer()
void local item()
void ConnectToServer OnConnected()
void self connecting()
void FrameworkZ()
void if item internal()
void MainScreen onMenuItemMouseDownMainMenu()
void FrameworkZ PreConfig()
void FrameworkZ PreConfig MainScreen_onMenuItemMouseDownMainMenu()
Foundation for FrameworkZ.
FrameworkZ global table.