PoemPhotoShareView.cs 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. using ET;
  2. using FairyGUI;
  3. using UI.Poem;
  4. using UnityEngine;
  5. namespace GFGGame
  6. {
  7. public class PoemPhotoShareView : BaseWindow
  8. {
  9. private UI_PoemPhotoShareUI _ui;
  10. public override void Dispose()
  11. {
  12. if (_ui != null)
  13. {
  14. _ui.Dispose();
  15. _ui = null;
  16. }
  17. base.Dispose();
  18. }
  19. protected override void OnInit()
  20. {
  21. base.OnInit();
  22. packageName = UI_PoemPhotoShareUI.PACKAGE_NAME;
  23. _ui = UI_PoemPhotoShareUI.Create();
  24. this.viewCom = _ui.target;
  25. isfullScreen = true;
  26. _ui.m_loaBg.url = ResPathUtil.GetBgImgPath("gzs_bjbj");
  27. _ui.m_btnback.onClick.Add(OnBtnBackClick);
  28. _ui.m_btnSave.onClick.Add(OnBtnSaveClick);
  29. _ui.m_btnShare.onClick.Add(OnBtnShareClick);
  30. }
  31. protected override void AddEventListener()
  32. {
  33. base.AddEventListener();
  34. }
  35. protected override void OnShown()
  36. {
  37. base.OnShown();
  38. }
  39. protected override void OnHide()
  40. {
  41. base.OnHide();
  42. }
  43. protected override void RemoveEventListener()
  44. {
  45. base.RemoveEventListener();
  46. }
  47. private void OnBtnBackClick()
  48. {
  49. ViewManager.GoBackFrom(typeof(PoemPhotoShareView).FullName);
  50. }
  51. private void OnBtnSaveClick()
  52. {
  53. // Texture2D tex = this.viewData as Texture2D;
  54. // PoemPhotoDataManager.Instance.SavePicturoToLocal(tex);
  55. }
  56. private void OnBtnShareClick()
  57. {
  58. }
  59. }
  60. }