Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/Dialog_HS16/src/modules/overlays/hud/HUDDialogue.cc @ 11292

Last change on this file since 11292 was 11292, checked in by dmoritz, 7 years ago

New DialogueManager Class

File size: 1.1 KB
Line 
1
2
3
4
5
6#include "HUDDialogue.h"
7
8#include "core/XMLPort.h"
9
10#include <OgreCamera.h>
11#include <OgreFontManager.h>
12#include <OgreOverlayManager.h>
13#include <OgreTextAreaOverlayElement.h>
14#include <OgrePanelOverlayElement.h>
15
16namespace orxonox
17{
18
19         RegisterClass (HUDDialogue);
20
21         HUDDialogue::HUDDialogue(Context* context) :
22        OrxonoxOverlay(context)
23    {
24        RegisterObject(HUDDialogue);
25
26        overlayElementIcon_ = static_cast<Ogre::PanelOverlayElement* >(Ogre::OverlayManager::getSingleton().createOverlayElement("Panel", "Dialogue" + getUniqueNumberString()));
27        overlayElementIcon_->setPosition(0.0f,0.0f);
28        overlayElementIcon_->setDimensions(1.0f,1.0f);
29        this->background_->addChild(overlayElementIcon_);
30
31        overlayElementIcon_->setMaterialName("Orxonox/DialogueHUD_Person");
32
33           }     
34
35        void HUDDialogue::tick(float dt)
36    {
37        SUPER(HUDDialogue, tick, dt);
38
39
40    }
41
42         HUDDialogue::~HUDDialogue()
43         {
44
45
46         }
47
48         void HUDDialogue::XMLPort(Element& xmlelement, XMLPort::Mode mode)
49         {
50                SUPER(HUDDialogue, XMLPort, xmlelement, mode);
51         }
52
53}
Note: See TracBrowser for help on using the repository browser.