+ if (!leadInDone) {
+ leadInDone = true;
+ timer = GraphicsTimers().StartCountdown(duration);
+ } else if (!fadeDone) {
+ fadeDone = true;
+ if (leadOut > 0) {
+ timer = GraphicsTimers().StartCountdown(leadOut);
+ } else {
+ ctrl->PopState();
+ }
+ } else {
+ ctrl->PopState();
+ }