Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1338 for code/branches


Ignore:
Timestamp:
May 20, 2008, 10:56:35 PM (17 years ago)
Author:
landauf
Message:

renamed the overlay-elements in InGameConsole to more specific names

File:
1 edited

Legend:

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

    r1334 r1338  
    192192
    193193        // create a container
    194         this->consoleOverlayContainer_ = static_cast<OverlayContainer*>(this->om_->createOverlayElement("Panel", "container"));
     194        this->consoleOverlayContainer_ = static_cast<OverlayContainer*>(this->om_->createOverlayElement("Panel", "InGameConsoleContainer"));
    195195        this->consoleOverlayContainer_->setMetricsMode(Ogre::GMM_RELATIVE);
    196196        this->consoleOverlayContainer_->setPosition((1 - InGameConsole::REL_WIDTH) / 2, 0);
     
    198198
    199199        // create BorderPanel
    200         this->consoleOverlayBorder_ = static_cast<BorderPanelOverlayElement*>(this->om_->createOverlayElement("BorderPanel", "borderPanel"));
     200        this->consoleOverlayBorder_ = static_cast<BorderPanelOverlayElement*>(this->om_->createOverlayElement("BorderPanel", "InGameConsoleBorderPanel"));
    201201        this->consoleOverlayBorder_->setMetricsMode(Ogre::GMM_PIXELS);
    202202        this->consoleOverlayBorder_->setMaterialName("ConsoleCenter");
     
    214214        for (int i = 0; i < LINES; i++)
    215215        {
    216             this->consoleOverlayTextAreas_[i] = static_cast<TextAreaOverlayElement*>(this->om_->createOverlayElement("TextArea", "textArea" + Ogre::StringConverter::toString(i)));
     216            this->consoleOverlayTextAreas_[i] = static_cast<TextAreaOverlayElement*>(this->om_->createOverlayElement("TextArea", "InGameConsoleTextArea" + Ogre::StringConverter::toString(i)));
    217217            this->consoleOverlayTextAreas_[i]->setMetricsMode(Ogre::GMM_PIXELS);
    218218            this->consoleOverlayTextAreas_[i]->setFontName("Console");
     
    224224
    225225        // create noise
    226         this->consoleOverlayNoise_ = static_cast<PanelOverlayElement*>(this->om_->createOverlayElement("Panel", "noise"));
     226        this->consoleOverlayNoise_ = static_cast<PanelOverlayElement*>(this->om_->createOverlayElement("Panel", "InGameConsoleNoise"));
    227227        this->consoleOverlayNoise_->setMetricsMode(Ogre::GMM_PIXELS);
    228228        this->consoleOverlayNoise_->setPosition(5,0);
    229229        this->consoleOverlayNoise_->setMaterialName("ConsoleNoise");
    230230
    231         this->consoleOverlay_ = this->om_->create("Console");
     231        this->consoleOverlay_ = this->om_->create("InGameConsoleConsole");
    232232        this->consoleOverlay_->add2D(this->consoleOverlayContainer_);
    233233        this->consoleOverlayContainer_->addChild(this->consoleOverlayBorder_);
     
    245245        this->consoleOverlay_->show();
    246246
    247         COUT(3) << "Info: InGameConsole initialized" << std::endl;
     247        COUT(4) << "Info: InGameConsole initialized" << std::endl;
    248248    }
    249249
     
    395395            else if (level == 3)
    396396            {
    397                 this->consoleOverlayTextAreas_[index]->setColourTop   (ColourValue(0.25, 0.25, 0.75, 1.00));
     397                this->consoleOverlayTextAreas_[index]->setColourTop   (ColourValue(0.50, 0.50, 0.95, 1.00));
    398398                this->consoleOverlayTextAreas_[index]->setColourBottom(ColourValue(0.80, 0.80, 1.00, 1.00));
    399399            }
Note: See TracChangeset for help on using the changeset viewer.