Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8803 for code


Ignore:
Timestamp:
Jul 30, 2011, 10:05:49 PM (13 years ago)
Author:
landauf
Message:

no \n needed after executed command in shell.
different color for return value of a command.
fixed width of text InGameConsole (at least on my system).

Location:
code/branches/output/src
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • code/branches/output/src/libraries/core/command/ArgumentCompletionFunctions.cc

    r8351 r8803  
    9090            ArgumentCompletionList _groupsandcommands(const std::string& fragment, bool bOnlyShowHidden)
    9191            {
    92                 // note: this function returns only arguments that begin with "fragment", which would't be necessary for the
     92                // note: this function returns only arguments that begin with "fragment", which wouldn't be necessary for the
    9393                //       auto-completion, but it's necessary to place the line-break "\n" between groups and commands
    9494                //       only if both groups AND commands are in the list.
  • code/branches/output/src/libraries/core/command/IOConsolePOSIX.cc

    r8799 r8803  
    382382    void IOConsole::executed()
    383383    {
    384         this->shell_->addOutput(this->promptString_ + this->shell_->getInput() + '\n', Shell::Command);
     384        this->shell_->addOutput(this->promptString_ + this->shell_->getInput(), Shell::Command);
    385385    }
    386386
  • code/branches/output/src/libraries/core/command/IOConsoleWindows.cc

    r8801 r8803  
    329329    void IOConsole::executed()
    330330    {
    331         this->shell_->addOutput(this->promptString_ + this->shell_->getInput() + '\n', Shell::Command);
     331        this->shell_->addOutput(this->promptString_ + this->shell_->getInput(), Shell::Command);
    332332    }
    333333
  • code/branches/output/src/libraries/core/command/Shell.cc

    r8801 r8803  
    395395        else if (result != "")
    396396        {
    397             this->addOutput(result, Command);
     397            this->addOutput(result, Result);
    398398        }
    399399
  • code/branches/output/src/libraries/core/command/Shell.h

    r8801 r8803  
    105105                Input,
    106106                Command,
     107                Result,
    107108                Hint
    108109            };
  • code/branches/output/src/orxonox/overlays/InGameConsole.cc

    r8801 r8803  
    5959{
    6060    const int LINES = 30;
    61     const float CHAR_WIDTH = 7.45f; // fix this please - determine the char-width dynamically
     61    const float CHAR_WIDTH = 8.0f; // fix this please - determine the char-width dynamically
    6262
    6363    SetConsoleCommand("InGameConsole", "openConsole", &InGameConsole::openConsole);
     
    339339    void InGameConsole::executed()
    340340    {
    341         this->shell_->addOutput(this->shell_->getInput() + '\n', Shell::Command);
     341        this->shell_->addOutput(this->shell_->getInput(), Shell::Command);
    342342    }
    343343
     
    430430
    431431        // now adjust the text lines...
    432         this->desiredTextWidth_ = static_cast<int>(this->windowW_ * this->relativeWidth) - 12;
     432        this->desiredTextWidth_ = static_cast<int>(this->windowW_ * this->relativeWidth) - 24;
    433433
    434434        if (LINES > 0)
Note: See TracChangeset for help on using the changeset viewer.