mirror of
https://github.com/edubart/otclient.git
synced 2025-12-25 09:17:11 +01:00
rework ui related scripting stuff
This commit is contained in:
16
data/modules/mainmenu/init.lua
Normal file
16
data/modules/mainmenu/init.lua
Normal file
@@ -0,0 +1,16 @@
|
||||
require 'entergame'
|
||||
|
||||
function initializeApplication()
|
||||
mainMenu = loadUI("ui/mainmenu")
|
||||
end
|
||||
|
||||
function terminateApplication()
|
||||
App.exit()
|
||||
end
|
||||
|
||||
-- here is where everything starts
|
||||
if not initialized then
|
||||
initializeApplication()
|
||||
App.onClose = terminateApplication
|
||||
initialized = true
|
||||
end
|
||||
Reference in New Issue
Block a user