Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/gui/scripts/QuestGUI.lua @ 6745

Last change on this file since 6745 was 6711, checked in by dafrick, 15 years ago

Merged pickup4 branch back to trunk.

  • Property svn:eol-style set to native
File size: 580 bytes
RevLine 
[5754]1gui = require("BasicGUI")
[5746]2local P = BasicGUI:new() --inherit everything from the gui package
3if _REQUIREDNAME == nil then
4    QuestGUI = P
5else
6    _G[_REQUIREDNAME] = P
7end
8
9P.filename = "QuestGUI"
10P.layoutString = "QuestGUI.layout"
11
12function P:show()
[6711]13    self.window:show() -- TODO: Do this through parent...
[5746]14    self.visible = true
15
[5754]16    local questManager = orxonox.QuestManager:getInstance()
[6417]17
[5756]18    local questsList = winMgr:getWindow("orxonox/QuestGUI/QuestsList")
[5746]19
20    local window = questManager:getQuestGUI(P.filename)
21
22    questsList:addChildWindow(window)
23
24end
25
26return P
27
Note: See TracBrowser for help on using the repository browser.