Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8983 in orxonox.OLD for trunk/src/world_entities/elements


Ignore:
Timestamp:
Jul 1, 2006, 4:12:44 PM (18 years ago)
Author:
bensch
Message:

blend-stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/elements/glgui_energywidget.cc

    r8981 r8983  
    2626  {
    2727    //   this->setClassID(CL_PROTO_ID, "GLGuiEnergyWidget");
     28
     29    this->_bar.setSize2D(100, 30);
    2830    this->pack(&this->_name);
    2931    this->pack(&this->_valueText);
     
    3638    this->_valueText.setBackgroundTexture("maps/gui_element_background_2.png");
    3739    this->_bar.setBackgroundTexture(Texture());
     40    this->_bar.setBackgroundColor(Color(0,0,0,0));
     41    this->_bar.setForegroundColor(Color(1, 1, 1, 1));
     42    this->_bar.font().setBlendFunc(GL_SRC_ALPHA, GL_DST_ALPHA);
    3843  }
    3944
     
    5055  {
    5156    this->_name.setText(name);
     57    this->_bar.setWidgetSize(this->_name.getSize2D());
    5258  }
    5359
Note: See TracChangeset for help on using the changeset viewer.