Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10111 in orxonox.OLD for branches/playability/src/util/hud.cc


Ignore:
Timestamp:
Dec 19, 2006, 11:32:32 PM (17 years ago)
Author:
muellmic
Message:

placed container for ship values into hud

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/playability/src/util/hud.cc

    r10092 r10111  
    2323#include "world_entities/weapons/weapon_manager.h"
    2424#include "glgui_widget.h"
     25#include "glgui_box.h"
    2526
    2627#include "glgui_inputline.h"
     
    6364  this->subscribeEvent(ES_ALL, SDLK_TAB);
    6465
    65 
     66  this->shipValuesBox = new OrxGui::GLGuiBox(OrxGui::Vertical);
     67  this->shipValuesBox->setBackgroundTexture("maps/gui_container_background.png");
    6668}
    6769
     
    105107  {
    106108    this->energyWidget->show();
    107     //this->energyWidget->setBackgroundTexture( "hud_energy_background.png");
    108109    this->energyWidget->shiftDir2D(270);
     110    //this->energyWidget->setDisplayedName("Electronics")
     111    this->shipValuesBox->pack(this->energyWidget);
    109112    /*    this->energyWidget->frontMaterial().setDiffuseMap("hud_energy_bar.png");
    110113        this->energyWidget->frontMaterial().setBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);*/
     
    229232  }
    230233
    231 
    232   if (this->energyWidget != NULL)
    233   {
    234     this->energyWidget->setAbsCoor2D(0.2 * this->resX, 0.85 * this->resY);
    235     this->energyWidget->setWidgetSize(.25 * this->resX, 0.1 * this->resY);
     234 
     235  if (this->shipValuesBox != NULL)
     236  {
     237    this->shipValuesBox->setAbsCoor2D(0.2 * this->resX, 0.85 * this->resY);
     238    this->shipValuesBox->setWidgetSize(.4 * this->resX, 0.1 * this->resY);
    236239  }
    237240
Note: See TracChangeset for help on using the changeset viewer.