Last change
on this file since 6518 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
|
Line | |
---|
1 | gui = require("BasicGUI") |
---|
2 | local P = BasicGUI:new("QuestGUI") |
---|
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 | |
---|
13 | local questManager = orxonox.QuestManager:getInstance() |
---|
14 | |
---|
15 | local questsList = winMgr:getWindow("orxonox/QuestGUI/QuestsList") |
---|
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.