Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 29, 2007, 6:51:25 PM (17 years ago)
Author:
muellmic
Message:

weapons now set their gui- icon when mounted

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/playability/src/world_entities/weapons/heavy_blaster.cc

    r10485 r10486  
    1010
    1111#include "loading/fast_factory.h"
     12
     13#include "elements/glgui_energywidgetvertical.h"
    1214
    1315CREATE_FACTORY(HeavyBlaster);
     
    259261  glPopMatrix();
    260262}
     263
     264void HeavyBlaster::tick(float dt)
     265{
     266  if (this->energyWidget != NULL && !this->isEnergyWidgetInitialized)
     267  {
     268    this->energyWidget->setDisplayedImage("textures/gui/gui_heavy_bolt.png");
     269    this->setEnergyWidgetInitialized(true);
     270  }
     271}
Note: See TracChangeset for help on using the changeset viewer.