Changeset 10111 in orxonox.OLD for branches/playability/src/util
- Timestamp:
- Dec 19, 2006, 11:32:32 PM (18 years ago)
- Location:
- branches/playability/src/util
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability/src/util/hud.cc
r10092 r10111 23 23 #include "world_entities/weapons/weapon_manager.h" 24 24 #include "glgui_widget.h" 25 #include "glgui_box.h" 25 26 26 27 #include "glgui_inputline.h" … … 63 64 this->subscribeEvent(ES_ALL, SDLK_TAB); 64 65 65 66 this->shipValuesBox = new OrxGui::GLGuiBox(OrxGui::Vertical); 67 this->shipValuesBox->setBackgroundTexture("maps/gui_container_background.png"); 66 68 } 67 69 … … 105 107 { 106 108 this->energyWidget->show(); 107 //this->energyWidget->setBackgroundTexture( "hud_energy_background.png");108 109 this->energyWidget->shiftDir2D(270); 110 //this->energyWidget->setDisplayedName("Electronics") 111 this->shipValuesBox->pack(this->energyWidget); 109 112 /* this->energyWidget->frontMaterial().setDiffuseMap("hud_energy_bar.png"); 110 113 this->energyWidget->frontMaterial().setBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);*/ … … 229 232 } 230 233 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); 236 239 } 237 240 -
branches/playability/src/util/hud.h
r9965 r10111 9 9 #include "element_2d.h" 10 10 #include "event_listener.h" 11 #include "glgui_box.h" 11 12 12 13 … … 62 63 OrxGui::GLGuiWidget* shieldWidget; 63 64 OrxGui::GLGuiWidget* armorWidget; 65 OrxGui::GLGuiBox* shipValuesBox; 64 66 65 67 OrxGui::GLGuiNotifier* notifier;
Note: See TracChangeset
for help on using the changeset viewer.