mirror of
https://github.com/edubart/otclient.git
synced 2025-10-16 20:43:26 +02:00
More walk control optimization and fixes:
* Finished off the walking control optimization! (Should be smooth controlling now). * Fixed issue #151 * Fixed an issue with the character list. * Fixed a bug in the g_keyboard.isKeySetPressed function.
This commit is contained in:
@@ -231,17 +231,13 @@ function CharacterList.create(characters, account, otui)
|
||||
end
|
||||
|
||||
function CharacterList.destroy()
|
||||
charactersWindow:hide()
|
||||
CharacterList.hide(true)
|
||||
|
||||
if charactersWindow then
|
||||
characterList = nil
|
||||
charactersWindow:destroy()
|
||||
charactersWindow = nil
|
||||
end
|
||||
|
||||
if EnterGame and not g_game.isOnline() then
|
||||
EnterGame.show()
|
||||
end
|
||||
end
|
||||
|
||||
function CharacterList.show()
|
||||
@@ -252,8 +248,13 @@ function CharacterList.show()
|
||||
end
|
||||
end
|
||||
|
||||
function CharacterList.hide()
|
||||
function CharacterList.hide(showLogin)
|
||||
showLogin = showLogin or false
|
||||
charactersWindow:hide()
|
||||
|
||||
if showLogin and EnterGame and not g_game.isOnline() then
|
||||
EnterGame.show()
|
||||
end
|
||||
end
|
||||
|
||||
function CharacterList.showAgain()
|
||||
|
Reference in New Issue
Block a user