Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 30, 2015, 7:51:49 PM (10 years ago)
Author:
fvultier
Message:

The weapon system HUD rescales properly if the window size changes.

File:
1 edited

Legend:

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

    r10721 r10724  
    2121 *
    2222 *   Author:
    23  *      Yuning Chai
    24  *      Felix Schulthess
     23 *      Fabien Vultier
    2524 *   Co-authors:
    26  *      Reto Grieder
    27  *      Wolfgang Roenninger
     25 *      ...
    2826 *
    2927 */
     
    3129#include "HUDWeaponSystem.h"
    3230
    33 #include <OgreOverlayManager.h>
    34 #include <OgrePanelOverlayElement.h>
    35 
    3631#include "core/CoreIncludes.h"
    3732#include "core/XMLPort.h"
    38 #include "tools/TextureGenerator.h"
    3933#include "weaponsystem/WeaponSystem.h"
    4034#include "weaponsystem/WeaponPack.h"
     
    7367    }
    7468
    75     void HUDWeaponSystem::tick(float dt)
    76     {
    77         SUPER(HUDWeaponSystem, tick, dt);
    78 
    79         if (this->owner_)
    80         {
    81 
    82         }
    83     } 
    84 
    8569    void HUDWeaponSystem::positionChanged()
    8670    {
     
    11195    {
    11296        SUPER(HUDWeaponSystem, changedOverlayGroup);
    113 
    114         //this->getOverlayGroup()->addElement(this->textOverlay_.get());
    11597    }   
    11698
     
    118100    {
    119101        SUPER(HUDWeaponSystem, changedVisibility);
    120 
    121         //this->textOverlay_->setVisible(this->isVisible());
    122102    }
    123103
     
    125105    {
    126106        SUPER(HUDWeaponSystem, changedName);
    127 
    128         //this->textOverlay_->setName(this->getName() + "text");
    129107    } 
    130108
     
    178156    {
    179157        int positionIndex = 0;
    180         //this->setSize(weaponModeHUDSize_);
    181         // this->weaponModeHUDActualSize_ = this->getActualSize();
    182158
    183159        for (std::vector<WeakPtr<HUDWeapon> >::iterator it = hudWeapons_.begin(); it != hudWeapons_.end(); ++it)
     
    185161            (*it)->setWeaponIndex(positionIndex);
    186162            (*it)->setWeaponModeHUDActualSize(this->weaponModeHUDActualSize_);
    187             (*it)->positionHUDChilds();           
    188163
    189164            ++ positionIndex;
Note: See TracChangeset for help on using the changeset viewer.