Beispiel #1
0
 public void DisplayChara(int charaType, string faceId, int yFromCenter)
 {
     TutorialThumbnail.ThumbnailType thumbnailType = (charaType != 0) ? TutorialThumbnail.ThumbnailType.MONITOR : TutorialThumbnail.ThumbnailType.BODY;
     this.tutorialUI.Thumbnail.Display(thumbnailType, null, false);
     this.tutorialUI.Thumbnail.SetFace(faceId);
     if (thumbnailType == TutorialThumbnail.ThumbnailType.MONITOR)
     {
         this.tutorialUI.Thumbnail.SetMonitorPosition(yFromCenter);
     }
 }
Beispiel #2
0
 private void SkipDisplayChara()
 {
     ScriptCommandParams.CharaInfo   charaInfo     = this.scriptEngine.GetCharaInfo();
     TutorialThumbnail.ThumbnailType thumbnailType = (charaInfo.type != 0) ? TutorialThumbnail.ThumbnailType.MONITOR : TutorialThumbnail.ThumbnailType.BODY;
     this.tutorialUI.Thumbnail.Display(thumbnailType, null, false);
     this.charaFaceId = charaInfo.faceId;
     if (thumbnailType == TutorialThumbnail.ThumbnailType.MONITOR)
     {
         this.tutorialUI.Thumbnail.SetMonitorPosition(charaInfo.yFromCenter);
     }
 }
Beispiel #3
0
 public void Delete(TutorialThumbnail.ThumbnailType type, Action completed, bool isAnimation = true)
 {
     this.finishedTweenAction = delegate()
     {
         this.isOpened = false;
         if (completed != null)
         {
             completed();
         }
     };
     this.PlayTween(type, false, isAnimation);
 }
Beispiel #4
0
    private void PlayTween(TutorialThumbnail.ThumbnailType type, bool isForward, bool isAnimation)
    {
        UITweener component;

        if (type == TutorialThumbnail.ThumbnailType.BODY)
        {
            component = this.body.GetComponent <TweenAlpha>();
        }
        else
        {
            component = this.monitor.GetComponent <TweenScale>();
        }
        this.isEnabled = isForward;
        component.Play(isForward);
        if (!isAnimation)
        {
            component.tweenFactor = ((!isForward) ? 0f : 1f);
        }
    }
Beispiel #5
0
 private void SuspendCommand()
 {
     if (!this.scriptEngine.GetTextInfo().isWindowText)
     {
         this.tutorialUI.NonFrameText.StartInvisible(0f, null);
     }
     if (this.tutorialUI.MessageWindow.IsOpened)
     {
         this.tutorialUI.MessageWindow.SkipWindowAnimation();
         ScriptCommandParams.TextInfo textInfo    = this.scriptEngine.GetTextInfo();
         TutorialMaster.NaviMessage   naviMessage = MasterDataMng.Instance().Tutorial.GetNaviMessage(textInfo.displayText);
         this.tutorialUI.MessageWindow.SkipDisplayMessage(naviMessage.message);
     }
     if (this.tutorialUI.Thumbnail.IsOpened)
     {
         TutorialThumbnail.ThumbnailType type = (this.scriptEngine.GetCharaInfo().type != 0) ? TutorialThumbnail.ThumbnailType.MONITOR : TutorialThumbnail.ThumbnailType.BODY;
         this.tutorialUI.Thumbnail.SkipWindowAnimation(type);
     }
     this.controlToGame.SuspendShakeBackGround();
 }
Beispiel #6
0
    public void SkipWindowAnimation(TutorialThumbnail.ThumbnailType type)
    {
        UITweener component;

        if (type == TutorialThumbnail.ThumbnailType.BODY)
        {
            component = this.body.GetComponent <TweenAlpha>();
        }
        else
        {
            component = this.monitor.GetComponent <TweenScale>();
        }
        if (0f < component.tweenFactor && component.tweenFactor < 1f)
        {
            if (this.isEnabled)
            {
                component.tweenFactor = 1f;
            }
            else
            {
                component.tweenFactor = 0f;
            }
        }
    }
Beispiel #7
0
 private void SkipInvisibleChara()
 {
     TutorialThumbnail.ThumbnailType type = (this.scriptEngine.GetCharaInfo().type != 0) ? TutorialThumbnail.ThumbnailType.MONITOR : TutorialThumbnail.ThumbnailType.BODY;
     this.tutorialUI.Thumbnail.Delete(type, null, false);
     this.charaFaceId = string.Empty;
 }
Beispiel #8
0
 private void WaitCharaDelete()
 {
     TutorialThumbnail.ThumbnailType type = (this.scriptEngine.GetCharaInfo().type != 0) ? TutorialThumbnail.ThumbnailType.MONITOR : TutorialThumbnail.ThumbnailType.BODY;
     this.tutorialUI.Thumbnail.Delete(type, new Action(base.ResumeScript), true);
 }
Beispiel #9
0
 public void Display(TutorialThumbnail.ThumbnailType type, Action completed, bool isAnimation)
 {
     this.isOpened            = true;
     this.finishedTweenAction = completed;
     this.PlayTween(type, true, isAnimation);
 }