Changeset 9916 in orxonox.OLD for trunk/src/lib/shell/shell_command.cc
- Timestamp:
- Nov 3, 2006, 9:29:16 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/shell/shell_command.cc
r9899 r9916 19 19 #include "shell_command_class.h" 20 20 21 #include "shell_input.h" 22 #include "shell.h" 23 21 24 #include "compiler.h" 22 25 #include "helper_functions.h" … … 28 31 { 29 32 ObjectListDefinition(ShellCommand); 33 30 34 SHELL_COMMAND(debug, ShellCommandClass, help); 31 35 36 SHELL_COMMAND(help, ShellInput, help) 37 ->describe("retrieve some help about the input mode") 38 ->setAlias("help"); 39 40 SHELL_COMMAND(clear, Shell, clear) 41 ->describe("Clears the shell from unwanted lines (empties all buffers)") 42 ->setAlias("clear"); 43 SHELL_COMMAND(deactivate, Shell, deactivate) 44 ->describe("Deactivates the Shell. (moves it into background)") 45 ->setAlias("hide"); 46 SHELL_COMMAND(textsize, Shell, setTextSize) 47 ->describe("Sets the size of the Text size, linespacing") 48 ->defaultValues(15, 0); 49 SHELL_COMMAND(textcolor, Shell, setTextColor) 50 ->describe("Sets the Color of the Shells Text (red, green, blue, alpha)") 51 ->defaultValues(SHELL_DEFAULT_TEXT_COLOR); 52 SHELL_COMMAND(backgroundcolor, Shell, setBackgroundColor) 53 ->describe("Sets the Color of the Shells Background (red, green, blue, alpha)") 54 ->defaultValues(SHELL_DEFAULT_BACKGROUND_COLOR); 55 SHELL_COMMAND(backgroundimage, Shell, setBackgroundImage) 56 ->describe("sets the background image to load for the Shell") 57 ->completionPlugin(0, OrxShell::CompletorFileSystem()); 58 SHELL_COMMAND(font, Shell, setFont) 59 ->describe("Sets the font of the Shell") 60 ->defaultValues(SHELL_DEFAULT_FONT) 61 ->completionPlugin(0, OrxShell::CompletorFileSystem(".ttf", "fonts/")); 32 62 33 63 /** … … 39 69 ShellCommand::ShellCommand(const std::string& commandName, const std::string& className, Executor<const SubString>* executor) 40 70 { 71 PRINTF(4)("create shellcommand '%s' for class '%s'\n", commandName.c_str(), className.c_str()); 41 72 this->registerObject(this, ShellCommand::_objectList); 42 PRINTF(4)("create shellcommand '%s' for class '%s'\n", commandName.c_str(), className.c_str());43 73 this->setName(commandName); 44 74
Note: See TracChangeset
for help on using the changeset viewer.