Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.