This commit is contained in:
Eduardo Bart 2012-09-05 16:33:36 -03:00
parent 7ab2c02c79
commit 6f2255071c
1 changed files with 7 additions and 1 deletions

View File

@ -53,6 +53,8 @@ function onGameQuestLog(quests)
questLogWindow.onDestroy = function()
questLogWindow = nil
end
questList:focusChild(questList:getFirstChild())
end
function onGameQuestLine(questId, questMissions)
@ -71,13 +73,17 @@ function onGameQuestLine(questId, questMissions)
for i,questMission in pairs(questMissions) do
local name, description = unpack(questMission)
local missionLabel = g_ui.createWidget('MissionLabel', missionList)
local missionLabel = g_ui.createWidget('MissionLabel')
missionLabel:setText(name)
missionLabel.description = description
missionList:addChild(missionLabel)
end
questLineWindow.onDestroy = function()
if questLogWindow then questLogWindow:show() end
questLineWindow = nil
end
missionList:focusChild(missionList:getFirstChild())
end