12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- 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();
- }
- }
- }
|