|
@@ -31,7 +31,7 @@ namespace GFGGame
|
|
|
this.viewCom = _ui.target;
|
|
|
isfullScreen = true;
|
|
|
isReturnView = true;
|
|
|
- _ui.m_loaBg.url = ResPathUtil.GetBgImgPath("xc_bjbj");
|
|
|
+ _ui.m_loaBg.url = ResPathUtil.GetBgImgPath("tjbg");
|
|
|
|
|
|
_ui.m_list.SetVirtual();
|
|
|
_ui.m_list.itemRenderer = RenderListItem;
|
|
@@ -45,7 +45,7 @@ namespace GFGGame
|
|
|
_ui.m_btnConfirmDelete.target.onClick.Add(OnBtnConfirmDeleteClick);
|
|
|
_ui.m_c1.onChanged.Add(OnBtnTabChange);
|
|
|
|
|
|
-
|
|
|
+ InitTypeList();
|
|
|
}
|
|
|
protected override void AddEventListener()
|
|
|
{
|
|
@@ -56,7 +56,11 @@ namespace GFGGame
|
|
|
protected override void OnShown()
|
|
|
{
|
|
|
base.OnShown();
|
|
|
- _ui.m_c1.selectedIndex = (this.viewData == null) ? (int)PictureSourceType.PersonalAlbum : (int)this.viewData;
|
|
|
+ if(this.viewData != null)
|
|
|
+ {
|
|
|
+ _ui.m_c1.selectedIndex = (int)this.viewData;
|
|
|
+ }
|
|
|
+ //_ui.m_c1.selectedIndex = (this.viewData == null) ? (int)PictureSourceType.PersonalAlbum : (int)this.viewData;
|
|
|
OnBtnTabChange();
|
|
|
// UpdateView();
|
|
|
Timers.inst.AddUpdate(CheckGuide);
|
|
@@ -150,8 +154,11 @@ namespace GFGGame
|
|
|
}
|
|
|
loaIcon.texture = _photoInfos[index].Ntexture;
|
|
|
|
|
|
- item.m_txtTime.text = TimeUtil.FormattingTime1(_photoInfos[index].CreationTime);
|
|
|
- item.m_txtTime.visible = false;
|
|
|
+ string[] timeStr = TimeUtil.FormattingTime1(_photoInfos[index].CreationTime).Split(' ');
|
|
|
+ item.m_txtTime.text = timeStr[0];
|
|
|
+ item.m_txtTimeDetail.text = timeStr[1];
|
|
|
+
|
|
|
+ //item.m_txtTime.visible = false;
|
|
|
item.m_btnLock.m_c1.selectedIndex = _photoInfos[index].LockingStatus ? 1 : 0;
|
|
|
item.m_btnUp.m_c1.selectedIndex = _photoInfos[index].ToppingStatus ? 1 : 0;
|
|
|
if (item.m_btnLock.target.data == null)
|
|
@@ -343,5 +350,18 @@ namespace GFGGame
|
|
|
if (!ViewManager.CheckIsTopView(this.viewCom)) return;
|
|
|
GuideController.TryGuide(_ui.m_btnback, ConstGuideId.POEM, 2, "");
|
|
|
}
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 初始化分类菜单文本,点击和未点击是两种样式,需要统一文字
|
|
|
+ /// </summary>
|
|
|
+ private void InitTypeList()
|
|
|
+ {
|
|
|
+ for(int i = 0; i < _ui.m_typeList.numChildren; i++)
|
|
|
+ {
|
|
|
+ UI_Button6 button6 = UI_Button6.Proxy(_ui.m_typeList.GetChildAt(i));
|
|
|
+ button6.m_title1.text = button6.target.title;
|
|
|
+ UI_Button6.ProxyEnd();
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|