|
@@ -62,7 +62,7 @@ namespace GFGGame
|
|
|
List<PoemPhotoData> photoInfos = (this.viewData as object[])[1] as List<PoemPhotoData>;
|
|
|
_photoInfos = new List<PoemPhotoData>(photoInfos.ToArray());
|
|
|
|
|
|
- _sourceType = (int)(this.viewData as object[])[2];
|
|
|
+ _sourceType = (int)(this.viewData as object[])[2];
|
|
|
_ui.m_c1.selectedIndex = _sourceType;
|
|
|
if (_sourceType == (int)PictureSourceType.PersonalAlbum)
|
|
|
{
|
|
@@ -97,8 +97,8 @@ namespace GFGGame
|
|
|
}
|
|
|
private void UpdateView(bool ani = false)
|
|
|
{
|
|
|
- _ui.m_btnLeft.enabled = _curIndex > 0;
|
|
|
- _ui.m_btnRight.enabled = _curIndex < _list.numItems - 1;
|
|
|
+ _ui.m_btnLeft.grayed = _curIndex <= 0;
|
|
|
+ _ui.m_btnRight.grayed = _curIndex >= _list.numItems - 1;
|
|
|
_ui.m_txtTime.text = TimeUtil.FormattingTime1(_photoInfos[_curIndex].CreationTime);
|
|
|
_ui.m_btnLock.m_c1.selectedIndex = _photoInfos[_curIndex].LockingStatus ? 1 : 0;
|
|
|
_ui.m_btnUp.m_c1.selectedIndex = _photoInfos[_curIndex].ToppingStatus ? 1 : 0;
|
|
@@ -131,13 +131,13 @@ namespace GFGGame
|
|
|
{
|
|
|
UI_ComPostcard item = UI_ComPostcard.Proxy(obj);
|
|
|
|
|
|
- PoemPhotoData photoData = _photoInfos[_curIndex];
|
|
|
+ PoemPhotoData photoData = _photoInfos[index];
|
|
|
TravelLoactionCfg loactionCfg = TravelLoactionCfgArray.Instance.GetCfg(photoData.TravelLocationId);
|
|
|
|
|
|
item.m_comTravel.m_loaBg.url = ResPathUtil.GetTravelBgPath(loactionCfg.res);
|
|
|
item.m_txtLocationName.text = loactionCfg.name;
|
|
|
item.m_txtTime.text = TimeUtil.FormattingTime2(photoData.CreationTime);
|
|
|
-
|
|
|
+ item.m_comTravel.m_loaRole.url = "";
|
|
|
if (photoData.TravelSuitId > 0)
|
|
|
{
|
|
|
TravelSuitCfg travelSuitCfg = TravelSuitCfgArray.Instance.GetCfg(photoData.TravelSuitId);
|