change loadUI/UI.display lua API

This commit is contained in:
Eduardo Bart
2011-11-17 18:40:31 -02:00
parent 63cbe11f7e
commit 55136fe866
21 changed files with 88 additions and 45 deletions

View File

@@ -56,7 +56,7 @@ function CharacterList.create(characters, premDays)
charactersWindow:destroy()
end
charactersWindow = UI.loadAndDisplay('/entergame/characterlist.otui')
charactersWindow = UI.display('characterlist.otui')
characterList = charactersWindow:getChildById('characterList')
local accountStatusLabel = charactersWindow:getChildById('accountStatusLabel')
charactersWindow.onKeyPress = onCharactersWindowKeyPress

View File

@@ -51,7 +51,7 @@ end
-- public functions
function EnterGame.create()
enterGame = UI.loadAndDisplay('/entergame/entergame.otui')
enterGame = UI.display('entergame.otui')
local account = Configs.get('account')
local password = Configs.get('password')