Changeset 6502 for code/trunk/src/modules/overlays/stats/Stats.cc
- Timestamp:
- Mar 11, 2010, 11:34:20 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/modules/overlays/stats/Stats.cc
r5781 r6502 59 59 this->statsOverlayBorder_ = static_cast<Ogre::BorderPanelOverlayElement*>(ovMan->createOverlayElement("BorderPanel", "StatsBorderPanel" + getUniqueNumberString())); 60 60 //this->statsOverlayBorder_->setMaterialName("StatsCenter"); 61 this->statsOverlayBorder_->setBorderSize(0.003 , 16 * 0.003);61 this->statsOverlayBorder_->setBorderSize(0.003f, 16.0f * 0.003f); 62 62 this->statsOverlayBorder_->setBorderMaterialName("StatsBorder"); 63 this->statsOverlayBorder_->setTopBorderUV(0.49 , 0.0, 0.51, 0.5);64 this->statsOverlayBorder_->setTopLeftBorderUV(0.0 , 0.0, 0.5, 0.5);65 this->statsOverlayBorder_->setTopRightBorderUV(0.5 , 0.0, 1.0, 0.5);66 this->statsOverlayBorder_->setLeftBorderUV(0.0 , 0.49, 0.5, 0.51);67 this->statsOverlayBorder_->setRightBorderUV(0.5 , 0.49, 1.0, 0.5);68 this->statsOverlayBorder_->setBottomBorderUV(0.49 , 0.5, 0.51, 1.0);69 this->statsOverlayBorder_->setBottomLeftBorderUV(0.0 , 0.5, 0.5, 1.0);70 this->statsOverlayBorder_->setBottomRightBorderUV(0.5 , 0.5, 1.0, 1.0);63 this->statsOverlayBorder_->setTopBorderUV(0.49f, 0.0f, 0.51f, 0.5f); 64 this->statsOverlayBorder_->setTopLeftBorderUV(0.0f, 0.0f, 0.5f, 0.5f); 65 this->statsOverlayBorder_->setTopRightBorderUV(0.5f, 0.0f, 1.0f, 0.5f); 66 this->statsOverlayBorder_->setLeftBorderUV(0.0f, 0.49f, 0.5f, 0.51f); 67 this->statsOverlayBorder_->setRightBorderUV(0.5f, 0.49f, 1.0f, 0.5f); 68 this->statsOverlayBorder_->setBottomBorderUV(0.49f, 0.5f, 0.51f, 1.0f); 69 this->statsOverlayBorder_->setBottomLeftBorderUV(0.0f, 0.5f, 0.5f, 1.0f); 70 this->statsOverlayBorder_->setBottomRightBorderUV(0.5f, 0.5f, 1.0f, 1.0f); 71 71 72 72 background_->addChild(statsOverlayBorder_);
Note: See TracChangeset
for help on using the changeset viewer.