Fix issue #86
This commit is contained in:
parent
7ab2c02c79
commit
6f2255071c
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue