Changeset 10233 in orxonox.OLD for branches/playability/src/util/hud.cc
- Timestamp:
- Jan 11, 2007, 11:42:43 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability/src/util/hud.cc
r10230 r10233 57 57 this->resY = 1; 58 58 59 this->travelZoneWidth = 0.7; 59 this->overlayPercentage = 5; 60 this->overlayActive = false; 61 this->rightRect = NULL; 62 this->leftRect = NULL; 60 63 61 64 this->inputLine = new OrxGui::GLGuiInputLine(); … … 83 86 84 87 delete this->_radar; 88 delete this->rightRect; 89 delete this->leftRect; 85 90 //if (this->shipValuesBox != NULL) 86 91 //delete this->shipValuesBox; … … 286 291 this->notifier->setWidgetSize(0.25 * this->resX, 0.6 * this->resY); 287 292 293 if (this->overlayActive == true) 294 { 295 if (this->rightRect == NULL) 296 this->rightRect = new OrxGui::GLGuiWidget(); 297 //if (this->leftRect == NULL) 298 //this->leftRect = new OrxGui::GLGuiWidget(); 299 300 int overlayWidth = this->resX * (100-overlayPercentage)/(200); 301 this->rightRect->hide(); 302 /* 303 this->leftRect->setWidgetSize(float(overlayWidth), float(this->resY)); 304 this->leftRect->setAbsCoor2D(0,0); 305 this->leftRect->setBackgroundTexture(Texture()); 306 this->leftRect->setBackgroundColor(Color(0,0,0.7,0.2)); 307 this->leftRect->show(); 308 */ 309 310 311 this->rightRect->setParent2D(this); 312 this->rightRect->setWidgetSize(float(overlayWidth), float(this->resY)); 313 this->rightRect->setAbsCoor2D(this->resX - overlayWidth,this->resY); 314 this->rightRect->setBackgroundTexture(Texture()); 315 this->rightRect->setBackgroundColor(Color(0,0,0.7,0.2)); 316 //this->rightRect->setForegroundTexture(Texture()); 317 //this->rightRect->setForegroundColor(Color(1,1,1,1)); 318 this->rightRect->show(); 319 320 } 321 288 322 289 323 if (State::getPlayer() && State::getPlayer()->getPlayable() && State::getObjectManager()) … … 349 383 } 350 384 351 //if (this->rightRect == NULL)352 353 385 } 354 386
Note: See TracChangeset
for help on using the changeset viewer.