Changeset 10111 in orxonox.OLD for branches/playability
- Timestamp:
- Dec 19, 2006, 11:32:32 PM (18 years ago)
- Location:
- branches/playability/src
- Files:
-
- 3 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; -
branches/playability/src/world_entities/elements/glgui_energywidgetvertical.cc
r10107 r10111 32 32 33 33 this->_bar.setSize2D(100, 30); 34 this->_name.setRelCoor2D(20,0); 35 this->_valueText.setRelCoor2D(22,0); 36 34 37 this->pack(&this->_name); 35 38 this->pack(&this->_valueText); … … 38 41 this->_name.setForegroundColor(Color(1,1,1,.8)); 39 42 this->_valueText.setChangedTextColor(Color::white); 43 this->_bar.setBackgroundTexture(Texture()); 40 44 41 //this->setBackgroundTexture("maps/gui_element_background_2.png");42 this->setBackgroundColor(Color(.5,.5,.5, 1));45 this->setBackgroundTexture(Texture()); 46 this->setBackgroundColor(Color(.5,.5,.5,0)); 43 47 44 48 //this->_name.setBackgroundTexture(Texture());
Note: See TracChangeset
for help on using the changeset viewer.