private bool NextPageInternal() { if (this.m_actorLines == null) { this.EndDialogueComplete(); return(true); } if (++this.m_curIndex >= this.m_actorLines.Length) { SActorLineNode node = this.m_actorLines[this.m_curIndex - 1]; if (!node.bFadeOut) { this.EndDialogueComplete(); } else { this.m_fadingCoroutine = base.StartCoroutine(this.StartFadingOut()); } return(true); } if (this.bAutoNextPage) { this.m_nextPageProgressTime = 0f; } SActorLineNode node2 = new SActorLineNode { CharCfgId = -1 }; if (this.m_curIndex > 0) { node2 = this.m_actorLines[this.m_curIndex - 1]; if (node2.bFadeOut) { this.m_fadingCoroutine = base.StartCoroutine(this.StartFadingOut()); return(false); } } this.DoNextPageInternal(); return(false); }
private void DoNextPageInternal() { SActorLineNode node = this.m_actorLines[this.m_curIndex]; SActorLineNode preNode = new SActorLineNode { CharCfgId = -1 }; if (this.m_curIndex > 0) { preNode = this.m_actorLines[this.m_curIndex - 1]; } CUIFormScript script = null; if (node.DialogStyle >= 0) { script = this.QueryUiForm(node.DialogStyle); } if ((this.m_curUiForm != script) && (script != null)) { if (this.m_curUiForm != null) { this.m_curUiForm.Hide(enFormHideFlag.HideByCustom, true); if (this.m_curUiFormPortrait != null) { this.m_curUiFormPortrait.Hide(enFormHideFlag.HideByCustom, true); } } this.m_curUiForm = script; if (this.m_curUiForm != null) { this.m_curUiForm.Appear(enFormHideFlag.HideByCustom, true); if ((node.DialogStyle == 0) && (this.m_curUiFormPortrait != null)) { this.m_curUiFormPortrait.Appear(enFormHideFlag.HideByCustom, true); } } } if (this.m_curUiForm != null) { string[] strArray = (node.DialogStyle != 1) ? ImageDialogBgPaths : BlackDialogBgPaths; foreach (string str in strArray) { Transform transform = this.m_curUiForm.gameObject.transform.FindChild(str); if (transform != null) { this.m_bgGoList.Add(transform.gameObject); } } this.m_curUiForm.gameObject.transform.Find("Txt_Dialog").gameObject.GetComponent <Text>().text = node.DialogContent; this.m_curUiForm.gameObject.transform.Find("CharacterName").gameObject.GetComponent <Text>().text = node.DialogTitle; if (node.b3dPortrait) { this.UpdatePortrait3d(true, node, preNode); this.UpdatePortraitImg(false, node, preNode); } else { this.UpdatePortrait3d(false, node, preNode); this.UpdatePortraitImg(true, node, preNode); } } if (node.bFadeIn) { this.m_fadingCoroutine = base.StartCoroutine(this.StartFadingIn()); } else { this.UpdateBgImageAlpha(1f); } }