Changeset 7607 for code/branches/menu/data/gui/scripts/SheetManager.lua
- Timestamp:
- Nov 2, 2010, 11:30:44 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/menu/data/gui/scripts/SheetManager.lua
r7403 r7607 5 5 local activeMenuSheets = {size = 0, topSheetTuple = nil} 6 6 local menuSheetsRoot = guiMgr:getMenuRootWindow() 7 orxonox.GUIManager:subscribeEventHelper(menuSheetsRoot, "KeyDown", "keyPressed") 7 8 8 9 ----------------------- … … 120 121 121 122 menuSheet:show() 123 menuSheetsRoot:activate() 122 124 123 125 return menuSheet … … 213 215 end 214 216 217 function keyPressed(e) 218 local we = tolua.cast(e, "CEGUI::KeyEventArgs") 219 local sheet = activeMenuSheets[activeMenuSheets.size] 220 code = tostring(we.scancode) 221 sheet.sheet:onKeyPressed() 222 end 223 215 224 function setBackgroundImage(imageSet, imageName) 216 225 guiMgr:setBackgroundImage(imageSet, imageName)
Note: See TracChangeset
for help on using the changeset viewer.