- Timestamp:
- Dec 12, 2016, 3:16:38 PM (7 years ago)
- File:
-
- 1 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 }
Note: See TracChangeset
for help on using the changeset viewer.