Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 22, 2008, 12:06:55 AM (17 years ago)
Author:
rgrieder
Message:
  • added blankString to String so you can return ""; even if it's a const std::string&
  • fixed several bugs with aspect correct and margin alignment
  • added console commands for OrxonoxOverlays and OverlayGroups for rotate, scale and scroll (you can access the by name (from name=.. in xml file), e.g. "OrxonoxOverlay rotateOverlay SpeedBar 90)
  • converted everything in overlays/ to 4 spaces/tab ;)
  • removed all using namespace Ogre;
  • added background_ Panel to OrxonoxOverlay, since most of the derived classes can use that
  • should work now, but I'll have to test on a tardis box first
File:
1 edited

Legend:

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

    r1601 r1615  
    5454    SetConsoleCommand(InGameConsole, closeConsole, true);
    5555
    56     using namespace Ogre;
    57 
    5856    /**
    5957        @brief Constructor: Creates and initializes the InGameConsole.
     
    119117
    120118        // create a container
    121         this->consoleOverlayContainer_ = static_cast<OverlayContainer*>(ovMan->createOverlayElement("Panel", "InGameConsoleContainer"));
     119        this->consoleOverlayContainer_ = static_cast<Ogre::OverlayContainer*>(ovMan->createOverlayElement("Panel", "InGameConsoleContainer"));
    122120        this->consoleOverlayContainer_->setMetricsMode(Ogre::GMM_RELATIVE);
    123121        this->consoleOverlayContainer_->setPosition((1 - this->relativeWidth) / 2, 0);
     
    126124
    127125        // create BorderPanel
    128         this->consoleOverlayBorder_ = static_cast<BorderPanelOverlayElement*>(ovMan->createOverlayElement("BorderPanel", "InGameConsoleBorderPanel"));
     126        this->consoleOverlayBorder_ = static_cast<Ogre::BorderPanelOverlayElement*>(ovMan->createOverlayElement("BorderPanel", "InGameConsoleBorderPanel"));
    129127        this->consoleOverlayBorder_->setMetricsMode(Ogre::GMM_PIXELS);
    130128        this->consoleOverlayBorder_->setMaterialName("ConsoleCenter");
     
    139137
    140138        // create the text lines
    141         this->consoleOverlayTextAreas_ = new TextAreaOverlayElement*[LINES];
     139        this->consoleOverlayTextAreas_ = new Ogre::TextAreaOverlayElement*[LINES];
    142140        for (int i = 0; i < LINES; i++)
    143141        {
    144             this->consoleOverlayTextAreas_[i] = static_cast<TextAreaOverlayElement*>(ovMan->createOverlayElement("TextArea", "InGameConsoleTextArea" + Ogre::StringConverter::toString(i)));
     142            this->consoleOverlayTextAreas_[i] = static_cast<Ogre::TextAreaOverlayElement*>(ovMan->createOverlayElement("TextArea", "InGameConsoleTextArea" + Ogre::StringConverter::toString(i)));
    145143            this->consoleOverlayTextAreas_[i]->setMetricsMode(Ogre::GMM_PIXELS);
    146144            this->consoleOverlayTextAreas_[i]->setFontName("Monofur");
     
    153151
    154152        // create cursor (also a text area overlay element)
    155         this->consoleOverlayCursor_ = static_cast<TextAreaOverlayElement*>(ovMan->createOverlayElement("TextArea", "InGameConsoleCursor"));
     153        this->consoleOverlayCursor_ = static_cast<Ogre::TextAreaOverlayElement*>(ovMan->createOverlayElement("TextArea", "InGameConsoleCursor"));
    156154        this->consoleOverlayCursor_->setMetricsMode(Ogre::GMM_PIXELS);
    157155        this->consoleOverlayCursor_->setFontName("Monofur");
     
    163161
    164162        // create noise
    165         this->consoleOverlayNoise_ = static_cast<PanelOverlayElement*>(ovMan->createOverlayElement("Panel", "InGameConsoleNoise"));
     163        this->consoleOverlayNoise_ = static_cast<Ogre::PanelOverlayElement*>(ovMan->createOverlayElement("Panel", "InGameConsoleNoise"));
    166164        this->consoleOverlayNoise_->setMetricsMode(Ogre::GMM_PIXELS);
    167165        this->consoleOverlayNoise_->setPosition(5,0);
Note: See TracChangeset for help on using the changeset viewer.