Changeset 5960
- Timestamp:
- Oct 16, 2009, 11:26:52 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/overlays/InGameConsole.cc
r5929 r5960 249 249 250 250 // move overlay "above" the top edge of the screen 251 // we take -1. 2because the border makes the panel bigger252 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); 253 253 254 254 Shell::getInstance().addOutputLevel(true); … … 374 374 // scrolling up 375 375 // 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) 378 378 { 379 379 // window has completely scrolled up 380 this->consoleOverlayContainer_->setTop(-1. 2* this->relativeHeight);380 this->consoleOverlayContainer_->setTop(-1.3 * this->relativeHeight); 381 381 this->scroll_ = 0; 382 382 this->consoleOverlay_->hide();
Note: See TracChangeset
for help on using the changeset viewer.