21 lines
		
	
	
		
			353 B
		
	
	
	
		
			C++
		
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			353 B
		
	
	
	
		
			C++
		
	
	
	
| #include "..\e2daction.h"
 | |
| #include "..\e2dnode.h"
 | |
| 
 | |
| 
 | |
| e2d::OpacityTo::OpacityTo(double duration, double opacity)
 | |
| 	: OpacityBy(duration, 0)
 | |
| {
 | |
| 	_endVal = opacity;
 | |
| }
 | |
| 
 | |
| e2d::OpacityTo * e2d::OpacityTo::clone() const
 | |
| {
 | |
| 	return GC::create<OpacityTo>(_duration, _endVal);
 | |
| }
 | |
| 
 | |
| void e2d::OpacityTo::_init()
 | |
| {
 | |
| 	OpacityBy::_init();
 | |
| 	_deltaVal = _endVal - _startVal;
 | |
| }
 |