|
@@ -31,11 +31,11 @@ namespace GFGGame
|
|
|
_ui.m_btnback.onClick.Add(OnBtnBackClick);
|
|
|
_ui.m_comphoto.target.onClick.Add(OnComPhotoClick);
|
|
|
_ui.m_comGallery.target.onClick.Add(OnComGalleryClick);
|
|
|
+ _ui.m_TimeTracing.target.onClick.Add(OnTimeTracingClick);
|
|
|
}
|
|
|
protected override void AddEventListener()
|
|
|
{
|
|
|
base.AddEventListener();
|
|
|
-
|
|
|
}
|
|
|
protected override void OnShown()
|
|
|
{
|
|
@@ -43,6 +43,11 @@ namespace GFGGame
|
|
|
|
|
|
bool isPhotoOpen = FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(PoemPhotoView).Name, false);
|
|
|
bool isgalleryOpen = FunctionOpenDataManager.Instance.CheckIsFunOpenById(typeof(PoemGalleryView).Name, false);
|
|
|
+ _ui.m_TimeTracing.target.visible = ActivityDataManager.Instance.GetCurOpenActiveByType(21) == 0 ? false : true;
|
|
|
+ if (_ui.m_TimeTracing.target.visible == true)
|
|
|
+ {
|
|
|
+ RedDotController.Instance.SetComRedDot(_ui.m_TimeTracing.target, TimeTracingDataManager.Instance.GetLevelRewardStatus() || TimeTracingDataManager.Instance.GetAllChapterReward());
|
|
|
+ }
|
|
|
_ui.m_comphoto.m_c1.selectedIndex = isPhotoOpen ? 1 : 0;
|
|
|
_ui.m_comGallery.m_c1.selectedIndex = isgalleryOpen ? 1 : 0;
|
|
|
if (isPhotoOpen && isgalleryOpen)
|
|
@@ -75,6 +80,10 @@ namespace GFGGame
|
|
|
{
|
|
|
ViewManager.Show<PoemGalleryView>();
|
|
|
}
|
|
|
+ private void OnTimeTracingClick()
|
|
|
+ {
|
|
|
+ ViewManager.Show<TimeTracingShowView>();
|
|
|
+ }
|
|
|
|
|
|
private void CheckGuide(object param)
|
|
|
{
|