Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8448 in orxonox.OLD for trunk/src/util


Ignore:
Timestamp:
Jun 15, 2006, 12:48:26 PM (19 years ago)
Author:
bensch
Message:

merged gui back to the trunk
merged with command
merge -r8377:HEAD https://svn.orxonox.net/orxonox/branches/gui .

Location:
trunk/src/util
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/util/hud.cc

    r8145 r8448  
    2121
    2222#include "world_entities/weapons/weapon_manager.h"
    23 
    24 using namespace std;
    25 
     23#include "glgui_widget.h"
    2624
    2725/**
     
    7674    this->energyWidget->backMaterial().setDiffuseMap("hud_energy_background.png");
    7775    this->energyWidget->backMaterial().setBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
    78     this->energyWidget->frontMaterial().setDiffuseMap("hud_energy_bar.png");
    79     this->energyWidget->frontMaterial().setBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
     76/*    this->energyWidget->frontMaterial().setDiffuseMap("hud_energy_bar.png");
     77    this->energyWidget->frontMaterial().setBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);*/
    8078  }
    8179
     
    132130      weapon->getEnergyWidget()->backMaterial().setDiffuse( .8,.2,.11);
    133131      weapon->getEnergyWidget()->backMaterial().setTransparency(.1);
    134       weapon->getEnergyWidget()->frontMaterial().setDiffuse( .2,.5,.7);
    135       weapon->getEnergyWidget()->frontMaterial().setTransparency(.6);
     132      weapon->getEnergyWidget()->setFrontColor(Color( .2,.5,.7,.6));
     133//      weapon->getEnergyWidget()->frontMaterial().setTransparency(.6);
    136134      this->weaponsWidgets.push_back(weapon->getEnergyWidget());
    137135    }
  • trunk/src/util/hud.h

    r8145 r8448  
    77#define _HUD_H
    88
    9 #include "glgui_widget.h"
    10 #include <list>
    11 
     9#include "element_2d.h"
    1210// FORWARD DECLARATION
    1311class TiXmlElement;
    1412class WeaponManager;
     13namespace OrxGui { class GLGuiWidget; }
    1514
    1615//! A class that renders a HUD.
Note: See TracChangeset for help on using the changeset viewer.