Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10092 in orxonox.OLD for branches/playability/src/util


Ignore:
Timestamp:
Dec 18, 2006, 8:39:38 PM (18 years ago)
Author:
muellmic
Message:

work of last week: radar set-up, Gui- Widget class draws itself according to Dir of 2d- element.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/playability/src/util/hud.cc

    r10042 r10092  
    105105  {
    106106    this->energyWidget->show();
    107     this->energyWidget->setBackgroundTexture( "hud_energy_background.png");
     107    //this->energyWidget->setBackgroundTexture( "hud_energy_background.png");
     108    this->energyWidget->shiftDir2D(270);
    108109    /*    this->energyWidget->frontMaterial().setDiffuseMap("hud_energy_bar.png");
    109110        this->energyWidget->frontMaterial().setBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);*/
     
    219220    PRINTF(4)("UPDATING RADAR\n");
    220221    this->_radar->setCenterNode(State::getPlayer()->getPlayable());
    221     this->_radar->addEntityList(&State::getObjectManager()->getEntityList((OM_LIST)(State::getPlayer()->getPlayable()->getOMListNumber()+1)), Color(.4, .4, 1.0));
    222     this->_radar->addEntityList(&State::getObjectManager()->getEntityList(OM_GROUP_02), Color(1.0, .2, .2));
     222    //this->_radar->addEntityList(&State::getObjectManager()->getEntityList((OM_LIST)(State::getPlayer()->getPlayable()->getOMListNumber()+1)), Color(.4, .4, 1.0));
     223    this->_radar->addEntityList(&State::getObjectManager()->getEntityList(OM_GROUP_00), Color(1, 0, 0));
     224    this->_radar->addEntityList(&State::getObjectManager()->getEntityList(OM_GROUP_01), Color(0, 0, 1));
    223225    this->_radar->setAbsCoor2D(0.8 * this->resX, 0.01 * this->resY);
    224226    this->_radar->setWidgetSize(0.2 * this->resX, 0.2 * this->resY);
     
    230232  if (this->energyWidget != NULL)
    231233  {
    232     this->energyWidget->setAbsCoor2D(0.0 * this->resX, 0.85 * this->resY);
     234    this->energyWidget->setAbsCoor2D(0.2 * this->resX, 0.85 * this->resY);
    233235    this->energyWidget->setWidgetSize(.25 * this->resX, 0.1 * this->resY);
    234236  }
Note: See TracChangeset for help on using the changeset viewer.