| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 | 
							- using FairyGUI;
 
- using UI.Poem;
 
- namespace GFGGame
 
- {
 
-     public class PoemView : BaseWindow
 
-     {
 
-         private UI_PoemUI _ui;
 
-         public override void Dispose()
 
-         {
 
-             if (_ui != null)
 
-             {
 
-                 _ui.Dispose();
 
-                 _ui = null;
 
-             }
 
-             base.Dispose();
 
-         }
 
-         protected override void OnInit()
 
-         {
 
-             base.OnInit();
 
-             packageName = UI_PoemUI.PACKAGE_NAME;
 
-             _ui = UI_PoemUI.Create();
 
-             this.viewCom = _ui.target;
 
-             isfullScreen = true;
 
-             isReturnView = true;
 
-             _ui.m_loaBg.url = ResPathUtil.GetBgImgPath("bg_wss");
 
-             _ui.m_btnback.onClick.Add(OnBtnBackClick);
 
-             _ui.m_comphoto.target.onClick.Add(OnComPhotoClick);
 
-             _ui.m_comGallery.target.onClick.Add(OnComGalleryClick);
 
-         }
 
-         protected override void AddEventListener()
 
-         {
 
-             base.AddEventListener();
 
-         }
 
-         protected override void OnShown()
 
-         {
 
-             base.OnShown();
 
-             bool isPhotoOpen = FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(PoemPhotoView).Name, false);
 
-             bool isgalleryOpen = FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(PoemGalleryView).Name, false);
 
-             _ui.m_comphoto.m_c1.selectedIndex = isPhotoOpen ? 1 : 0;
 
-             _ui.m_comGallery.m_c1.selectedIndex = isgalleryOpen ? 1 : 0;
 
-             if (isPhotoOpen && isgalleryOpen)
 
-             {
 
-                 Timers.inst.AddUpdate(CheckGuide);
 
-             }
 
-         }
 
-         protected override void OnHide()
 
-         {
 
-             base.OnHide();
 
-             Timers.inst.Remove(CheckGuide);
 
-         }
 
-         protected override void RemoveEventListener()
 
-         {
 
-             base.RemoveEventListener();
 
-         }
 
-         private void OnBtnBackClick()
 
-         {
 
-             ViewManager.GoBackFrom(typeof(PoemView).FullName);
 
-         }
 
-         private void OnComPhotoClick()
 
-         {
 
-             ViewManager.Show<PoemPhotoView>();
 
-         }
 
-         private void OnComGalleryClick()
 
-         {
 
-             ViewManager.Show<PoemGalleryView>();
 
-         }
 
-         private void CheckGuide(object param)
 
-         {
 
-             if (GuideDataManager.IsGuideFinish(ConstGuideId.POEM) <= 0)
 
-             {
 
-                 UpdateToCheckGuide(null);
 
-             }
 
-             else
 
-             {
 
-                 Timers.inst.Remove(CheckGuide);
 
-             }
 
-         }
 
-         protected override void UpdateToCheckGuide(object param)
 
-         {
 
-             if (!ViewManager.CheckIsTopView(this.viewCom)) return;
 
-             GuideController.TryGuide(_ui.m_comphoto.target, ConstGuideId.POEM, 1, "在“拍照”中保存的图片都会保存到这里。");
 
-             //GuideController.TryGuide(_ui.m_comGallery.target, ConstGuideId.POEM, 3, "根据主题,上传你精心搭配的服饰,可获得玩家的欣赏点赞哦~~");
 
-             GuideController.TryCompleteGuide(ConstGuideId.POEM, 3);
 
-         }
 
-     }
 
- }
 
 
  |