SystemNoticeView.cs 891 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using FairyGUI;
  2. using UI.Login;
  3. namespace GFGGame
  4. {
  5. public class SystemNoticeView : BaseWindow
  6. {
  7. private UI_NoticeUI _ui;
  8. public override void Dispose()
  9. {
  10. base.Dispose();
  11. }
  12. protected override void OnInit()
  13. {
  14. base.OnInit();
  15. _ui = UI_NoticeUI.Create();
  16. this.viewCom = _ui.target;
  17. this.viewCom.Center();
  18. this.modal = true;
  19. }
  20. protected override void OnShown()
  21. {
  22. base.OnShown();
  23. string title = (this.viewData as object[])[0].ToString();
  24. string content = (this.viewData as object[])[1].ToString();
  25. _ui.m_txtTitle.text = title;
  26. _ui.m_comContent.m_txtContent.text = content;
  27. }
  28. protected override void OnHide()
  29. {
  30. base.OnHide();
  31. }
  32. }
  33. }