Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Jun 5, 2006, 11:49:26 AM (19 years ago)
Author:
bensch
Message:

trunk: merged the gui back
merged with command:
svn merge -r8114:HEAD https://svn.orxonox.net/orxonox/branches/gui .
→ no conflicts

Location:
trunk/src/util
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/util/animation/t_animation.h

    r5115 r8145  
    242242      break;
    243243    case ANIM_NEG_EXP:
    244       {
    245244        this->animFunc = &tAnimation<T>::negExp;
    246245        expFactor =  - 1.0 / this->currentKeyFrame->duration * logf(DELTA_X);
    247246        break;
    248       }
    249247    case ANIM_QUADRATIC:
    250248      this->animFunc = &tAnimation<T>::quadratic;
  • trunk/src/util/hud.cc

    r7064 r8145  
    6262}
    6363
    64 void Hud::setEnergyWidget(GLGuiWidget* widget)
     64void Hud::setEnergyWidget(OrxGui::GLGuiWidget* widget)
    6565{
    6666  // decopple old widget
     
    8383}
    8484
    85 void Hud::setShiledWidget(GLGuiWidget* widget)
     85void Hud::setShiledWidget(OrxGui::GLGuiWidget* widget)
    8686{
    8787}
    8888
    89 void Hud::setArmorWidget(GLGuiWidget* widget)
     89void Hud::setArmorWidget(OrxGui::GLGuiWidget* widget)
    9090{
    9191}
     
    115115{
    116116  // hide all the Widgets
    117   std::list<GLGuiWidget*>::iterator weaponWidget;
     117  std::list<OrxGui::GLGuiWidget*>::iterator weaponWidget;
    118118  for (weaponWidget = this->weaponsWidgets.begin(); weaponWidget != this->weaponsWidgets.end(); weaponWidget++)
    119119  {
     
    140140}
    141141
    142 void Hud::addWeaponWidget(GLGuiWidget* widget)
     142void Hud::addWeaponWidget(OrxGui::GLGuiWidget* widget)
    143143{
    144144}
    145145
    146 void Hud::removeWeaponWidget(GLGuiWidget* widget)
     146void Hud::removeWeaponWidget(OrxGui::GLGuiWidget* widget)
    147147{
    148148}
     
    160160  this->setSize2D(.2 * this->resX, this->resY);
    161161
    162   std::list<GLGuiWidget*>::iterator weaponWidget;
     162  std::list<OrxGui::GLGuiWidget*>::iterator weaponWidget;
    163163  float pos = .3;
    164164  for (weaponWidget = this->weaponsWidgets.begin(); weaponWidget != this->weaponsWidgets.end(); weaponWidget++, pos+=.03)
  • trunk/src/util/hud.h

    r7779 r8145  
    1515
    1616//! A class that renders a HUD.
    17 class Hud : public OrxGui::GLGuiWidget
     17class Hud : public Element2D
    1818{
    1919
     
    2626
    2727  void setBackGround();
    28   void setEnergyWidget(GLGuiWidget* widget);
    29   void setShiledWidget(GLGuiWidget* widget);
    30   void setArmorWidget(GLGuiWidget* widget);
     28  void setEnergyWidget(OrxGui::GLGuiWidget* widget);
     29  void setShiledWidget(OrxGui::GLGuiWidget* widget);
     30  void setArmorWidget(OrxGui::GLGuiWidget* widget);
    3131  void setWeaponManager(WeaponManager* weaponMan);
    3232
    33   void addWeaponWidget(GLGuiWidget* widget);
    34   void removeWeaponWidget(GLGuiWidget* widget);
     33  void addWeaponWidget(OrxGui::GLGuiWidget* widget);
     34  void removeWeaponWidget(OrxGui::GLGuiWidget* widget);
    3535
    3636  void updateWeaponManager();
     
    4646  unsigned int             resY;
    4747
    48   GLGuiWidget*             energyWidget;
    49   GLGuiWidget*             shieldWidget;
    50   GLGuiWidget*             armorWidget;
     48  OrxGui::GLGuiWidget*     energyWidget;
     49  OrxGui::GLGuiWidget*     shieldWidget;
     50  OrxGui::GLGuiWidget*     armorWidget;
    5151
    5252  WeaponManager*           weaponManager;
    5353
    54   std::list<GLGuiWidget*> weaponsWidgets; //!< WeaponWidgets will be displayed one after another
     54  std::list<OrxGui::GLGuiWidget*> weaponsWidgets; //!< WeaponWidgets will be displayed one after another
    5555};
    5656
Note: See TracChangeset for help on using the changeset viewer.