Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/gamestates2/data/gui/scripts/QuestGUI.lua @ 6595

Last change on this file since 6595 was 6595, checked in by rgrieder, 15 years ago

Merged remaining revisions from gamestate to gamestates2.

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