Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8144 in orxonox.OLD for branches/gui/src/util


Ignore:
Timestamp:
Jun 4, 2006, 7:55:55 PM (18 years ago)
Author:
bensch
Message:

gui: better debugging system

Location:
branches/gui/src/util
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/gui/src/util/animation/t_animation.h

    r5115 r8144  
    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;
  • branches/gui/src/util/hud.cc

    r7064 r8144  
    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)
  • branches/gui/src/util/hud.h

    r7779 r8144  
    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.