Last change
on this file since 6922 was
6659,
checked in by rgrieder, 15 years ago
|
Use "P." instead of "P:" when using our sheets as objects, not classes.
And use "P." instead of "self.".
This does not count for BasicGUI.lua because this is in fact seen as a class!!!
|
-
Property svn:eol-style set to
native
|
File size:
390 bytes
|
Rev | Line | |
---|
[6621] | 1 | -- QuestGUI.lua |
---|
[5746] | 2 | |
---|
[6621] | 3 | local P = createSheet("QuestGUI") |
---|
| 4 | |
---|
[6659] | 5 | function P.show() |
---|
| 6 | P.window:show() -- TDO: Do this through parent... |
---|
| 7 | P.visible = true |
---|
[5746] | 8 | |
---|
[5754] | 9 | local questManager = orxonox.QuestManager:getInstance() |
---|
[6417] | 10 | |
---|
[5756] | 11 | local questsList = winMgr:getWindow("orxonox/QuestGUI/QuestsList") |
---|
[5746] | 12 | |
---|
| 13 | local window = questManager:getQuestGUI(P.filename) |
---|
| 14 | |
---|
| 15 | questsList:addChildWindow(window) |
---|
| 16 | |
---|
| 17 | end |
---|
| 18 | |
---|
| 19 | return P |
---|
| 20 | |
---|
Note: See
TracBrowser
for help on using the repository browser.