bool GUIButton::loadXMLSettings(const TiXmlElement *element) { if(!XMLArbiter::inspectElementInfo(element, "Button")) return Logger::writeErrorLog("Need a Button node in the xml file"); enableBounce(XMLArbiter::analyzeBooleanAttr(element, "bounce", true)); return GUIAlphaElement::loadXMLSettings(element) && GUIClippedRectangle::loadXMLClippedRectangleInfo(element); }
bool GUIButton::loadXMLSettings(XMLElement *element) { if(!element || element->getName() != "Button") {LOG_PRINT("Need a Button node in the xml file");return false;} XMLElement *child = 0; if(child = element->getChildByName("bounce")) enableBounce((child->getValue() == "true")); return GUIAlphaElement::loadXMLSettings(element) && GUIClippedRectangle::loadXMLClippedRectangleInfo(element); }