12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- using UnityEngine;
- using FairyGUI;
- using UI.Notice;
- namespace GFGGame
- {
- public class NoticeSystemShowView : BaseWindow
- {
- private UI_NoticeSystemShowUI _ui;
- public override void Dispose()
- {
- base.Dispose();
- }
- protected override void Init()
- {
- base.Init();
- packageName = UI_NoticeSystemShowUI.PACKAGE_NAME;
- _ui = UI_NoticeSystemShowUI.Create();
- this.viewCom = _ui.target;
- isfullScreen = true;
- this.clickBlankToClose = false;
- }
- protected override void OnInit()
- {
- base.OnInit();
- _ui.m_btnBack.onClick.Add(this.OnHide);
- }
- protected override void OnShown()
- {
- base.OnShown();
- NoticeInfo noticeInfo = this.viewData as NoticeInfo;
- _ui.m_txtTitle.text = noticeInfo.title;
- _ui.m_ComContent.m_txtContent.text = noticeInfo.content;
- }
- protected override void OnHide()
- {
- base.OnHide();
- ViewManager.GoBackFrom(typeof(NoticeSystemShowView).Name);
- }
- }
- }
|