Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4100 in orxonox.OLD for orxonox/trunk/src


Ignore:
Timestamp:
May 7, 2005, 3:01:10 AM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: better positioning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/glmenu/glmenu_imagescreen.cc

    r4099 r4100  
    5757  this->setPosition(0,0);
    5858  this->setScale(1,1);
    59   this->setBarPosScale( .55, .7, .3, .15);
     59  this->setBarPosScale( .6, .75, .3, .1);
    6060  // End of Background image code.
    6161}
     
    200200  if( val > barW)
    201201    val = barW;
    202 
    203   printf(":::::::::::::::::::::%d %d %d %d %d\n", screenHeight, barY, barW, barH, val);
    204202
    205203  GraphicsEngine::enter2DMode();
     
    214212  glEnd();
    215213 
     214  glDisable(GL_TEXTURE_2D);
     215  /* draw white border */
     216  glBegin(GL_LINE_LOOP);
     217  glColor3f(1.0, 1.0, 1.0);
     218  glVertex2i(barX - 2, barY - 2);
     219  glVertex2i(barX + barW + 2, barY - 2);
     220  glVertex2i(barX + barW + 2, barY + barH + 2);
     221  glVertex2i(barX - 2, barY + barH + 2);
     222  glColor3f(1.0, 1.0, 1.0);
     223  glEnd();
    216224 
    217225  /* draw the progress bar */
    218226  barMat->select();
    219227  glBegin(GL_TRIANGLE_STRIP);
    220   glColor3f(0.96, 0.84, 0.34);
    221228  glTexCoord2i(0, 0); glVertex2i(barX, barY + barH);
    222229  glTexCoord2i(1, 0); glVertex2i(barX + val, barY + barH);
     
    245252    glEnd();
    246253   
    247     /* draw white border /
    248     glBegin(GL_QUADS);
    249     glColor3f(1.0, 1.0, 1.0);
    250     glVertex2i(barX-2, barY-2);
    251     glVertex2i(barX + barWidth +2, barY-2);
    252     glVertex2i(barX + barWidth+2, barY + barHeight+2);
    253     glVertex2i(barX - 2, barY + barHeight +2);
    254     glColor3f(1.0, 1.0, 1.0);
    255     glEnd();
    256254  */
    257255
Note: See TracChangeset for help on using the changeset viewer.