Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 24, 2007, 6:50:33 PM (17 years ago)
Author:
muellmic
Message:

hud scales now according to actionWidth and res

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/playability/src/world_entities/space_ships/space_ship.cc

    r10335 r10347  
    371371  this->travelDistancePlus = Vector2D(50,50);
    372372  this->travelDistanceMinus = Vector2D(-50,-50);
    373   this->isTravelDistanceInit = false;
     373  this->isTravelDistanceInit = true;
    374374  this->actionWidthPercentage = 1;
    375375
     
    420420  LoadParam(root, "cameraDistance", this, SpaceShip, setCameraDistance);
    421421  LoadParam(root, "cameraFovy", this, SpaceShip, setCameraFovy);
    422   //LoadParam(root, "actionWidthPercentage", this, SpaceShip, setActionWidthPercentage);
     422  LoadParam(root, "actionWidthPercentage", this, SpaceShip, setActionWidthPercentage);
    423423
    424424  State::getCamera()->setViewMode(Camera::ViewTop);
     
    860860        this->travelNode->updateNode(0.01f);
    861861
    862         if (this->hasPlayer())
    863           this->isTravelDistanceInit = false;
     862        this->isTravelDistanceInit = false;
    864863
    865864        if(this->entityTrack)
     
    11671166  if (i<0) i=0;
    11681167  this->actionWidthPercentage = i/100.0;
    1169   //State::getPlayer()->hud().setOverlayPercentage(100-i);
    1170   //updateTravelDistance();
     1168
    11711169  if (this->hasPlayer())
    11721170    this->isTravelDistanceInit = false;
Note: See TracChangeset for help on using the changeset viewer.