示例#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
 public override void onShow()
 {
     line3p2.X     = line3p1.X;
     line4p2.Y     = line4p1.Y;
     gameBGOpacity = 0;
     animGlob.FadeIn();
     animItems.FadeIn();
     if (currentFrame != null)
     {
         animFrame.FadeIn();
     }
     currentTip = tip[new Random().Next(tip.Length * 10) % tip.Length];//TODO rm???
     UpdateLevelPackAvalability();
     base.onShow();
 }
示例#3
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();
 }