Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 19, 2008, 9:50:36 PM (16 years ago)
Author:
landauf
Message:

added chat overlay

Location:
code/branches/objecthierarchy/src/orxonox/overlays/console
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/objecthierarchy/src/orxonox/overlays/console/InGameConsole.cc

    r1879 r1953  
    613613        @return The converted string
    614614    */
    615     /*static*/ Ogre::UTFString InGameConsole::convert2UTF(std::string s)
     615    /*static*/ Ogre::UTFString InGameConsole::convert2UTF(const std::string& text)
    616616    {
    617617        Ogre::UTFString utf;
    618618        Ogre::UTFString::code_point cp;
    619         for (unsigned int i = 0; i < s.size(); ++i)
    620         {
    621           cp = s[i];
     619        for (unsigned int i = 0; i < text.size(); ++i)
     620        {
     621          cp = text[i];
    622622          cp &= 0xFF;
    623623          utf.append(1, cp);
  • code/branches/objecthierarchy/src/orxonox/overlays/console/InGameConsole.h

    r1879 r1953  
    6161        static void closeConsole();
    6262
     63        static Ogre::UTFString convert2UTF(const std::string& text);
     64
    6365    private: // functions
    6466        InGameConsole(const InGameConsole& other);
     
    8385        // config value related
    8486        void bHidesAllInputChanged();
    85 
    86         static Ogre::UTFString convert2UTF(std::string s);
    8787
    8888    private: // variables
Note: See TracChangeset for help on using the changeset viewer.