Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1578


Ignore:
Timestamp:
Jun 9, 2008, 6:29:19 PM (17 years ago)
Author:
rgrieder
Message:

gcc and msvc don't always see eye to eye, fortunately…
Also created new config value for cursor symbol.

Location:
code/trunk/src/orxonox/console
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/console/InGameConsole.cc

    r1577 r1578  
    104104        SetConfigValue(scrollSpeed_, 3.0f);
    105105        SetConfigValue(noiseSize_, 1.0f);
     106        SetConfigValue(cursorSymbol_, '|');
    106107    }
    107108
     
    152153
    153154        // create cursor (also a text area overlay element)
    154         this->consoleOverlayCursor_ = static_cast<TextAreaOverlayElement*>(ovMan->createOverlayElement("TextArea", "InGameConsoleTextArea" + Ogre::StringConverter::toString(i)));
     155        this->consoleOverlayCursor_ = static_cast<TextAreaOverlayElement*>(ovMan->createOverlayElement("TextArea", "InGameConsoleCursor"));
    155156        this->consoleOverlayCursor_->setMetricsMode(Ogre::GMM_PIXELS);
    156157        this->consoleOverlayCursor_->setFontName("Monofur");
     
    158159        this->consoleOverlayCursor_->setParameter("colour_top", "0.21 0.69 0.21");
    159160        this->consoleOverlayCursor_->setLeft(7);
    160         this->consoleOverlayCursor_->setCaption("|");
     161        this->consoleOverlayCursor_->setCaption(std::string(this->cursorSymbol_, 1));
    161162        this->consoleOverlayContainer_->addChild(this->consoleOverlayCursor_);
    162163
  • code/trunk/src/orxonox/console/InGameConsole.h

    r1577 r1578  
    8989            float cursor_;
    9090            unsigned int inputWindowStart_;
    91             char cursorSymbol_;
    9291            bool bShowCursor_;
    9392            std::string displayedText_;
     
    105104            float scrollSpeed_;
    106105            float noiseSize_;
     106            char cursorSymbol_;
    107107    };
    108108}
Note: See TracChangeset for help on using the changeset viewer.