Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5261


Ignore:
Timestamp:
Nov 2, 2008, 12:16:09 AM (16 years ago)
Author:
rgrieder
Message:

Removed ugly console open hack in loadGuI.lua

File:
1 edited

Legend:

Unmodified
Added
Removed
  • data/media/gui/scripts/loadGUI.lua

    r5236 r5261  
    4444local background = winMgr:createWindow("TaharezLook/StaticImage", "orxonox/Background")
    4545background:setProperty("Image", "set: GUI/Background image:full_image")
    46 background:subscribeEvent("CharacterKey", "key_pressed")
    4746
    4847rootSheet:addChildWindow(quit)
     
    7978end
    8079
    81 function key_pressed(e)
    82   keyevent = tolua.cast(e, "CEGUI::KeyEventArgs")
    83   if keyevent.codepoint == 167 then
    84     orxonox.CommandExecutor:execute("openConsole")
    85   end
    86 end
    87 
    8880showBackground = false
    8981
Note: See TracChangeset for help on using the changeset viewer.