Last change
on this file since 5756 was
5756,
checked in by dafrick, 16 years ago
|
small fix in QuestGUI
|
-
Property svn:eol-style set to
native
|
File size:
744 bytes
|
Rev | Line | |
---|
[5754] | 1 | gui = require("BasicGUI") |
---|
[5746] | 2 | local P = BasicGUI:new() --inherit everything from the gui package |
---|
| 3 | if _REQUIREDNAME == nil then |
---|
| 4 | QuestGUI = P |
---|
| 5 | else |
---|
| 6 | _G[_REQUIREDNAME] = P |
---|
| 7 | end |
---|
| 8 | |
---|
| 9 | P.filename = "QuestGUI" |
---|
| 10 | P.layoutString = "QuestGUI.layout" |
---|
| 11 | |
---|
| 12 | function P:show() |
---|
| 13 | self.window:show() -- TDO: Do this through parent... |
---|
| 14 | self.visible = true |
---|
| 15 | |
---|
[5754] | 16 | local questManager = orxonox.QuestManager:getInstance() |
---|
| 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 | |
---|
| 24 | end |
---|
| 25 | |
---|
| 26 | function P:button_activeQuests_clicked(e) |
---|
| 27 | |
---|
| 28 | end |
---|
| 29 | |
---|
| 30 | function P:button_completedQuests_clicked(e) |
---|
| 31 | |
---|
| 32 | end |
---|
| 33 | |
---|
| 34 | function P:button_failedQuests_clicked(e) |
---|
| 35 | |
---|
| 36 | end |
---|
| 37 | |
---|
| 38 | return P |
---|
| 39 | |
---|
Note: See
TracBrowser
for help on using the repository browser.