Beispiel #1
0
bool ofxFadeEffect::settings::deserialize( ofXml X )
{
	ofParameterGroup G;
	G.setName("fxShake_Settings");

	X.deserialize(G);
	bool bSuc = X.exists(G.getName());
	if(bSuc)
	{
		alphaFrom = G.getInt("alphaFrom");
		alphaTo = G.getInt("alphaTo");
		time = G.getFloat("time");
		delay = G.getFloat("delay");
	}

	return bSuc;	
}
Beispiel #2
0
bool ofxImageThing::settings::deserialize( ofXml X )
{
	ofParameterGroup G;
	G.setName("ofxImageThing_Settings");

	X.deserialize(G);
	bool bSuc = X.exists(G.getName());
	if(bSuc)
	{
		imgPath= G.getString("imgPath");
		imgColor = G.getColor("imgColor");
		width = G.getFloat("width");
		height = G.getFloat("height");
		imgAlpha = G.getFloat("imgAlpha");
	}

	return bSuc;	
}
Beispiel #3
0
 Status::Status( ofXml& X )
 {
   X.deserialize(S);
 }