Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 12, 2016, 3:16:38 PM (8 years ago)
Author:
dmoritz
Message:

Final changes.

Location:
code/branches/Dialog_HS16/src/modules/overlays/hud
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/Dialog_HS16/src/modules/overlays/hud/HUDDialogue.cc

    r11317 r11331  
    1515{
    1616
    17          RegisterClass (HUDDialogue);
    18 
    19          HUDDialogue::HUDDialogue(Context* context) :
    20         OrxonoxOverlay(context)
     17        RegisterClass (HUDDialogue);
     18        /**
     19    @brief
     20        Default Constructor. Registers the object and initializes variables.
     21    */
     22        HUDDialogue::HUDDialogue(Context* context) :
     23    OrxonoxOverlay(context)
    2124    {
    2225        RegisterObject(HUDDialogue);
    23         }     
     26        }   
     27        /**
     28        @brief
     29                Updates the picture to the picture which was declared in the Dialogue class and sets a timer to set the picture on invisible again.
     30        */ 
    2431    void HUDDialogue::updateTarget(std::string portrait)
    2532    {
     
    3340        portraitTimer.setTimer(2.9f,false,createExecutor(createFunctor(&HUDDialogue::invisible, this)));
    3441    }
     42    /**
     43    @brief
     44        Sets the picture back to invisible again.
     45    */
    3546    void HUDDialogue::invisible()
    3647    {
     
    3849        Ogre::OverlayManager::getSingleton().destroyOverlayElement(this->overlayElementIcon_);
    3950    }
    40          HUDDialogue::~HUDDialogue()
    41          {
     51    /**
     52    @brief
     53        Default Destructor.
     54    */
     55        HUDDialogue::~HUDDialogue()
     56        {
    4257
    4358
    44          }
     59        }
    4560}
  • code/branches/Dialog_HS16/src/modules/overlays/hud/HUDDialogue.h

    r11317 r11331  
    1818    {
    1919        public:
    20             HUDDialogue(Context* context);
    21             virtual ~HUDDialogue();
     20            HUDDialogue(Context* context); //!< Default Constructor.
     21            virtual ~HUDDialogue(); //!< Destructor.
    2222
     23            /**
     24            @brief Sets the active picture.
     25            */
    2326            virtual void updateTarget(std::string portrait);
    24 
     27            /**
     28            @brief Sets the picture to invivsible when Dialogue is over.
     29            */
    2530            virtual void invisible();
    2631
     
    2833                        Ogre::PanelOverlayElement* overlayElementIcon_;
    2934
    30                         Timer portraitTimer;
     35                        Timer portraitTimer; //!< The Timer which is used to set the picture back to invisible.
    3136    };
    3237}
Note: See TracChangeset for help on using the changeset viewer.