12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- using ET;
- using FairyGUI;
- using UI.Poem;
- using UnityEngine;
- namespace GFGGame
- {
- public class PoemPhotoShareView : BaseWindow
- {
- private UI_PoemPhotoShareUI _ui;
- public override void Dispose()
- {
- if (_ui != null)
- {
- _ui.Dispose();
- _ui = null;
- }
- base.Dispose();
- }
- protected override void OnInit()
- {
- base.OnInit();
- packageName = UI_PoemPhotoShareUI.PACKAGE_NAME;
- _ui = UI_PoemPhotoShareUI.Create();
- this.viewCom = _ui.target;
- isfullScreen = true;
- _ui.m_loaBg.url = ResPathUtil.GetBgImgPath("gzs_bjbj");
- _ui.m_btnback.onClick.Add(OnBtnBackClick);
- _ui.m_btnSave.onClick.Add(OnBtnSaveClick);
- _ui.m_btnShare.onClick.Add(OnBtnShareClick);
- }
- protected override void AddEventListener()
- {
- base.AddEventListener();
- }
- protected override void OnShown()
- {
- base.OnShown();
- }
- protected override void OnHide()
- {
- base.OnHide();
- }
- protected override void RemoveEventListener()
- {
- base.RemoveEventListener();
- }
- private void OnBtnBackClick()
- {
- ViewManager.GoBackFrom(typeof(PoemPhotoShareView).FullName);
- }
- private void OnBtnSaveClick()
- {
- // Texture2D tex = this.viewData as Texture2D;
- // PoemPhotoDataManager.Instance.SavePicturoToLocal(tex);
- }
- private void OnBtnShareClick()
- {
- }
- }
- }
|