2011-08-14 04:09:11 +02:00
|
|
|
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: |
|
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-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
|
|
|
|
|