Esempio n. 1
0
	void LabelView::ParseFromXML(XMLNode &node)
	{
		View::ParseFromXML(node);

		this->SetText(node.GetAttributeString("text"));
		this->SetTextColor(Color::FromHexString(node.GetAttributeString("text_color")));
	}
Esempio n. 2
0
	void LinearLayout::ParseFromXML(XMLNode &node)
	{
		View::ParseFromXML(node);

		const std::string &orientation = node.GetAttributeString("orientation");
		if (orientation == "horizontal") {
			mOrientation = LinearLayoutHorizontal;
		}
		else {
			mOrientation = LinearLayoutVertical;
		}
	}