Browse Source

画廊排行榜列表优化

zhaoyang 2 years ago
parent
commit
4944616c43

+ 2 - 2
FGUIProject/assets/ClothingSynthetic/components/SuitListItem.xml

@@ -16,10 +16,10 @@
     <group id="n21_weok" name="n21" xy="389,675" size="110,78"/>
     <group id="n21_weok" name="n21" xy="389,675" size="110,78"/>
     <image id="n16_j539" name="imgLockBg" src="j539m" fileName="images/jbhc_diban_3.png" xy="0,0" group="n18_j539"/>
     <image id="n16_j539" name="imgLockBg" src="j539m" fileName="images/jbhc_diban_3.png" xy="0,0" group="n18_j539"/>
     <image id="n15_j539" name="imgLock" src="j539l" fileName="images/zhuxian_shuoto.png" xy="220,307" group="n18_j539"/>
     <image id="n15_j539" name="imgLock" src="j539l" fileName="images/zhuxian_shuoto.png" xy="220,307" group="n18_j539"/>
-    <image id="n19_weok" name="n19" src="weok2f" fileName="images/jbhc_diban_4.png" xy="31,368" pivot="0.5,0.5" size="449,46" group="n18_j539">
+    <image id="n19_weok" name="n19" src="weok2f" fileName="images/jbhc_diban_4.png" xy="120,368" pivot="0.5,0.5" group="n18_j539">
       <relation target="n17_j539" sidePair="width-width"/>
       <relation target="n17_j539" sidePair="width-width"/>
     </image>
     </image>
-    <text id="n17_j539" name="txtLockDesc" xy="166,369" pivot="0.5,0" size="179,42" group="n18_j539" font="ui://eg2y0ldpweoktkb" fontSize="30" color="#f1e6d9" align="center" autoClearText="true" text="解锁条件说明">
+    <text id="n17_j539" name="txtLockDesc" xy="166,369" pivot="0.5,0" size="179,41" group="n18_j539" font="ui://eg2y0ldpweoktkb" fontSize="30" color="#f1e6d9" align="center" autoClearText="true" text="解锁条件说明">
       <relation target="" sidePair="center-center"/>
       <relation target="" sidePair="center-center"/>
     </text>
     </text>
     <group id="n18_j539" name="groupLock" xy="0,0" size="508,781" advanced="true"/>
     <group id="n18_j539" name="groupLock" xy="0,0" size="508,781" advanced="true"/>

+ 2 - 1
GameClient/Assets/Game/HotUpdate/Views/Poem/PoemGalleryView.cs

@@ -106,7 +106,7 @@ namespace GFGGame
             _ui.m_comFavorites.m_comScroll.m_listRecommend1.itemRenderer = RenderListItem1;
             _ui.m_comFavorites.m_comScroll.m_listRecommend1.itemRenderer = RenderListItem1;
 
 
             _ui.m_comNormal.m_listRank.itemRenderer = RenderListRankItem;
             _ui.m_comNormal.m_listRank.itemRenderer = RenderListRankItem;
-            _ui.m_comNormal.m_listRank.SetVirtual();
+            // _ui.m_comNormal.m_listRank.SetVirtual();
 
 
             _ui.m_comNormal.m_btnShop.onClick.Add(OnBtnShopClick);
             _ui.m_comNormal.m_btnShop.onClick.Add(OnBtnShopClick);
             _ui.m_comNormal.m_btnReward.onClick.Add(OnBtnRewardClick);
             _ui.m_comNormal.m_btnReward.onClick.Add(OnBtnRewardClick);
@@ -444,6 +444,7 @@ namespace GFGGame
         private void UpdateGalleryRankList()
         private void UpdateGalleryRankList()
         {
         {
             if (_tabIndex != TabType.RECOVER || _subtabIndex != RecommendType.RANK) return;
             if (_tabIndex != TabType.RECOVER || _subtabIndex != RecommendType.RANK) return;
+            if (_ui.m_comNormal.m_listRank.numItems > 0) _ui.m_comNormal.m_listRank.ScrollToView(0);
             _ui.m_comNormal.m_listRank.numItems = _galleryDatas.Count;
             _ui.m_comNormal.m_listRank.numItems = _galleryDatas.Count;
             UpdateView();
             UpdateView();
         }
         }