Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 16, 2016, 10:10:43 PM (9 years ago)
Author:
bknecht
Message:

initial commit to get orxonox to find and compile and start with cegui0.8. doesn't work yet

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/cegui0.8/data/gui/scripts/SheetManager.lua

    r11052 r11118  
    11-- SheetManager.lua
    22
    3 local cursor = CEGUI.MouseCursor:getSingleton()
     3local cursor = CEGUI.System:getSingleton():getDefaultGUIContext():getMouseCursor()
     4--local cursor = CEGUI.MouseCursor:getSingleton()
    45local loadedSheets = {}
    56local activeMenuSheets = {size = 0, topSheetTuple = nil}
     
    107108
    108109    -- Add sheet to the root window
    109     menuSheetsRoot:addChildWindow(menuSheet.window)
     110    menuSheetsRoot:addChild(menuSheet.window)
    110111
    111112    -- If sheet is the MainMenu
     
    177178
    178179    -- Remove sheet with its tuple from the table
    179     menuSheetsRoot:removeChildWindow(sheetTuple.sheet.window)
     180    menuSheetsRoot:removeChild(sheetTuple.sheet.window)
    180181    table.remove(activeMenuSheets, table.findIndex(activeMenuSheets, sheetTuple))
    181182    activeMenuSheets[name] = nil
Note: See TracChangeset for help on using the changeset viewer.