2011-08-14 04:09:11 +02:00
|
|
|
Module
|
|
|
|
name: mainmenu
|
2011-11-01 17:41:15 +01:00
|
|
|
description: Create the game main menu
|
2011-08-14 04:09:11 +02:00
|
|
|
author: OTClient team
|
|
|
|
website: https://github.com/edubart/otclient
|
|
|
|
version: 0.2
|
|
|
|
autoLoad: true
|
|
|
|
dependencies:
|
|
|
|
- core
|
2011-11-01 17:41:15 +01:00
|
|
|
- topmenu
|
2011-08-14 04:09:11 +02:00
|
|
|
|
|
|
|
onLoad: |
|
2011-08-29 16:14:21 +02:00
|
|
|
require 'mainmenu'
|
|
|
|
require 'entergame'
|
|
|
|
require 'characterlist'
|
2011-08-14 04:09:11 +02:00
|
|
|
|
|
|
|
if not initialized then
|
2011-08-29 16:14:21 +02:00
|
|
|
MainMenu.create()
|
2011-11-01 17:41:15 +01:00
|
|
|
EnterGame.create()
|
2011-08-14 04:09:11 +02:00
|
|
|
initialized = true
|
|
|
|
end
|
|
|
|
return true
|
|
|
|
|
|
|
|
onUnload: |
|
2011-08-29 16:14:21 +02:00
|
|
|
MainMenu.destroy()
|
2011-08-14 04:09:11 +02:00
|
|
|
initialized = false
|
|
|
|
|