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); } }
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); } }
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); }
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); } }
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 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; } } }
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; }
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); }
public void Display(TutorialThumbnail.ThumbnailType type, Action completed, bool isAnimation) { this.isOpened = true; this.finishedTweenAction = completed; this.PlayTween(type, true, isAnimation); }