- Timestamp:
- Dec 26, 2005, 1:46:16 PM (19 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/gui/gl_gui/glgui_bar.cc
r6295 r6305 67 67 glBegin(GL_QUADS); 68 68 69 glVertex2f( .1 * this->getSizeX2D(), .1 * this->getSizeY2D());70 glVertex2f( .1 * this->getSizeX2D(), this->getSizeY2D()* .9* (value/maximum));71 glVertex2f(this->getSizeX2D() * .9, this->getSizeY2D() * .9* (value/maximum));72 glVertex2f(this->getSizeX2D() * .9, .1 * this->getSizeY2D());69 glVertex2f(3.0, 3.0); 70 glVertex2f(3.0, (this->getSizeY2D()-3.0)* (value/maximum)); 71 glVertex2f(this->getSizeX2D()-3.0, (this->getSizeY2D()-3.0) * (value/maximum)); 72 glVertex2f(this->getSizeX2D()-3.0, 3.0); 73 73 74 74 glEnd(); -
trunk/src/world_entities/weapons/aim.cc
r6222 r6305 53 53 delete this->material; 54 54 55 if (this->text != NULL)56 delete this->text; 55 /* if (this->text != NULL) 56 delete this->text;*/ 57 57 } 58 58 … … 79 79 this->anim->addKeyFrame(50, .01, ANIM_LINEAR); 80 80 81 this->text = new Text();81 /* this->text = new Text(); 82 82 this->text->setLayer(this->getLayer()); 83 83 this->text->setParent2D(this); 84 84 this->text->setRelCoor2D(10, -50); 85 85 this->text->setParentMode2D(E2D_PARENT_MOVEMENT); 86 this->text->setText("Testing"); 86 this->text->setText("Testing");*/ 87 87 } 88 88 … … 124 124 125 125 /** 126 * sets the size of the Aim.126 * @brief sets the size of the Aim. 127 127 * @param size the size in pixels 128 128 */ … … 150 150 this->shiftDir2D(dt * rotationSpeed); 151 151 152 char outputText[100];153 sprintf(outputText, "%s - distance: %f\n", this->getParent()->getName(), (this->source->getAbsCoor() - this->getAbsCoor()).len());154 this->text->setText(outputText);152 // char outputText[100]; 153 // sprintf(outputText, "%s - distance: %f\n", this->getParent()->getName(), (this->source->getAbsCoor() - this->getAbsCoor()).len()); 154 // this->text->setText(outputText); 155 155 156 156
Note: See TracChangeset
for help on using the changeset viewer.