zhaoyang 3 ani în urmă
părinte
comite
545955263e

+ 1 - 1
FGUIProject/assets/DressUp/components/PartsListItem.xml

@@ -12,6 +12,6 @@
     <loader id="n5_8xpg" name="ScoreType" xy="19,125" size="50,50" touchable="false" url="ui://eg2y0ldp842s6h" fill="scale"/>
     <text id="n6_8xpg" name="txtScore" xy="66,128" pivot="0.5,0" size="77,41" fontSize="30" color="#fcf7e6" align="center" strokeColor="#a7854a" strokeSize="2" autoClearText="true" text="3500"/>
     <image id="n8_pjip" name="imgNeed" src="pjip2z" fileName="images/hz_bcbc_1.png" xy="2,63"/>
-    <image id="n10_ovm4" name="imgNew" src="pzq19p" fileName="imagesExport/cj_hd_xin.png" pkg="eg2y0ldp" xy="142,107" alpha="0"/>
+    <image id="n10_ovm4" name="imgNew" src="pzq19p" fileName="imagesExport/cj_hd_xin.png" pkg="eg2y0ldp" xy="142,107"/>
   </displayList>
 </component>

+ 1 - 1
FGUIProject/assets/DressUp/components/TypeItem.xml

@@ -3,6 +3,6 @@
   <displayList>
     <loader id="n0_k6he" name="icon" xy="14,0" size="128,161" url="ui://mbo439wbq08x9" align="center" vAlign="middle" autoSize="true" playing="false" clearOnPublish="true"/>
     <image id="n3_pjip" name="imgNeed" src="pjip2z" fileName="images/hz_bcbc_1.png" xy="0,0"/>
-    <image id="n4_ovm4" name="imgNew" src="pzq19p" fileName="imagesExport/cj_hd_xin.png" pkg="eg2y0ldp" xy="-6,63" alpha="0"/>
+    <image id="n4_ovm4" name="imgNew" src="pzq19p" fileName="imagesExport/cj_hd_xin.png" pkg="eg2y0ldp" xy="-6,63"/>
   </displayList>
 </component>

+ 12 - 3
GameClient/Assets/Game/HotUpdate/Views/DressUp/DressUpView.cs

@@ -119,6 +119,7 @@ namespace GFGGame
             _ui.m_partsList.target.x = _ui.target.width;
             _ui.m_partsList2.target.x = _ui.target.width;
             this.showListType1();
+
             if (_sceneObject == null)
             {
                 _sceneObject = GameObject.Instantiate(_scenePrefab);
@@ -324,6 +325,7 @@ namespace GFGGame
                 if (_currentList2 != null)
                 {
                     this.showListType2();
+                    // _ui.m_comListType2.m_listType.numItems = _ui.m_comListType2.m_listType.numItems;
                 }
                 else
                 {
@@ -336,6 +338,8 @@ namespace GFGGame
                 this.showListType1();
                 this.hideListType2();
             }
+            // _ui.m_comListType1.m_listType.numItems = _ui.m_comListType1.m_listType.numItems;
+            // this.ShowSubList();
         }
 
         private void OnClickBtnDelete()
@@ -387,11 +391,16 @@ namespace GFGGame
                 _ui.m_comListType1.m_listType.height = maxHeight;
             }
         }
-
+        // private void ShowSubList()
+        // {
+        //     _ui.m_comListType1.m_listType.numItems = _ui.m_comListType1.m_listType.numItems;
+        //     _ui.m_comListType2.m_listType.numItems = _ui.m_comListType2.m_listType.numItems;
+        // }
         private void showListType1()
         {
             _currentList2 = null;
             currentListType = DressUpListType.List1;
+            _ui.m_comListType1.m_listType.numItems = DressUpMenuItemCfg1Array.Instance.dataArray.Length;
             GTween.To(_ui.target.width, listType1X, 0.5f)
                 .SetTarget(_ui.m_comListType1.target)
                 .OnUpdate((GTweener t) =>
@@ -540,7 +549,7 @@ namespace GFGGame
                     _ui.m_partsList2.target.x = t.value.x;
                 });
         }
-        /********************************************************************************************************************************************/
+        /****************************************************************************************************************************/
         private void ListType1Item(int index, GObject item)
         {
             UI_TypeItem typeItem = UI_TypeItem.Proxy(item);
@@ -585,7 +594,7 @@ namespace GFGGame
                 listItem.m_loaBorder.url = "ui://DressUp/hz_kuangk_" + suitCfg.rarity;
 
                 listItem.m_ScoreType.visible = false;
-
+                listItem.m_imgNew.visible = false;
             }
             else
             {

BIN
GameClient/Assets/ResIn/UI/DressUp/DressUp_fui.bytes