Example #1
0
 private void OnFinishedDisplayMessage()
 {
     ScriptCommandParams.TextInfo textInfo = this.scriptEngine.GetTextInfo();
     this.tutorialUI.MessageWindow.SetEnableTapIcon(true, new Action(base.ResumeScript));
     if (0f < textInfo.autoFeedTime)
     {
         this.tutorialUI.MessageWindow.StartAutoFeedCountDown(textInfo.autoFeedTime);
     }
 }
Example #2
0
 private void WaitMessageDisplay()
 {
     ScriptCommandParams.TextInfo textInfo = this.scriptEngine.GetTextInfo();
     if (textInfo.isWindowText)
     {
         TutorialMaster.NaviMessage naviMessage = MasterDataMng.Instance().Tutorial.GetNaviMessage(textInfo.displayText);
         if ("0" != naviMessage.faceId)
         {
             this.tutorialStatus.charaFaceId = naviMessage.faceId;
         }
     }
 }
Example #3
0
 private void SkipDisplayMessage()
 {
     ScriptCommandParams.TextInfo textInfo    = this.scriptEngine.GetTextInfo();
     TutorialMaster.NaviMessage   naviMessage = MasterDataMng.Instance().Tutorial.GetNaviMessage(textInfo.displayText);
     if (textInfo.isWindowText)
     {
         if ("0" != naviMessage.faceId)
         {
             this.charaFaceId = naviMessage.faceId;
         }
         this.tutorialUI.MessageWindow.SkipDisplayMessage(naviMessage.message);
     }
     else
     {
         this.tutorialUI.NonFrameText.SetText(naviMessage.message);
     }
 }
Example #4
0
 private void WaitMessageDisplay()
 {
     ScriptCommandParams.TextInfo textInfo    = this.scriptEngine.GetTextInfo();
     TutorialMaster.NaviMessage   naviMessage = MasterDataMng.Instance().Tutorial.GetNaviMessage(textInfo.displayText);
     if (textInfo.isWindowText)
     {
         if ("0" != naviMessage.faceId)
         {
             this.tutorialUI.Thumbnail.SetFace(naviMessage.faceId);
         }
         this.tutorialUI.MessageWindow.SetMessage(naviMessage.message);
         this.tutorialUI.MessageWindow.StartDisplayMessage(new Action(this.OnFinishedDisplayMessage));
     }
     else
     {
         this.tutorialUI.NonFrameText.SetText(naviMessage.message);
         this.tutorialUI.NonFrameText.StartDisplay(textInfo.fadeTime, new Action(this.OnPushedFadeMessage));
     }
 }
Example #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();
 }
Example #6
0
    public void CreateScreenParts(TutorialCreateRestartScreen createRestartScreen)
    {
        ScriptEngine scriptEngine = this.scriptEngine;

        if (this.tutorialStatus.displayTextWindow)
        {
            ScriptCommandParams.WindowInfo windowInfo = scriptEngine.GetWindowInfo();
            createRestartScreen.OpenMessageWindow(windowInfo.xFromCenter, windowInfo.yFromCenter);
            ScriptCommandParams.TextInfo textInfo    = scriptEngine.GetTextInfo();
            TutorialMaster.NaviMessage   naviMessage = MasterDataMng.Instance().Tutorial.GetNaviMessage(textInfo.displayText);
            this.tutorialUI.MessageWindow.SetDisplayMessage(naviMessage.message);
        }
        if (this.tutorialStatus.displayNonFrameText)
        {
            this.tutorialUI.NonFrameText.Open(NGUIText.Alignment.Center);
        }
        if (this.tutorialStatus.displayChara)
        {
            ScriptCommandParams.CharaInfo charaInfo = scriptEngine.GetCharaInfo();
            createRestartScreen.DisplayChara(charaInfo.type, this.tutorialStatus.charaFaceId, charaInfo.yFromCenter);
        }
        if (this.scriptEngine.GetMaskEnableFlag())
        {
            createRestartScreen.DisplayScreenMask();
        }
        if (this.tutorialStatus.displayTargetPopUI)
        {
            ScriptCommandParams.UIInfo uiInfo = this.scriptEngine.GetUiInfo();
            createRestartScreen.DisplayUIPop(uiInfo.type, uiInfo.arrowPosition, this.controlToGame);
        }
        if (this.tutorialStatus.farmCameraMove)
        {
            ScriptCommandParams.FarmCameraMoveInfo farmCameraMoveInfo = this.scriptEngine.GetFarmCameraMoveInfo();
            createRestartScreen.SetFarmCameraPosition(farmCameraMoveInfo.posGridX, farmCameraMoveInfo.posGridY, this.controlToGame);
        }
        if (this.tutorialStatus.shakeBackGround)
        {
            ScriptCommandParams.ShakeInfo shakeInfo = this.scriptEngine.GetShakeInfo();
            createRestartScreen.ShakeBackGround(shakeInfo.intensity, shakeInfo.decay, this.controlToGame);
        }
        if (0 < this.tutorialStatus.farmBuildCompleteList.Count)
        {
            createRestartScreen.FacilityBuildComplete(this.tutorialStatus.farmBuildCompleteList, this.controlToGame);
        }
        if (this.scriptEngine.GetSelectFacilityInfo().selected)
        {
            createRestartScreen.SetSelectFarmFacility(this.scriptEngine.GetSelectFacilityInfo().id, this.controlToGame);
        }
        if (this.scriptEngine.GetTargetFacilityInfo().popEnable)
        {
            ScriptCommandParams.TargetFacilityInfo targetFacilityInfo = this.scriptEngine.GetTargetFacilityInfo();
            createRestartScreen.SetTargetFarmFacility(targetFacilityInfo.id, targetFacilityInfo.popEnable, this.controlToGame, targetFacilityInfo.adjustY);
        }
        if (this.tutorialStatus.displayDigimon)
        {
            ScriptCommandParams.DigimonInfo digimonInfo = this.scriptEngine.GetDigimonInfo();
            createRestartScreen.DisplayDigimon(digimonInfo.monsterGroupID, digimonInfo.scale, digimonInfo.adjustPosition, this.controlToGame);
        }
        if (this.tutorialStatus.digimonChange)
        {
            createRestartScreen.LocalDigimonEvolution(this.controlToGame);
        }
        if (this.tutorialStatus.displaySkipButton)
        {
            this.tutorialUI.SetSkipButton(true, null);
        }
        if (this.scriptEngine.GetScreenEffectInfo().start)
        {
            createRestartScreen.DisplayScreenEffect(this.scriptEngine.GetScreenEffectInfo().type, this.controlToGame);
        }
        if (this.tutorialStatus.bgmCommandEnable)
        {
            ScriptCommandParams.BgmInfo bgmInfo = this.tutorialStatus.bgmInfo;
            this.controlToGame.SetBgm(bgmInfo.fileName, bgmInfo.play, bgmInfo.fadeTime);
        }
        if (0 < this.tutorialStatus.loopSeInfo.Count)
        {
            for (int i = 0; i < this.tutorialStatus.loopSeInfo.Count; i++)
            {
                ScriptCommandParams.SeInfo seInfo = this.tutorialStatus.loopSeInfo[i];
                this.controlToGame.SetSe(seInfo.fileName, seInfo.play, seInfo.fadeTime, seInfo.loop, seInfo.pitch);
            }
        }
    }
Example #7
0
 private void OnPushedFadeMessage()
 {
     ScriptCommandParams.TextInfo textInfo = this.scriptEngine.GetTextInfo();
     this.tutorialUI.NonFrameText.StartInvisible(textInfo.fadeTime, new Action(base.ResumeScript));
 }