|
@@ -112,9 +112,17 @@ namespace GFGGame
|
|
|
long pictureId = RoleDataManager.photoDatas[index];
|
|
|
PoemPhotoData poemPhotoData = pictureId == 0 ? null : PoemPhotoDataManager.Instance.GetPersonalPhotoDataById(pictureId);
|
|
|
UI_ListPhotoItem item = UI_ListPhotoItem.Proxy(obj);
|
|
|
+ item.target.data = index;
|
|
|
|
|
|
+ item.m_imgNone.visible = poemPhotoData == null;
|
|
|
+ item.m_grpLock.visible = false;
|
|
|
+ if (RoleInfoManager.GetPosType(index) == MonthCardType.Gold && !RoleDataManager.CheckIsMonthCardOpenByType(MonthCardType.Gold)
|
|
|
+ || RoleInfoManager.GetPosType(index) == MonthCardType.BlackGold && !RoleDataManager.CheckIsMonthCardOpenByType(MonthCardType.BlackGold))
|
|
|
+ {
|
|
|
+ item.m_grpLock.visible = true;
|
|
|
+ return;
|
|
|
+ }
|
|
|
item.m_comPhoto.m_loaPhoto.texture = poemPhotoData == null ? null : poemPhotoData.Ntexture;
|
|
|
- item.target.data = index;
|
|
|
UI_ListPhotoItem.ProxyEnd();
|
|
|
}
|
|
|
|
|
@@ -122,6 +130,17 @@ namespace GFGGame
|
|
|
{
|
|
|
GObject obj = context.data as GObject;
|
|
|
int index = (int)obj.data;
|
|
|
+ if (RoleInfoManager.GetPosType(index) == MonthCardType.Gold && !RoleDataManager.CheckIsMonthCardOpenByType(MonthCardType.Gold))
|
|
|
+ {
|
|
|
+ PromptController.Instance.ShowFloatTextPrompt("金卡开启");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if (RoleInfoManager.GetPosType(index) == MonthCardType.BlackGold && !RoleDataManager.CheckIsMonthCardOpenByType(MonthCardType.BlackGold))
|
|
|
+ {
|
|
|
+ PromptController.Instance.ShowFloatTextPrompt("黑金卡开启");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
ViewManager.Show<PersonalPhotoView>(index, new object[] { typeof(RoleInfoView).FullName, this.viewData });
|
|
|
this.Hide();
|
|
|
}
|