Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 22, 2008, 11:47:09 PM (16 years ago)
Author:
rgrieder
Message:
  • moved colours of the SpeedBar to XML file
  • enabled render window updating in inactive mode (under windows the render window didn't show anything if inactive)
  • added row/column to ticpp error description (there are a lot more to do this, may modify the macro..)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/hud/src/orxonox/overlays/hud/HUDBar.h

    r1615 r1618  
    4141namespace orxonox
    4242{
     43    class _OrxonoxExport BarColour : public BaseObject
     44    {
     45    public:
     46        BarColour();
     47        ~BarColour() { }
     48
     49        void XMLPort(Element& xmlElement, XMLPort::Mode mode);
     50
     51        void setColour(const ColourValue& colour) { this->colour_ = colour; }
     52        const ColourValue& getColour() const { return this->colour_; }
     53
     54        void setPosition(float pos) { this->position_ = pos; }
     55        float getPosition() const    { return this->position_; }
     56
     57    private:
     58        ColourValue colour_;
     59        float position_;
     60    };
     61
    4362    class _OrxonoxExport HUDBar : public OrxonoxOverlay
    4463    {
     
    5069
    5170        virtual void setValue(float value);
    52         void addColour(float value, const ColourValue& colour);
    5371        void clearColours();
    5472
     
    6179
    6280    private:
     81        void addColour(BarColour* colour);
     82        BarColour* getColour(unsigned int index);
     83
    6384        bool right2Left_;
    6485        bool autoColour_;                   //!< whether bar changes colour automatically
     
    6889        Ogre::TextureUnitState* textureUnitState_;
    6990        std::map<float, ColourValue> colours_;
     91        std::vector<BarColour*> barColours_;
    7092
    7193        float barWidth_s;
Note: See TracChangeset for help on using the changeset viewer.