double click funcionalities and some fixes

This commit is contained in:
Andre Ricca da Costa
2012-02-03 04:20:58 -02:00
parent 1340699b01
commit 882b7ec026
5 changed files with 15 additions and 1 deletions

View File

@@ -73,9 +73,12 @@ function CharacterList.create(characters, premDays)
local label = createWidget('CharacterListLabel', characterList)
label:setText(characterName .. ' (' .. worldName .. ')')
label:setPhantom(false)
label.characterName = characterName
label.worldHost = worldHost
label.worldPort = worldIp
connect(label, { onMouseDoubleClick = function () CharacterList.doLogin() return true end } )
if i == 1 or Settings.get('lastUsedCharacter') == characterName then
focusLabel = label