- [self setPivot:0.0];
- _effectProgress = 1.0;
- [_window setAlphaValue:1.0];
- [_window orderFront:self];
- _effectTimer = [NSTimer scheduledTimerWithTimeInterval:(1.0 / EFFECT_FPS)
- target:self
- selector:@selector(vanishStep)
- userInfo:nil
- repeats:YES];
+ float interPivot = 0.0;
+ [_window setEffectProgress:([_window effectProgress] + _effectSpeed)];
+ [_window setEffectProgress:( ([_window effectProgress] < 1.0) ? [_window effectProgress] : 1.0)];
+ interPivot = (( sin(([_window effectProgress] * pi) - (pi / 2)) + 1 ) / 2);
+ [self setPivot:((interPivot * 45) + 315)];
+ [_window setAlphaValue:interPivot];
+
+ if ( [_window effectProgress] >= 1.0 ) {
+ [self appearFinish];
+ }