Changeset 11331 for code/branches/Dialog_HS16/src/modules/overlays
- Timestamp:
- Dec 12, 2016, 3:16:38 PM (8 years ago)
- 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 15 15 { 16 16 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) 21 24 { 22 25 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 */ 24 31 void HUDDialogue::updateTarget(std::string portrait) 25 32 { … … 33 40 portraitTimer.setTimer(2.9f,false,createExecutor(createFunctor(&HUDDialogue::invisible, this))); 34 41 } 42 /** 43 @brief 44 Sets the picture back to invisible again. 45 */ 35 46 void HUDDialogue::invisible() 36 47 { … … 38 49 Ogre::OverlayManager::getSingleton().destroyOverlayElement(this->overlayElementIcon_); 39 50 } 40 HUDDialogue::~HUDDialogue() 41 { 51 /** 52 @brief 53 Default Destructor. 54 */ 55 HUDDialogue::~HUDDialogue() 56 { 42 57 43 58 44 59 } 45 60 } -
code/branches/Dialog_HS16/src/modules/overlays/hud/HUDDialogue.h
r11317 r11331 18 18 { 19 19 public: 20 HUDDialogue(Context* context); 21 virtual ~HUDDialogue(); 20 HUDDialogue(Context* context); //!< Default Constructor. 21 virtual ~HUDDialogue(); //!< Destructor. 22 22 23 /** 24 @brief Sets the active picture. 25 */ 23 26 virtual void updateTarget(std::string portrait); 24 27 /** 28 @brief Sets the picture to invivsible when Dialogue is over. 29 */ 25 30 virtual void invisible(); 26 31 … … 28 33 Ogre::PanelOverlayElement* overlayElementIcon_; 29 34 30 Timer portraitTimer; 35 Timer portraitTimer; //!< The Timer which is used to set the picture back to invisible. 31 36 }; 32 37 }
Note: See TracChangeset
for help on using the changeset viewer.