Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5960 for code/trunk


Ignore:
Timestamp:
Oct 16, 2009, 11:26:52 AM (15 years ago)
Author:
rgrieder
Message:

Fixed console overlay retraction inconsistency.

File:
1 edited

Legend:

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

    r5929 r5960  
    249249
    250250        // move overlay "above" the top edge of the screen
    251         // we take -1.2 because the border makes the panel bigger
    252         this->consoleOverlayContainer_->setTop(-1.2 * this->relativeHeight);
     251        // we take -1.3 because the border makes the panel bigger
     252        this->consoleOverlayContainer_->setTop(-1.3 * this->relativeHeight);
    253253
    254254        Shell::getInstance().addOutputLevel(true);
     
    374374                // scrolling up
    375375                // note: +0.01 for the same reason as when scrolling down
    376                 float deltaScroll = (1.2 * this->relativeHeight + 0.01 + oldTop) * time.getDeltaTime() * this->scrollSpeed_;
    377                 if (oldTop - deltaScroll <= -1.2 * this->relativeHeight)
     376                float deltaScroll = (1.3 * this->relativeHeight + 0.01 + oldTop) * time.getDeltaTime() * this->scrollSpeed_;
     377                if (oldTop - deltaScroll <= -1.3 * this->relativeHeight)
    378378                {
    379379                    // window has completely scrolled up
    380                     this->consoleOverlayContainer_->setTop(-1.2 * this->relativeHeight);
     380                    this->consoleOverlayContainer_->setTop(-1.3 * this->relativeHeight);
    381381                    this->scroll_ = 0;
    382382                    this->consoleOverlay_->hide();
Note: See TracChangeset for help on using the changeset viewer.