otclient/modules/mainmenu/mainmenu.otmod
2011-08-26 12:06:52 -03:00

26 lines
483 B
Plaintext

Module
name: mainmenu
description: Create the game mainmenu, where everything starts
author: OTClient team
website: https://github.com/edubart/otclient
version: 0.2
autoLoad: true
dependencies:
- core
onLoad: |
require('entergame')
if not initialized then
mainMenu = UI.loadAndDisplay("/mainmenu/ui/mainmenu.otui")
initialized = true
end
return true
onUnload: |
mainMenu:destroy()
mainMenu = nil
initialized = false