Changeset 5261 for data/media/gui/scripts
- Timestamp:
- Nov 2, 2008, 12:16:09 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
data/media/gui/scripts/loadGUI.lua
r5236 r5261 44 44 local background = winMgr:createWindow("TaharezLook/StaticImage", "orxonox/Background") 45 45 background:setProperty("Image", "set: GUI/Background image:full_image") 46 background:subscribeEvent("CharacterKey", "key_pressed")47 46 48 47 rootSheet:addChildWindow(quit) … … 79 78 end 80 79 81 function key_pressed(e)82 keyevent = tolua.cast(e, "CEGUI::KeyEventArgs")83 if keyevent.codepoint == 167 then84 orxonox.CommandExecutor:execute("openConsole")85 end86 end87 88 80 showBackground = false 89 81
Note: See TracChangeset
for help on using the changeset viewer.