bool GUIAlphaElement::loadXMLSettings(const TiXmlElement *element) { if(!element) return false; setAlphaFadeScale(XMLArbiter::fillComponents1f(element, "alphaFadeScale", alphaFadeScale)); setMinAlpha(XMLArbiter::fillComponents1f(element, "minAlpha", minAlpha)); for(const TiXmlElement *child = element->FirstChildElement(); child; child = child->NextSiblingElement() ) { const char * value = child->Value(); if(value) { if(!strcmp(value, "Color")) XMLArbiter::fillComponents4f(child, color); if(!strcmp(value, "Text")) label.loadXMLSettings(child); } } setColor(color.x, color.y, color.z); return GUIRectangle::loadXMLSettings(element); }
void ofxRParticlePathRenderer::setup() { bAllocatedMinAlpha = true; minAlpha = new float(); setMinAlpha(1.0); bAllocatedLineWidth = true; lineWidth = new float(); setLineWidth(1.0); }