- Timestamp:
- Jun 20, 2006, 10:19:34 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/src/lib/gui/gl/glgui_widget.cc
r8607 r8608 116 116 this->setVisibility(GLGUI_WIDGET_DEFAULT_VISIBLE); 117 117 118 this->setBorderLeft(15); 118 119 this->setBackgroundTexture("gui_element_background.png"); 119 120 … … 166 167 void GLGuiWidget::setFrontColor(const Color& frontColor, bool instantaniously) 167 168 { 168 /* if (instantaniously) 169 { 170 this->setForegroundColor(frontColor); 171 if (this->_toFrontColor != NULL) 172 { 173 delete this->_toFrontColor; 174 this->_toFrontColor = NULL; 175 } 176 } 177 else if (!this->_toFrontColor) 178 this->_toFrontColor = new Color(frontColor); 179 else 180 *this->_toFrontColor = frontColor; 181 //this->_frontColor = frontColor; 182 //this->updateFrontColor();*/ 169 this->_currentStyle._foreground.setDiffuseColor(frontColor); 170 this->animateBack(); 183 171 }; 184 172
Note: See TracChangeset
for help on using the changeset viewer.