Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 28, 2010, 12:02:03 AM (14 years ago)
Author:
landauf
Message:
  • console commands "setMMSoundPath" and "printObjects" are now hidden.
  • added "unhide" command to show hidden commands
  • extended auto-completion capability by allowing multi-word ArgumentCompleter and more
  • added new auto-completion function that allows other commands as argument for a command (for example "delay [time] [command]")
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/consolecommands3/src/libraries/core/command/CommandExecutor.cc

    r7231 r7233  
    4242        .argumentCompleter(0, autocompletion::groupsandcommands())
    4343        .argumentCompleter(1, autocompletion::subcommands());
     44
     45    _SetConsoleCommand("unhide", &CommandExecutor::unhide)
     46        .argumentCompleter(0, autocompletion::hiddengroupsandcommands())
     47        .argumentCompleter(1, autocompletion::hiddensubcommands())
     48        .defaultValue(1, "")
     49        .defaultValue(2, "");
    4450
    4551    /* static */ CommandExecutor& CommandExecutor::getInstance()
     
    149155        }
    150156    }
     157
     158    /* static */ MultiType CommandExecutor::unhide(const std::string& group, const std::string& name, const std::string& arguments)
     159    {
     160        return CommandExecutor::queryMT(group + " " + name + " " + arguments);
     161    }
    151162}
Note: See TracChangeset for help on using the changeset viewer.