fix double charlist

This commit is contained in:
Eduardo Bart 2012-01-06 22:08:08 -02:00
parent 14c517d7a6
commit a4ee590b47
2 changed files with 8 additions and 1 deletions

View File

@ -104,6 +104,13 @@ function CharacterList.show()
end end
end end
function CharacterList.isVisible()
if charactersWindow and charactersWindow:isVisible() then
return true
end
return false
end
function CharacterList.doLogin() function CharacterList.doLogin()
local selected = charactersWindow:getChildById('characterList'):getFocusedChild() local selected = charactersWindow:getChildById('characterList'):getFocusedChild()
if selected then if selected then

View File

@ -26,7 +26,7 @@ TopPanel
@onClick: | @onClick: |
if Game.isOnline() then if Game.isOnline() then
CharacterList.show() CharacterList.show()
else elseif not CharacterList.isVisible() then
EnterGame.show() EnterGame.show()
end end