Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6536 for code/trunk/data


Ignore:
Timestamp:
Mar 16, 2010, 11:22:36 AM (14 years ago)
Author:
rgrieder
Message:

Merged revisions 6430-6440 from the gamestate branch to the trunk.
This adds keybindings merging functionality.

(from log of r6437)
When running development builds, the keybinder will merge the local file and the one from the data folder.
Catch: if you want to remove a binding, you'll have to write "NoBinding" (not case sensitive) to override the default command

The keybind command already does that for you though.

Location:
code/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk

  • code/trunk/data/lua/LuaStateInit.lua

    r6417 r6536  
    5858  orxonox.CommandExecutor:execute(command)
    5959end
     60
     61-- Convenience function for config values
     62orxonox.getConfig = function(section, entry)
     63  return orxonox.SettingsConfigFile:getInstance():getConfig(section, entry)
     64end
     65orxonox.config = function(section, entry, value)
     66  return orxonox.SettingsConfigFile:getInstance():config(section, entry, value)
     67end
     68orxonox.tconfig = function(section, entry, value)
     69  return orxonox.SettingsConfigFile:getInstance():tconfig(section, entry, value)
     70end
Note: See TracChangeset for help on using the changeset viewer.