Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


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

blend-stuff

Location:
trunk/src/world_entities
Files:
2 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
  • trunk/src/world_entities/weapons/test_gun.cc

    r8777 r8983  
    3232
    3333#include "fast_factory.h"
    34 
    35 
    36 using namespace std;
    3734
    3835CREATE_FACTORY(TestGun, CL_TEST_GUN);
     
    123120  this->setStateDuration(WS_DEACTIVATING, .4);
    124121
    125   this->setEnergyMax(100000);
    126   this->increaseEnergy(100000);
     122  this->setEnergyMax(10000);
     123  this->increaseEnergy(1000);
    127124  //this->minCharge = 2;
    128125
     
    133130  this->setCapability(WTYPE_ALLDIRS | WTYPE_DIRECTIONAL);
    134131  this->setProjectileType(CL_LASER);
    135   this->prepareProjectiles(20);
     132  this->prepareProjectiles(100);
    136133
    137134}
Note: See TracChangeset for help on using the changeset viewer.