Howto:Add new fgcommands to FlightGear: Difference between revisions

Jump to navigation Jump to search
m
Line 174: Line 174:
  * Built-in command: print hello world (name) to the console
  * Built-in command: print hello world (name) to the console
  *
  *
  * name (optional): the file name to load the panel from (relative
  * name (optional): the file name to load the panel from
  *  
  *  
  */
  */
Line 182: Line 182:
   string name = "anonymous"; // default
   string name = "anonymous"; // default
   if (!arg->hasValue("name")) {
   if (!arg->hasValue("name")) {
     guiErrorMessage("Cannot say hello with out name!: ");
     guiErrorMessage("Cannot say hello without name!: ");
     return false;
     return false;
   }
   }

Navigation menu