mirror of
https://github.com/edubart/otclient.git
synced 2025-10-20 06:23:26 +02:00
ctrl+g kinda working, but login/logout events still need a remake
This commit is contained in:
@@ -9,17 +9,17 @@ Module
|
||||
- core
|
||||
|
||||
onLoad: |
|
||||
require('entergame')
|
||||
require 'mainmenu'
|
||||
require 'entergame'
|
||||
require 'characterlist'
|
||||
|
||||
if not initialized then
|
||||
mainMenu = UI.loadAndDisplay("/mainmenu/ui/mainmenu.otui")
|
||||
MainMenu.create()
|
||||
initialized = true
|
||||
end
|
||||
|
||||
return true
|
||||
|
||||
onUnload: |
|
||||
mainMenu:destroy()
|
||||
mainMenu = nil
|
||||
MainMenu.destroy()
|
||||
initialized = false
|
||||
|
||||
|
Reference in New Issue
Block a user