Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10233 in orxonox.OLD for branches/playability/src/world_entities


Ignore:
Timestamp:
Jan 11, 2007, 11:42:43 PM (18 years ago)
Author:
muellmic
Message:

energy bars are now changing its colors, adding hud overlay - very strange coordinate behaviour tough, awaiting fix

Location:
branches/playability/src/world_entities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/playability/src/world_entities/elements/glgui_energywidgetvertical.cc

    r10230 r10233  
    5454    this->_bar.setValue(value);
    5555    this->_bar.setForegroundColor(Color::slerpHSVColor(Color::red, Color::green, value/this->_bar.maximum()));
    56     this->_bar.setFrontColor(Color(1,1,1,1), true);
     56    //this->_bar.setFrontColor(Color(1,1,1,1), true);
    5757    this->_valueText.setText(val.getString());
    5858    //this->_valueText.setText("asdfas");
  • branches/playability/src/world_entities/space_ships/space_ship.cc

    r10230 r10233  
    424424  this->secWeaponMan.showCrosshair();
    425425  this->toList( OM_GROUP_01 );
     426  State::getPlayer()->hud().setOverlayActive(true);
    426427  //dynamic_cast <OrxGui::GLGuiEnergyWidgetVertical*> (State::getPlayer()->hud().getArmorWidget())->setDisplayedName("Armor");
    427428  //dynamic_cast<Element2D*>(this->secWeaponMan.getFixedTarget())->setVisibility( true);
     
    434435  this->secWeaponMan.hideCrosshair();
    435436  this->toList( OM_GROUP_00);
     437  State::getPlayer()->hud().setOverlayActive(false);
    436438  //dynamic_cast<Element2D*>(this->secWeaponMan.getFixedTarget())->setVisibility( false);
    437439  //this->detachCamera();
Note: See TracChangeset for help on using the changeset viewer.