fix some issues

This commit is contained in:
Eduardo Bart
2011-12-09 13:01:04 -02:00
parent 2030a4da29
commit 8638c980ec
8 changed files with 23 additions and 21 deletions

View File

@@ -61,6 +61,7 @@ function CharacterList.create(characters, premDays)
local accountStatusLabel = charactersWindow:getChildById('accountStatusLabel')
charactersWindow.onKeyPress = onCharactersWindowKeyPress
local focusLabel
for i,characterInfo in ipairs(characters) do
local characterName = characterInfo[1]
local worldName = characterInfo[2]
@@ -76,10 +77,12 @@ function CharacterList.create(characters, premDays)
label.worldPort = worldIp
if i == 1 or g_configs.get('lastUsedCharacter') == characterName then
characterList:focusChild(label, ActiveFocusReason)
focusLabel = label
end
end
characterList:focusChild(focusLabel, ActiveFocusReason)
if premDays > 0 then
accountStatusLabel:setText("Account Status:\nPremium Account (" .. premDays .. ' days left)')
end