Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 29, 2007, 6:51:25 PM (19 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/light_blaster.cc

    r10484 r10486  
    1010
    1111#include "loading/fast_factory.h"
     12
     13#include "elements/glgui_energywidgetvertical.h"
    1214
    1315CREATE_FACTORY(LightBlaster);
     
    123125}
    124126
    125 
    126127void LightBlaster::fire()
    127128{
     
    173174    static_cast<StaticModel*>(this->getModel())->draw();
    174175  glPopMatrix();
     176
    175177}
     178
     179void LightBlaster::tick(float dt)
     180{
     181  if (this->energyWidget != NULL && !this->isEnergyWidgetInitialized)
     182  {
     183    this->energyWidget->setDisplayedImage("textures/gui/gui_light_bolt.png");
     184    this->setEnergyWidgetInitialized(true);
     185  }
     186}
Note: See TracChangeset for help on using the changeset viewer.