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
function CharacterList.isVisible()
if charactersWindow and charactersWindow:isVisible() then
return true
end
return false
end
function CharacterList.doLogin()
local selected = charactersWindow:getChildById('characterList'):getFocusedChild()
if selected then

View File

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