Changeset 5754 for code/trunk/data/gui/scripts
- Timestamp:
- Sep 20, 2009, 5:09:20 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/data/gui/scripts/QuestGUI.lua
r5748 r5754 1 -- QuestGUI 2 3 BasicGUI = require("BasicGUI") 1 gui = require("BasicGUI") 4 2 local P = BasicGUI:new() --inherit everything from the gui package 5 3 if _REQUIREDNAME == nil then … … 12 10 P.layoutString = "QuestGUI.layout" 13 11 14 local windowManager = CEGUI.WindowManager:getSingleton()15 -- local playerManager = orxonox.PlayerManager16 local questManager = orxonox.QuestManager:getInstance()17 18 local quests = {}19 20 -- overwrites load function of previous load function21 function P:load()22 element = P.__index.load(P) -- calling load function of parent class with ourselves and do other stuff now23 --win = winMgr:getWindow("orxonox/LevelListBox")24 --print(win.getItemCount())25 --item = winMgr:createWindow("TaharezLook/ListboxItem", "orxonox/LevelListBoxItem1")26 --item:setText("HiHo")27 --win:addItem(item)28 --print(win:getItemCount())29 return element30 end31 32 12 function P:show() 33 13 self.window:show() -- TDO: Do this through parent... 34 14 self.visible = true 35 15 16 local questManager = orxonox.QuestManager:getInstance() 17 36 18 local questsList = windowManager:getWindow("orxonox/QuestGUI/QuestsList") 37 19
Note: See TracChangeset
for help on using the changeset viewer.