fix double charlist
This commit is contained in:
parent
14c517d7a6
commit
a4ee590b47
|
@ -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
|
||||
|
|
|
@ -26,7 +26,7 @@ TopPanel
|
|||
@onClick: |
|
||||
if Game.isOnline() then
|
||||
CharacterList.show()
|
||||
else
|
||||
elseif not CharacterList.isVisible() then
|
||||
EnterGame.show()
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue