Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/data/gui/scripts/QuestGUI.lua @ 5746

Last change on this file since 5746 was 5746, checked in by dafrick, 15 years ago

Forgot to add files…

File size: 1.3 KB
Line 
1-- QuestGUI
2
3BasicGUI = require("BasicGUI")
4local P = BasicGUI:new() --inherit everything from the gui package
5if _REQUIREDNAME == nil then
6    QuestGUI = P
7else
8    _G[_REQUIREDNAME] = P
9end
10
11P.filename = "QuestGUI"
12P.layoutString = "QuestGUI.layout"
13
14local windowManager = CEGUI.WindowManager:getSingleton()
15-- local playerManager = orxonox.PlayerManager
16local questManager = orxonox.QuestManager:getInstance()
17
18local quests = {}
19
20-- overwrites load function of previous load function
21function P:load()
22    element = P.__index.load(P) -- calling load function of parent class with ourselves and do other stuff now
23    --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 element
30end
31
32function P:show()
33    self.window:show() -- TDO: Do this through parent...
34    self.visible = true
35
36    local questsList = windowManager:getWindow("orxonox/QuestGUI/QuestsList")
37
38    local window = questManager:getQuestGUI(P.filename)
39
40    questsList:addChildWindow(window)
41
42end
43
44function P:button_activeQuests_clicked(e)
45   
46end
47
48function P:button_completedQuests_clicked(e)
49   
50end
51
52function P:button_failedQuests_clicked(e)
53   
54end
55
56return P
57
Note: See TracBrowser for help on using the repository browser.