Changeset 6746 for code/trunk/data/gui/scripts/QuestGUI.lua
- Timestamp:
- Apr 16, 2010, 2:50:16 PM (15 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
code/trunk/data/gui/scripts/QuestGUI.lua
r6711 r6746 1 gui = require("BasicGUI") 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 1 -- QuestGUI.lua 8 2 9 P.filename = "QuestGUI" 10 P.layoutString = "QuestGUI.layout" 3 local P = createMenuSheet("QuestGUI") 11 4 12 function P :show()13 self.window:show() -- TODO: Do this through parent...14 self.visible = true5 function P.show() 6 P.window:show() -- TODO: Do this through parent... 7 P.visible = true 15 8 16 9 local questManager = orxonox.QuestManager:getInstance() … … 18 11 local questsList = winMgr:getWindow("orxonox/QuestGUI/QuestsList") 19 12 20 local window = questManager:getQuestGUI(P. filename)13 local window = questManager:getQuestGUI(P.name) 21 14 22 15 questsList:addChildWindow(window)
Note: See TracChangeset
for help on using the changeset viewer.