Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 29, 2008, 1:11:08 AM (16 years ago)
Author:
rgrieder
Message:
  • added almost invisible cursor that does nothing
Location:
code/branches/network/src/orxonox/console
Files:
2 edited

Legend:

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

    r1468 r1469  
    242242        this->consoleOverlayNoise_->setMaterialName("ConsoleNoise");
    243243
     244        // create cursor
     245        this->consoleOverlayCursor_ = static_cast<PanelOverlayElement*>(this->om_->createOverlayElement("Panel", "InGameConsoleCursor"));
     246        this->consoleOverlayCursor_->setMetricsMode(Ogre::GMM_PIXELS);
     247        this->consoleOverlayCursor_->setPosition(40,217);
     248        this->consoleOverlayCursor_->setDimensions(2, 20);
     249        this->consoleOverlayCursor_->setMaterialName("ConsoleNoise");
     250
    244251        this->consoleOverlay_ = this->om_->create("InGameConsoleConsole");
    245252        this->consoleOverlay_->add2D(this->consoleOverlayContainer_);
    246253        this->consoleOverlayContainer_->addChild(this->consoleOverlayBorder_);
     254        this->consoleOverlayContainer_->addChild(this->consoleOverlayCursor_);
    247255        //comment following line to disable noise
    248256        this->consoleOverlayContainer_->addChild(this->consoleOverlayNoise_);
  • code/branches/network/src/orxonox/console/InGameConsole.h

    r1468 r1469  
    9494            Ogre::OverlayContainer* consoleOverlayContainer_;
    9595            Ogre::PanelOverlayElement* consoleOverlayNoise_;
     96            Ogre::PanelOverlayElement* consoleOverlayCursor_;
    9697            Ogre::BorderPanelOverlayElement* consoleOverlayBorder_;
    9798            Ogre::TextAreaOverlayElement** consoleOverlayTextAreas_;
Note: See TracChangeset for help on using the changeset viewer.