void Jewel::UnSelect()
{
	if (state != jsSelected)
		return;

	state = jsNormal;
	setRotation(0);
	setPosition(old_position);
	removeTweens();
}
Example #2
0
//--------------------------------------------------------------
// add a tween in seconds, pass in float for delay and duration //
void Tweenzor::add(float& property, float begin, float end, float delay, float duration, int easeType, float p, float a) {
	removeTweens(property );
	__instance->_tweens.push_back( new Tween(&property, begin, end, delay, duration, easeType, p, a ) );
}
Example #3
0
//--------------------------------------------------------------
void Tweenzor::add(vector <TweenObject> properties, float delay, float duration, int easeType, float p, float a) {
	for (int i = 0; i < properties.size(); i++) {
		removeTweens( *properties[i]._property );
		__instance->_tweens.push_back( new Tween( properties[i]._property, properties[i]._begin, properties[i]._end, delay, duration, easeType, p, a ) );
	}
}
Example #4
0
//--------------------------------------------------------------
void Tweenzor::add(Tween& tween) {
	removeTweens(tween.getProperty() );
	__instance->_tweens.push_back(&tween );
}