Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

some minor changes…

  • Property svn:eol-style set to native
File size: 751 bytes
Line 
1gui = require("BasicGUI")
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()
13    self.window:show() -- TDO: Do this through parent...
14    self.visible = true
15
16    local questManager = orxonox.QuestManager:getInstance()
17     
18    local questsList = windowManager:getWindow("orxonox/QuestGUI/QuestsList")
19
20    local window = questManager:getQuestGUI(P.filename)
21
22    questsList:addChildWindow(window)
23
24end
25
26function P:button_activeQuests_clicked(e)
27   
28end
29
30function P:button_completedQuests_clicked(e)
31   
32end
33
34function P:button_failedQuests_clicked(e)
35   
36end
37
38return P
39
Note: See TracBrowser for help on using the repository browser.