Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 10, 2008, 1:41:35 PM (16 years ago)
Author:
chaiy
Message:

hallo

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/hud2/src/orxonox/hud/Bar.cc

    r1002 r1012  
    2828#include <OgreOverlayManager.h>
    2929#include <OgreOverlayElement.h>
     30#include <OgreOverlayContainer.h>
     31#include <OgrePanelOverlayElement.h>
    3032#include <OgreStringConverter.h>
    3133#include <OgreColourValue.h>
    3234#include <string.h>
    3335
    34 #include "BarV1.h"
     36#include "Bar.h"
    3537
    3638namespace orxonox
     
    3840  using namespace Ogre;
    3941
    40     Bar::Bar(const String& name):Ogre::OverlayElement(name){}
     42//    typeName_s = "Bar";
     43
     44    Bar::Bar(const String& name):Ogre::PanelOverlayElement(name){
     45    }
    4146
    4247
     48    Bar::~Bar(){}
     49
     50//    const Ogre::String& Bar::getTypeName() const { return typeName_s;}
     51
     52
     53
     54    void Bar::initialise(){
     55        PanelOverlayElement::initialise();
     56        setDimensions(100,100);
     57        setPosition(10,10);
     58        setMaterialName("Orxonox/Green");
     59        setMetricsMode(Ogre::GMM_PIXELS);
     60    }
    4361
    4462
Note: See TracChangeset for help on using the changeset viewer.