mirror of
https://github.com/edubart/otclient.git
synced 2025-10-15 20:14:54 +02:00
Some changes to charlist
This commit is contained in:
@@ -191,17 +191,17 @@ function CharacterList.create(characters, premDays)
|
||||
|
||||
local focusLabel
|
||||
for i,characterInfo in ipairs(characters) do
|
||||
local characterName = characterInfo[1]
|
||||
local worldName = characterInfo[2]
|
||||
local worldHost = characterInfo[3]
|
||||
local worldIp = characterInfo[4]
|
||||
local characterName = characterInfo.name
|
||||
local worldName = characterInfo.worldName
|
||||
local worldHost = characterInfo.worldIp
|
||||
local worldPort = characterInfo.worldPort
|
||||
|
||||
local label = g_ui.createWidget('CharacterListLabel', characterList)
|
||||
label:setText(characterName .. ' (' .. worldName .. ')')
|
||||
label:setPhantom(false)
|
||||
label.characterName = characterName
|
||||
label.worldHost = worldHost
|
||||
label.worldPort = worldIp
|
||||
label.worldPort = worldPort
|
||||
|
||||
connect(label, { onDoubleClick = function () CharacterList.doLogin() return true end } )
|
||||
|
||||
@@ -214,6 +214,8 @@ function CharacterList.create(characters, premDays)
|
||||
|
||||
if premDays > 0 then
|
||||
accountStatusLabel:setText(tr("Account Status:\nPremium Account (%s) days left", premDays))
|
||||
else
|
||||
accountStatusLabel:setText(tr('Account Status:\nFree Account'))
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user