Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/gamestate/data/gui/scripts/QuestGUI.lua @ 6459

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

Simplified BasicGUI construction. Just give the name of the GUI as argument. The rest will be deduced.

  • Property svn:eol-style set to native
File size: 487 bytes
RevLine 
[5754]1gui = require("BasicGUI")
[6459]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.