Changeset 5395 in orxonox.OLD for trunk/src/lib/gui/gl_gui/glgui_button.cc
- Timestamp:
- Oct 17, 2005, 10:14:14 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/gui/gl_gui/glgui_button.cc
r5363 r5395 18 18 #include "glgui_button.h" 19 19 20 #include "text.h" 21 20 22 using namespace std; 21 23 … … 35 37 GLGuiButton::~GLGuiButton() 36 38 { 37 39 /* this does not have to be done, since the Label is a child, 40 * and will be deleted by Element2D's deletion Process 41 * delete this->label; 42 */ 38 43 } 39 44 … … 45 50 this->setClassID(CL_GLGUI_BUTTON, "GLGuiButton"); 46 51 52 this->label = new Text(); 53 this->label->setParent2D(this); 47 54 } 55 56 void GLGuiButton::setLabel(const char* label) 57 { 58 this->label->setText(label); 59 } 60 48 61 49 62 /**
Note: See TracChangeset
for help on using the changeset viewer.