Changeset 8983 in orxonox.OLD for trunk/src/world_entities
- Timestamp:
- Jul 1, 2006, 4:12:44 PM (19 years ago)
- Location:
- trunk/src/world_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/elements/glgui_energywidget.cc
r8981 r8983 26 26 { 27 27 // this->setClassID(CL_PROTO_ID, "GLGuiEnergyWidget"); 28 29 this->_bar.setSize2D(100, 30); 28 30 this->pack(&this->_name); 29 31 this->pack(&this->_valueText); … … 36 38 this->_valueText.setBackgroundTexture("maps/gui_element_background_2.png"); 37 39 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); 38 43 } 39 44 … … 50 55 { 51 56 this->_name.setText(name); 57 this->_bar.setWidgetSize(this->_name.getSize2D()); 52 58 } 53 59 -
trunk/src/world_entities/weapons/test_gun.cc
r8777 r8983 32 32 33 33 #include "fast_factory.h" 34 35 36 using namespace std;37 34 38 35 CREATE_FACTORY(TestGun, CL_TEST_GUN); … … 123 120 this->setStateDuration(WS_DEACTIVATING, .4); 124 121 125 this->setEnergyMax(10000 0);126 this->increaseEnergy(1000 00);122 this->setEnergyMax(10000); 123 this->increaseEnergy(1000); 127 124 //this->minCharge = 2; 128 125 … … 133 130 this->setCapability(WTYPE_ALLDIRS | WTYPE_DIRECTIONAL); 134 131 this->setProjectileType(CL_LASER); 135 this->prepareProjectiles( 20);132 this->prepareProjectiles(100); 136 133 137 134 }
Note: See TracChangeset
for help on using the changeset viewer.