Changeset 1632 for code/trunk/src/orxonox/overlays/OverlayText.cc
- Timestamp:
- Jun 29, 2008, 5:37:26 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/overlays/OverlayText.cc
r1628 r1632 63 63 this->text_ = static_cast<Ogre::TextAreaOverlayElement*>(Ogre::OverlayManager::getSingleton() 64 64 .createOverlayElement("TextArea", "OverlayText_text_" + getUniqueNumberStr())); 65 this->text_->setCharHeight(1.0); 65 66 66 67 this->background_->addChild(this->text_); … … 91 92 return; 92 93 93 this->overlay_->setScale(size_.y * sizeCorrection_.y, size_.y * sizeCorrection_.y); 94 if (this->rotState_ == Horizontal) 95 this->overlay_->setScale(size_.y * sizeCorrection_.y, size_.y * sizeCorrection_.y); 96 else if (this->rotState_ == Vertical) 97 this->overlay_->setScale(size_.y / (sizeCorrection_.y * sizeCorrection_.y), size_.y * sizeCorrection_.y); 98 else 99 this->overlay_->setScale(size_.y, size_.y); 100 94 101 positionChanged(); 95 102 }
Note: See TracChangeset
for help on using the changeset viewer.