mirror of
https://github.com/edubart/otclient.git
synced 2025-12-21 16:07:12 +01:00
add a new folder structure redesign organized by packages
This commit is contained in:
16
packages/mainmenu/init.lua
Normal file
16
packages/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