Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 24, 2018, 3:09:05 AM (6 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/DockingDialog.lua

    r11795 r11806  
    99     --button are arranged in a 1x2 matrix
    1010    P:setButton(1, 1, {
    11             ["button"] = winMgr:getWindow("orxonox/Docking/DockButton"),
     11            ["button"] = P.window:getChild("DockButton"),
    1212            ["callback"]  = P.dockButton_clicked
    1313    })
    1414
    1515    P:setButton(1, 2, {
    16             ["button"] = winMgr:getWindow("orxonox/Docking/CancelButton"),
     16            ["button"] = P.window:getChild("CancelButton"),
    1717            ["callback"]  = P.cancelButton_clicked
    1818    })
     
    3737    end
    3838
    39     local listbox = CEGUI.toListbox(winMgr:getWindow("orxonox/Docking/Docks"))
     39    local listbox = CEGUI.toListbox(P.window:getChild("Title/Docks"))
    4040    listbox:resetList()
    4141
     
    5151
    5252function P.dockButton_clicked(e)
    53     local listbox = CEGUI.toListbox(winMgr:getWindow("orxonox/Docking/Docks"))
     53    local listbox = CEGUI.toListbox(P.window:getChild("Title/Docks"))
    5454    local choice = listbox:getFirstSelectedItem()
    5555    if choice ~= nil then
Note: See TracChangeset for help on using the changeset viewer.