tibia-client/modules/mainmenu/mainmenu.otmod

28 lines
487 B
Plaintext
Raw Normal View History

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: |
require 'mainmenu'
require 'entergame'
require 'characterlist'
2011-08-14 04:09:11 +02:00
if not initialized then
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: |
MainMenu.destroy()
2011-08-14 04:09:11 +02:00
initialized = false