Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6520 in orxonox.OLD for branches/network/src/world_entities


Ignore:
Timestamp:
Jan 18, 2006, 12:58:14 AM (19 years ago)
Author:
patrick
Message:

network: the simple menu now works. now i need more graphics, more effects and more sound

Location:
branches/network/src/world_entities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/world_entities/image_entity.cc

    r6516 r6520  
    6868  this->setLayer(E2D_LAYER_TOP);
    6969  this->setRotationSpeed(5);
    70   this->setSize(GraphicsEngine::getInstance()->getResolutionX()/10.0);
     70  this->setSize(GraphicsEngine::getInstance()->getResolutionX()/10.0, GraphicsEngine::getInstance()->getResolutionY()/10.0);
    7171
    7272  this->setBindNode(this);
     
    9999 * @param size the size in pixels
    100100 */
    101 void ImageEntity::setSize(float size)
     101void ImageEntity::setSize(float sizeX, float sizeY)
    102102{
    103   this->setSize2D(size/2, size/2);
     103  this->setSize2D(sizeX, sizeY);
    104104}
    105105
  • branches/network/src/world_entities/image_entity.h

    r6514 r6520  
    3030  void loadParams(const TiXmlElement* root);
    3131
    32   void setSize(float size);
     32  void setSize(float sizeX, float sizeY);
    3333  void setTexture(const char* textureFile);
    3434  /** @param rotationSpeed the speed at what the crosshair should rotate */
Note: See TracChangeset for help on using the changeset viewer.