- Timestamp:
- Jun 20, 2007, 4:09:31 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/presentation/src/util/hud.cc
r10721 r10736 453 453 this->leftRect->setWidgetSize(float(overlayWidth), float(this->resY)); 454 454 this->leftRect->setAbsCoor2D(0,0); 455 /*this->leftRect->setBackgroundTexture(Texture());455 this->leftRect->setBackgroundTexture(Texture()); 456 456 this->leftRect->setBackgroundColor(Color(0,0,0.7,0.2)); 457 457 this->leftRect->setForegroundTexture(Texture()); 458 this->leftRect->setForegroundColor(Color(0,0,0,0)); */458 this->leftRect->setForegroundColor(Color(0,0,0,0)); 459 459 460 460 this->rightRect->setWidgetSize(float(overlayWidth), float(this->resY)); 461 461 this->rightRect->setAbsCoor2D(this->resX - overlayWidth,0); 462 /*this->rightRect->setBackgroundTexture(Texture());462 this->rightRect->setBackgroundTexture(Texture()); 463 463 this->rightRect->setBackgroundColor(Color(0,0,0.7,0.2)); 464 464 this->rightRect->setForegroundTexture(Texture()); 465 this->rightRect->setForegroundColor(Color(0,0,0,0)); */465 this->rightRect->setForegroundColor(Color(0,0,0,0)); 466 466 } 467 467 else 468 468 { 469 this->bottomRect->setParent2D(this); 470 this->bottomRect->setWidgetSize(float(this->resX), float(overlayWidth)); 471 this->bottomRect->setAbsCoor2D(0, this->resY - overlayWidth); 472 473 this->topRect->setParent2D(this); 474 this->topRect->setWidgetSize(float(this->resX), float(overlayWidth)); 475 this->topRect->setAbsCoor2D(0, 0); 476 477 this->middleRect->setParent2D(this); 478 //this->middleRect->setWidgetSize(float(this->resY)/2, float(this->resY)/2); 479 this->middleRect->setAbsCoor2D(/*float(this->resX - this->resY/2)/2, float(this->resY)/4*/float(this->resX/2), float(this->resY/2)); 480 481 this->bottomHit->setRelCoor2D(0, this->resY/4); 482 this->topHit->setRelCoor2D(0, -this->resY/4); 483 this->leftHit->setRelCoor2D(-this->resX/4, 0); 484 this->rightHit->setRelCoor2D(this->resX/4, 0); 485 486 this->middleRect->show(); 469 this->bottomRect->setParent2D(this); 470 this->bottomRect->setWidgetSize(float(this->resX), float(overlayWidth)); 471 this->bottomRect->setAbsCoor2D(0, this->resY - overlayWidth); 472 473 this->topRect->setParent2D(this); 474 this->topRect->setWidgetSize(float(this->resX), float(overlayWidth)); 475 this->topRect->setAbsCoor2D(0, 0); 476 477 this->middleRect->setParent2D(this); 478 //this->middleRect->setWidgetSize(float(this->resY)/2, float(this->resY)/2); 479 this->middleRect->setAbsCoor2D(/*float(this->resX - this->resY/2)/2, float(this->resY)/4*/float(this->resX/2), float(this->resY/2)); 480 481 this->bottomHit->setRelCoor2D(0, this->resY/4); 482 this->bottomHit->setWidgetSize(this->resX/10, this->resX/2); 483 this->bottomHit->show(); 484 this->topHit->setRelCoor2D(0, -this->resY/4); 485 this->topHit->setWidgetSize(this->resX/10, this->resX/2); 486 this->topHit->show(); 487 this->leftHit->setRelCoor2D(-this->resX/4, 0); 488 this->leftHit->setWidgetSize(this->resX/10, this->resX/2); 489 this->leftHit->show(); 490 this->rightHit->setRelCoor2D(this->resX/4, 0); 491 this->rightHit->setWidgetSize(this->resX/10, this->resX/2); 487 492 this->rightHit->show(); 488 } 489 490 if (this->overlayActive == true) 493 494 //this->middleRect->show(); 495 496 497 } 498 499 if (this->overlayActive) 491 500 { 492 501 this->rightRect->show();
Note: See TracChangeset
for help on using the changeset viewer.