some cleanup in modules, fixes in tooltip, uiwidget warnings, disable map saving for a while

This commit is contained in:
Eduardo Bart
2012-02-05 20:42:35 -02:00
parent 0471785d30
commit a55e138002
27 changed files with 180 additions and 114 deletions

View File

@@ -54,6 +54,18 @@ local function tryLogin(charInfo, tries)
end
-- public functions
function CharacterList.terminate()
characterList = nil
if charactersWindow then
charactersWindow:destroy()
charactersWindow = nil
end
if loadBox then
loadBox:destroy()
loadBox = nil
end
end
function CharacterList.create(characters, premDays)
if charactersWindow then
charactersWindow:destroy()
@@ -77,7 +89,7 @@ function CharacterList.create(characters, premDays)
label.characterName = characterName
label.worldHost = worldHost
label.worldPort = worldIp
connect(label, { onDoubleClick = function () CharacterList.doLogin() return true end } )
if i == 1 or Settings.get('lastUsedCharacter') == characterName then

View File

@@ -9,7 +9,8 @@ Module
require 'characterlist'
EnterGame.init()
onUnload:
onUnload: |
EnterGame.terminate()
CharacterList.terminate()

View File

@@ -40,7 +40,7 @@ MainWindow
LineEdit
id: serverHostLineEdit
tooltip: Only protocol 8.62 is supported
tooltip: Only protocol 8.6 is supported
anchors.left: serverLabel.left
anchors.right: serverLabel.right
anchors.top: serverLabel.bottom