Index: branches/playability/src/world_entities/elements/glgui_energywidgetvertical.cc
===================================================================
--- branches/playability/src/world_entities/elements/glgui_energywidgetvertical.cc	(revision 10139)
+++ branches/playability/src/world_entities/elements/glgui_energywidgetvertical.cc	(revision 10194)
@@ -19,4 +19,6 @@
 
 #include "multi_type.h"
+#include <iostream>
+#include "math.h"
 
 namespace OrxGui
@@ -33,19 +35,30 @@
     //this->_name.setRelCoor2D(20,0);
     //this->_valueText.setRelCoor2D(,0);
-    this->shiftDir2D(270);
-    this->setOrientation(OrxGui::Horizontal);
-    this->pack(&this->_name);
-    this->pack(&this->_valueText);
-    this->_bar.setParent2D(&this->_valueText);
+    this->setAbsDir2D(270);
+    //std::cout << "absAngle: " << int(this->getAbsDir2D()) << ", relAngle: " << int(this->getRelDir2D()) << '\n';
+    //this->setOrientation(OrxGui::Vertical);
 
-    this->_name.setForegroundColor(Color(1,1,1,.8));
+    //this->pack(&this->_name);
+    //this->pack(&this->_valueText);
+
+    this->_image.setParent2D(this);
+    this->_image.setSize2D(20,20);
+    this->_image.setBackgroundColor(Color(1,1,1,.8));
+    this->_image.setBackgroundTexture("maps/TE2.png");
+    this->_image.setRelCoor2D(borderLeft(), borderTop() + this->_bar.getSizeX2D());
+
+    this->_valueText.setParent2D(this);
+    this->_valueText.setSize2D(100,20);
+    this->_valueText.setRelCoor2D(borderLeft(), borderTop() + this->_bar.getSizeX2D());
     this->_valueText.setChangedTextColor(Color::white);
-    this->_bar.setBackgroundTexture(Texture());
 
     this->setBackgroundTexture(Texture());
-    this->setBackgroundColor(Color(.5,.5,.5,0.5));
+    this->setBackgroundColor(Color(.5,.5,.5,0));
+    this->setSize2D(120,20);
 
     //this->_name.setBackgroundTexture(Texture());
     //this->_valueText.setBackgroundTexture("maps/gui_element_background_2.png");
+
+    this->_bar.setParent2D(&this->_valueText);
     this->_bar.setBackgroundTexture(Texture());
     this->_bar.setBackgroundColor(Color(0,0,0,0));
@@ -53,4 +66,6 @@
     this->_bar.setForegroundColor(Color(.5, .5, .5, 1));
     this->_bar.setChangedValueColor(Color::black);
+    this->_bar.setSize2D(100,20);
+    this->_bar.setRelCoor2D(borderLeft(), 0);
   }
 
@@ -61,11 +76,4 @@
   GLGuiEnergyWidgetVertical::~GLGuiEnergyWidgetVertical ()
   {
-  }
-
-
-  void GLGuiEnergyWidgetVertical::setDisplayedName(const std::string& name)
-  {
-    this->_name.setText(name);
-    this->_bar.setWidgetSize(this->_name.getSize2D());
   }
 
@@ -85,9 +93,10 @@
     this->_bar.setFrontColor(Color(1,1,1,1), true);
     this->_valueText.setText(val.getString());
+    //this->_valueText.setText("asdfas");
   }
 
   void GLGuiEnergyWidgetVertical::resize()
   {
-    GLGuiBox::resize();
+    //GLGuiBox::resize();
   }
 
@@ -95,5 +104,5 @@
   void GLGuiEnergyWidgetVertical::showing()
   {
-    this->_name.show();
+    this->_image.show();
     this->_valueText.show();
     this->_bar.show();
@@ -102,5 +111,5 @@
   void GLGuiEnergyWidgetVertical::hiding()
   {
-    this->_name.hide();
+    this->_image.hide();
     this->_valueText.hide();
     this->_bar.hide();
Index: branches/playability/src/world_entities/elements/glgui_energywidgetvertical.h
===================================================================
--- branches/playability/src/world_entities/elements/glgui_energywidgetvertical.h	(revision 10139)
+++ branches/playability/src/world_entities/elements/glgui_energywidgetvertical.h	(revision 10194)
@@ -10,4 +10,5 @@
 #include "glgui_bar.h"
 #include "glgui_text.h"
+#include "glgui_widget.h"
 
 namespace OrxGui
@@ -15,5 +16,5 @@
 
   //! A class for ...
-  class GLGuiEnergyWidgetVertical : public GLGuiBox
+  class GLGuiEnergyWidgetVertical : public GLGuiWidget
   {
 
@@ -22,9 +23,8 @@
     virtual ~GLGuiEnergyWidgetVertical();
 
-    void setDisplayedName(const std::string& name);
     void setMaximum(float max);
     void setValue(float value);
 
-    inline GLGuiWidget* getNameWidget() {return &this->_name;};
+    inline GLGuiWidget* getImageWidget() {return &this->_image;};
     inline GLGuiWidget* getValueWidget() {return &this->_valueText;};
     inline GLGuiWidget* getBarWidget() {return &this->_bar;};
@@ -36,5 +36,5 @@
 
   private:
-    GLGuiText               _name;
+    GLGuiWidget             _image;
     GLGuiText               _valueText;
     GLGuiBar                _bar;
