Пример #1
0
 void animFrame_onFadeOutFinish(object sender)
 {
     animFrame.onFadeOutFinish -= new Animation.SceneAnimation.FadeEventHandler(animFrame_onFadeOutFinish);
     if (nextFrame != null)
     {
         nextFrame.isVisible = false;
     }
     if (nextFrame != null && nextFrame == GUIEngine.s_levelSelection)
     {
         GUIEngine.s_levelSelection.InitForItemsCount((int)animFrame.Tag);
         UpdateLevelPackAvalability();
     }
     if (currentFrame != null)
     {
         currentFrame.onClose();
     }
     currentFrame = nextFrame;
     nextFrame    = null;
     if (currentFrame != null)
     {
         currentFrame.onShow();
     }
     animFrame = new Animation.MainMenu.FrameAnimation();
     animFrame.Init(this);
     animFrame.FadeIn();
 }
Пример #2
0
 void animFrame_onFadeOutFinish(object sender)
 {
     animFrame.onFadeOutFinish -= new Animation.SceneAnimation.FadeEventHandler(animFrame_onFadeOutFinish);
     if (nextFrame != null)
         nextFrame.isVisible = false;
     if (nextFrame != null && nextFrame == GUIEngine.s_levelSelection)
     {
         GUIEngine.s_levelSelection.InitForItemsCount((int)animFrame.Tag);
         UpdateLevelPackAvalability();
     }
     if (currentFrame != null)
         currentFrame.onClose();
     currentFrame = nextFrame;
     nextFrame = null;
     if (currentFrame != null)
         currentFrame.onShow();
     animFrame = new Animation.MainMenu.FrameAnimation();
     animFrame.Init(this);
     animFrame.FadeIn();
 }