Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/Presentation_HS17_merge/src/modules/overlays/hud/HUDWaypoints.cc @ 11774

Last change on this file since 11774 was 11774, checked in by landauf, 7 years ago

merged Waypoints_HS17

File size: 978 bytes
Line 
1
2
3
4
5#include <vector>
6#include <string>
7
8#include "HUDWaypoints.h"
9#include "core/CoreIncludes.h"
10#include "core/XMLPort.h"
11#include "util/Convert.h"
12#include "core/class/Super.h"
13#include "pickup/Pickup.h"
14#include "HUDPickupItem.h"
15#include "pickup/PickupManager.h"
16
17namespace orxonox
18{
19        RegisterClass(HUDWaypoints);
20
21                HUDWaypoints::HUDWaypoints(Context* context) : OrxonoxOverlay(context)
22    {
23        RegisterObject(HUDWaypoints);
24
25        overlayElement_ = static_cast<Ogre::PanelOverlayElement* >(Ogre::OverlayManager::getSingleton().createOverlayElement("Panel", "HUDWaypoints" + getUniqueNumberString()));
26        overlayElement_->setMaterialName("PickupBar");
27        overlayElement_->setPosition(0.0f,0.0f);
28        overlayElement_->setDimensions(0.35f,0.075f);
29        this->background_->addChild(overlayElement_);
30    }
31
32
33    HUDWaypoints::~HUDWaypoints()
34    {
35       /* if (this->isInitialized())
36        {
37            this->picks.clear();
38        }*/
39    }
40
41
42}
Note: See TracBrowser for help on using the repository browser.