mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 11:34:54 +02:00
some cleanup in modules, fixes in tooltip, uiwidget warnings, disable map saving for a while
This commit is contained in:
@@ -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
|
||||
|
@@ -9,7 +9,8 @@ Module
|
||||
require 'characterlist'
|
||||
EnterGame.init()
|
||||
|
||||
onUnload:
|
||||
onUnload: |
|
||||
EnterGame.terminate()
|
||||
CharacterList.terminate()
|
||||
|
||||
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user