Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 24, 2018, 3:09:05 AM (7 years ago)
Author:
landauf
Message:

migrated all ingame menus to cegui 0.8

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/cegui0.8_ogre1.9/data/gui/scripts/Dialog.lua

    r11783 r11806  
    3232   
    3333   
    34     local personfield = winMgr:getWindow("orxonox/Dialog/Person")
     34    local personfield = P.window:getChild("Options/Person")
    3535    local person = manager:getPerson()
    3636    personfield:setText(person)
    3737
    38     local questionfield = winMgr:getWindow("orxonox/Dialog/Question")
     38    local questionfield = P.window:getChild("Options/QuestionWrapper/QuestionPane/Question")
    3939    local question = manager:getQuestion()
    4040    questionfield:setText(question)
    4141
    42     local listboxwindow = winMgr:getWindow("orxonox/AnsListbox")
     42    local listboxwindow = P.window:getChild("Options/AnsListbox")
    4343    CEGUI.toListbox(listboxwindow):resetList()
    4444
     
    5252    for k,v in pairs(ansList) do
    5353        item = CEGUI.createListboxTextItem(v)
    54         item:setSelectionBrushImage(menuImageSet, "MultiListSelectionBrush")
     54        item:setSelectionBrushImage(menuImageSet .. "/MultiListSelectionBrush")
    5555        CEGUI.toListbox(listboxwindow):addItem(item)
    5656    end
     
    6161    manager:update(P.choice)
    6262
    63     local questionfield = winMgr:getWindow("orxonox/Dialog/Question")
     63    local questionfield = P.window:getChild("Options/QuestionWrapper/QuestionPane/Question")
    6464    local question = manager:getQuestion()
    6565    questionfield:setText(question)
    6666
    67     local listboxwindow = winMgr:getWindow("orxonox/AnsListbox")
     67    local listboxwindow = P.window:getChild("Options/AnsListbox")
    6868    listboxwindow:resetList()
    6969
     
    7777    for k,v in pairs(ansList) do
    7878        item = CEGUI.createListboxTextItem(v)
    79         item:setSelectionBrushImage(menuImageSet, "MultiListSelectionBrush")
     79        item:setSelectionBrushImage(menuImageSet .. "/MultiListSelectionBrush")
    8080        CEGUI.toListbox(listboxwindow):addItem(item)
    8181    end
     
    8585
    8686function 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")
    8888    selection = listboxwindow:getFirstSelectedItem()
    8989    if selection ~= nil then
Note: See TracChangeset for help on using the changeset viewer.