using FairyGUI; using UI.Main; using System.Collections; namespace GFGGame { public class StoryLookBackView : BaseWindow { private UI_StoryLookBackUI _ui; protected override void OnInit() { base.OnInit(); _ui = UI_StoryLookBackUI.Create(); this.viewCom = _ui.target; this.isfullScreen = true; this.modal = true; this.clickBlankToClose = false; _ui.m_btnBack.onClick.Add(this.Hide); } protected override void OnShown() { base.OnShown(); _ui.m_content.m_txtContent.text = ""; ArrayList dialogRead = (ArrayList)viewData; if(dialogRead != null) { string content = ""; foreach(string words in dialogRead) { content += words + "\n"; } _ui.m_content.m_txtContent.text = content; _ui.m_content.m_txtContent.height = _ui.m_content.m_txtContent.textHeight; } } protected override void OnHide() { base.OnHide(); } } }