private void WaitSelectDisplay() { ScriptCommandParams.SelectInfo selectInfo = this.scriptEngine.GetSelectInfo(); for (int i = 0; i < selectInfo.displayText.Count; i++) { TutorialMaster.NaviMessage naviMessage = MasterDataMng.Instance().Tutorial.GetNaviMessage(selectInfo.displayText[i]); this.tutorialUI.SelectItem.SetSelectItem(i, naviMessage.message, new Action(base.ResumeScript)); this.tutorialUI.SelectItem.StartDisplay(); } }
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; } } }
public override bool RunScriptCommand() { TutorialMaster.NaviMessage naviMessage = MasterDataMng.Instance().Tutorial.GetNaviMessage(this.titleKey); TutorialMaster.NaviMessage naviMessage2 = MasterDataMng.Instance().Tutorial.GetNaviMessage(this.bodyKey); bool result = true; AlertManager.ShowAlertDialog(delegate(int i) { base.ResumeScriptEngine(); }, naviMessage.message, naviMessage2.message, AlertManager.ButtonActionType.Close, false); return(result); }
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); } }
public TutorialMaster.NaviMessage GetNaviMessage(string id) { TutorialMaster.NaviMessage result = default(TutorialMaster.NaviMessage); try { TutorialNaviMaster tutorialNaviMaster = this.tutorialNaviMasterList.Single((TutorialNaviMaster x) => x.tutorialNaviId == id); result.message = tutorialNaviMaster.message; result.faceId = tutorialNaviMaster.face; } catch { Debug.LogErrorFormat("GetNaviMessage : ID NOT FOUND = {0}", new object[] { id }); } return(result); }
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)); } }
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(); }
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); } } }