fix double charlist

master
Eduardo Bart 13 years ago
parent 14c517d7a6
commit a4ee590b47

@ -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

@ -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

Loading…
Cancel
Save