mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 03:24:55 +02:00
double click funcionalities and some fixes
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user