Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 12, 2008, 4:14:21 PM (16 years ago)
Author:
landauf
Message:

added more SetConsoleCommand macros like SetConsoleCommandAlias to use a different name than the real functionname for the command. this provides more comfort as it reduces the need of creating your own ConsoleCommand-object via *Generic macros.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core3/src/orxonox/hud/HUD.cc

    r1586 r1594  
    4949namespace orxonox
    5050{
    51     SetConsoleCommandShortcut(HUD, cycleNavigationFocus).setAccessLevel(AccessLevel::User);
    52     SetConsoleCommandShortcut(HUD, releaseNavigationFocus).setAccessLevel(AccessLevel::User);
    53     SetConsoleCommandShortcut(HUD, toggleFPS).setAccessLevel(AccessLevel::User);
    54     SetConsoleCommandShortcut(HUD, toggleRenderTime).setAccessLevel(AccessLevel::User);
     51    SetConsoleCommandShortcut(HUD, cycleNavigationFocus).accessLevel(AccessLevel::User);
     52    SetConsoleCommandShortcut(HUD, releaseNavigationFocus).accessLevel(AccessLevel::User);
     53    SetConsoleCommandShortcut(HUD, toggleFPS).accessLevel(AccessLevel::User);
     54    SetConsoleCommandShortcut(HUD, toggleRenderTime).accessLevel(AccessLevel::User);
    5555
    5656    using namespace Ogre;
Note: See TracChangeset for help on using the changeset viewer.