mirror of
https://github.com/edubart/otclient.git
synced 2025-10-15 03:54:54 +02:00
change loadUI/UI.display lua API
This commit is contained in:
@@ -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
|
||||
|
@@ -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')
|
||||
|
Reference in New Issue
Block a user