Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 22, 2009, 11:20:19 PM (14 years ago)
Author:
rgrieder
Message:

Added lua convenience function for console commmands: orxonox.execute(cmd)
Also replaced the config commands with the actual orxonox.config function.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2/data/gui/scripts/InitialiseGUI.lua

    r6387 r6403  
    175175function keyESC()
    176176    if nrOfActiveSheets == 1 and activeSheets[1] == "MainMenu" then
    177         orxonox.CommandExecutor:execute("exit")
     177        orxonox.execute("exit")
    178178    elseif nrOfActiveSheets > 0 then
    179         orxonox.CommandExecutor:execute("hideGUI "..activeSheets[nrOfActiveSheets])
     179        orxonox.execute("hideGUI "..activeSheets[nrOfActiveSheets])
    180180    else
    181181        showGUI("InGameMenu")
Note: See TracChangeset for help on using the changeset viewer.