- Timestamp:
- Feb 24, 2018, 3:09:05 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cegui0.8_ogre1.9/data/gui/scripts/Dialog.lua
r11783 r11806 32 32 33 33 34 local personfield = winMgr:getWindow("orxonox/Dialog/Person")34 local personfield = P.window:getChild("Options/Person") 35 35 local person = manager:getPerson() 36 36 personfield:setText(person) 37 37 38 local questionfield = winMgr:getWindow("orxonox/Dialog/Question")38 local questionfield = P.window:getChild("Options/QuestionWrapper/QuestionPane/Question") 39 39 local question = manager:getQuestion() 40 40 questionfield:setText(question) 41 41 42 local listboxwindow = winMgr:getWindow("orxonox/AnsListbox")42 local listboxwindow = P.window:getChild("Options/AnsListbox") 43 43 CEGUI.toListbox(listboxwindow):resetList() 44 44 … … 52 52 for k,v in pairs(ansList) do 53 53 item = CEGUI.createListboxTextItem(v) 54 item:setSelectionBrushImage(menuImageSet , "MultiListSelectionBrush")54 item:setSelectionBrushImage(menuImageSet .. "/MultiListSelectionBrush") 55 55 CEGUI.toListbox(listboxwindow):addItem(item) 56 56 end … … 61 61 manager:update(P.choice) 62 62 63 local questionfield = winMgr:getWindow("orxonox/Dialog/Question")63 local questionfield = P.window:getChild("Options/QuestionWrapper/QuestionPane/Question") 64 64 local question = manager:getQuestion() 65 65 questionfield:setText(question) 66 66 67 local listboxwindow = winMgr:getWindow("orxonox/AnsListbox")67 local listboxwindow = P.window:getChild("Options/AnsListbox") 68 68 listboxwindow:resetList() 69 69 … … 77 77 for k,v in pairs(ansList) do 78 78 item = CEGUI.createListboxTextItem(v) 79 item:setSelectionBrushImage(menuImageSet , "MultiListSelectionBrush")79 item:setSelectionBrushImage(menuImageSet .. "/MultiListSelectionBrush") 80 80 CEGUI.toListbox(listboxwindow):addItem(item) 81 81 end … … 85 85 86 86 function P.answer_changed(e) --wird aufgerufen falls Auswahl geaendert wird und setzt enstprechenden Indexparameter 87 listboxwindow = winMgr:getWindow("orxonox/AnsListbox")87 listboxwindow = P.window:getChild("Options/AnsListbox") 88 88 selection = listboxwindow:getFirstSelectedItem() 89 89 if selection ~= nil then
Note: See TracChangeset
for help on using the changeset viewer.