2011-08-29 05:04:23 +02:00
|
|
|
Module
|
|
|
|
name: game
|
|
|
|
description: Create the game interface, where the ingame stuff starts
|
|
|
|
author: OTClient team
|
|
|
|
website: https://github.com/edubart/otclient
|
2011-12-05 19:27:07 +01:00
|
|
|
|
|
|
|
dependencies:
|
2012-02-20 03:27:08 +01:00
|
|
|
- game_tibiafiles
|
2012-03-18 14:34:39 +01:00
|
|
|
- client_background
|
2012-02-20 03:27:08 +01:00
|
|
|
//- game_shaders
|
2011-12-05 19:27:07 +01:00
|
|
|
|
2012-03-18 14:34:39 +01:00
|
|
|
load-later:
|
|
|
|
- game_textmessage
|
|
|
|
- game_console
|
2012-03-22 22:47:52 +01:00
|
|
|
- game_outfit
|
2012-03-23 14:48:05 +01:00
|
|
|
- game_healthbar
|
2012-03-28 16:10:21 +02:00
|
|
|
- game_skills
|
2012-03-23 14:48:05 +01:00
|
|
|
- game_inventory
|
2012-03-28 16:10:21 +02:00
|
|
|
- game_combatcontrols
|
2012-04-03 01:09:47 +02:00
|
|
|
- game_containers
|
2012-03-28 16:10:21 +02:00
|
|
|
- game_viplist
|
2012-04-03 01:09:47 +02:00
|
|
|
- game_battle
|
2012-03-29 01:19:28 +02:00
|
|
|
- game_hotkeys
|
2012-03-18 14:34:39 +01:00
|
|
|
|
|
|
|
@onLoad: |
|
|
|
|
importStyle 'styles/items.otui'
|
|
|
|
importStyle 'styles/creatures.otui'
|
|
|
|
importStyle 'styles/miniwindow.otui'
|
|
|
|
importStyle 'styles/countwindow.otui'
|
|
|
|
|
|
|
|
dofile 'const'
|
|
|
|
|
|
|
|
dofile 'widgets/uigamemap'
|
2012-03-23 14:48:05 +01:00
|
|
|
dofile 'widgets/uiitem'
|
2012-03-27 00:24:01 +02:00
|
|
|
dofile 'widgets/uiminiwindow'
|
|
|
|
dofile 'widgets/uiminiwindowcontainer'
|
2012-03-18 14:34:39 +01:00
|
|
|
|
2012-02-06 05:39:52 +01:00
|
|
|
dofile 'creature'
|
2012-03-23 14:48:05 +01:00
|
|
|
dofile 'player'
|
|
|
|
|
|
|
|
dofile 'gameinterface'
|
|
|
|
|
2012-03-18 14:34:39 +01:00
|
|
|
GameInterface.init()
|
|
|
|
|
|
|
|
@onUnload: |
|
|
|
|
GameInterface.terminate()
|