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
|
Rev | Line | |
---|
[5754] | 1 | gui = require("BasicGUI") |
---|
[6459] | 2 | local P = BasicGUI:new("QuestGUI") |
---|
[5746] | 3 | if _REQUIREDNAME == nil then |
---|
| 4 | QuestGUI = P |
---|
| 5 | else |
---|
| 6 | _G[_REQUIREDNAME] = P |
---|
| 7 | end |
---|
| 8 | |
---|
| 9 | function 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 | |
---|
| 21 | end |
---|
| 22 | |
---|
| 23 | return P |
---|
| 24 | |
---|
Note: See
TracBrowser
for help on using the repository browser.