mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 03:24:55 +02:00
reorganize modules
This commit is contained in:
@@ -16,7 +16,7 @@ end
|
||||
function Game.createInterface()
|
||||
Background.hide()
|
||||
CharacterList.destroyLoadBox()
|
||||
Game.gameUi = UI.display('/game/game.otui')
|
||||
Game.gameUi = UI.display('game.otui')
|
||||
UI.root:moveChildToIndex(Game.gameUi, 1)
|
||||
Game.gameMapPanel = Game.gameUi:getChildById('mapPanel')
|
||||
Game.gameRightPanel = Game.gameUi:getChildById('rightPanel')
|
||||
@@ -56,5 +56,5 @@ function Game.onConnectionError(message)
|
||||
errorBox.onOk = CharacterList.show
|
||||
end
|
||||
|
||||
connect(Game, { onLogin = Game.createInterface,
|
||||
onLogout = Game.destroyInterface })
|
||||
connect(Game, { onLogin = Game.createInterface }, true)
|
||||
connect(Game, { onLogout = Game.destroyInterface })
|
||||
|
@@ -3,6 +3,16 @@ Module
|
||||
description: Create the game interface, where the ingame stuff starts
|
||||
author: OTClient team
|
||||
website: https://github.com/edubart/otclient
|
||||
|
||||
dependencies:
|
||||
- game_healthbar
|
||||
- game_inventory
|
||||
- game_skills
|
||||
- game_textmessage
|
||||
- game_viplist
|
||||
- game_chat
|
||||
- game_outfit
|
||||
|
||||
onLoad: |
|
||||
require 'game'
|
||||
return true
|
||||
return true
|
Reference in New Issue
Block a user