Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 1, 2015, 1:05:54 PM (9 years ago)
Author:
fvultier
Message:

HUD improved. Corrected text rescaling. Renamed reload to shieldRecharge in Pawn.cc, … to avoid confusion with the weapon system.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/fabienHS15/src/modules/overlays/hud/HUDWeapon.cc

    r10724 r10739  
    6060        {
    6161            destroyHUDChilds();
    62             //this->overlayElement_->destroy();           
    6362        }
    6463    }
     
    179178        for (std::vector<WeakPtr<HUDWeaponMode> >::iterator it = hudWeaponModes_.begin(); it != hudWeaponModes_.end(); ++it)
    180179        {
     180            (*it)->setPositionOffset(this->positionOffset_);
    181181            (*it)->setWeaponModeIndex(positionIndex);
    182182            (*it)->setWeaponIndex(this->weaponIndex_);
     
    210210        if (weaponModes_ != NULL)
    211211        {
    212             this->setPosition(Vector2(weaponModeHUDActualSize_.x*weaponIndex_,0.0f));
     212            this->setPosition(Vector2(weaponModeHUDActualSize_.x*weaponIndex_,0.0f) + this->positionOffset_);
    213213        }       
    214214    }       
Note: See TracChangeset for help on using the changeset viewer.