Fix issue #86
This commit is contained in:
parent
7ab2c02c79
commit
6f2255071c
|
@ -53,6 +53,8 @@ function onGameQuestLog(quests)
|
||||||
questLogWindow.onDestroy = function()
|
questLogWindow.onDestroy = function()
|
||||||
questLogWindow = nil
|
questLogWindow = nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
questList:focusChild(questList:getFirstChild())
|
||||||
end
|
end
|
||||||
|
|
||||||
function onGameQuestLine(questId, questMissions)
|
function onGameQuestLine(questId, questMissions)
|
||||||
|
@ -71,13 +73,17 @@ function onGameQuestLine(questId, questMissions)
|
||||||
for i,questMission in pairs(questMissions) do
|
for i,questMission in pairs(questMissions) do
|
||||||
local name, description = unpack(questMission)
|
local name, description = unpack(questMission)
|
||||||
|
|
||||||
local missionLabel = g_ui.createWidget('MissionLabel', missionList)
|
local missionLabel = g_ui.createWidget('MissionLabel')
|
||||||
missionLabel:setText(name)
|
missionLabel:setText(name)
|
||||||
missionLabel.description = description
|
missionLabel.description = description
|
||||||
|
missionList:addChild(missionLabel)
|
||||||
end
|
end
|
||||||
|
|
||||||
questLineWindow.onDestroy = function()
|
questLineWindow.onDestroy = function()
|
||||||
if questLogWindow then questLogWindow:show() end
|
if questLogWindow then questLogWindow:show() end
|
||||||
questLineWindow = nil
|
questLineWindow = nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
missionList:focusChild(missionList:getFirstChild())
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue