Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6305 in orxonox.OLD


Ignore:
Timestamp:
Dec 26, 2005, 1:46:16 PM (18 years ago)
Author:
bensch
Message:

trunk: removed unused Text

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/gui/gl_gui/glgui_bar.cc

    r6295 r6305  
    6767  glBegin(GL_QUADS);
    6868
    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);
    7373
    7474  glEnd();
  • trunk/src/world_entities/weapons/aim.cc

    r6222 r6305  
    5353    delete this->material;
    5454
    55   if (this->text != NULL)
    56     delete this->text;
     55/*  if (this->text != NULL)
     56    delete this->text;*/
    5757}
    5858
     
    7979  this->anim->addKeyFrame(50, .01, ANIM_LINEAR);
    8080
    81   this->text = new Text();
     81/*  this->text = new Text();
    8282  this->text->setLayer(this->getLayer());
    8383  this->text->setParent2D(this);
    8484  this->text->setRelCoor2D(10, -50);
    8585  this->text->setParentMode2D(E2D_PARENT_MOVEMENT);
    86   this->text->setText("Testing");
     86  this->text->setText("Testing");*/
    8787}
    8888
     
    124124
    125125/**
    126  * sets the size of the Aim.
     126 * @brief sets the size of the Aim.
    127127 * @param size the size in pixels
    128128 */
     
    150150  this->shiftDir2D(dt * rotationSpeed);
    151151
    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);
    155155
    156156
Note: See TracChangeset for help on using the changeset viewer.