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/MainMenu.lua

    r6206 r6403  
    1414-- events for MainMenu
    1515function P.QuickGameTestButton_clicked(e)
    16     orxonox.CommandExecutor:execute("startGame")
     16    orxonox.execute("startGame")
    1717end
    1818
     
    3434
    3535function P.ExitButton_clicked(e)
    36     orxonox.CommandExecutor:execute("exit")
     36    orxonox.execute("exit")
    3737end
    3838
Note: See TracChangeset for help on using the changeset viewer.