zhaoyang 2 年之前
父节点
当前提交
0c9965ce63

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

@@ -11,12 +11,12 @@
     <image id="n13_ofwu" name="n13" src="ofwuf8" fileName="images/huanzhuang_sz_db.png" xy="138,172" group="n14_ofwu"/>
     <text id="n6_8xpg" name="txtScore" xy="146,164" pivot="0.5,0" size="66,44" group="n14_ofwu" font="ui://eg2y0ldpa0cftks" fontSize="32" color="#e9e2d1" align="center" autoClearText="true" text="3500"/>
     <group id="n14_ofwu" name="grpScore" xy="138,164" size="80,44" group="n16_o4m7" advanced="true"/>
-    <image id="n8_pjip" name="imgNeed" src="pjip2z" fileName="images/hz_bcbc_1.png" xy="13,13" size="67,68" group="n16_o4m7"/>
-    <image id="n10_ovm4" name="imgNew" src="pzq19p" fileName="imagesExport/cj_hd_xin.png" pkg="eg2y0ldp" xy="-4,77" size="75,75" group="n16_o4m7" aspect="true"/>
+    <image id="n8_pjip" name="imgNeed" src="pjip2z" fileName="images/hz_bcbc_1.png" xy="13,21" size="67,68" group="n16_o4m7"/>
+    <image id="n10_ovm4" name="imgNew" src="pzq19p" fileName="imagesExport/cj_hd_xin.png" pkg="eg2y0ldp" xy="-4,82" size="75,75" group="n16_o4m7" aspect="true"/>
     <image id="n2_k6he" name="n2" src="k6he1y" fileName="images/hz_minzikuang.png" xy="13,210" size="208,42" group="n11_wono"/>
     <text id="n3_k6he" name="txtTitle" xy="42,211" pivot="0.5,0" size="152,41" group="n11_wono" fontSize="30" color="#b58f54" align="center" leading="0" text="繁星点点啊"/>
     <group id="n11_wono" name="n11" xy="13,210" size="208,43" group="n16_o4m7"/>
-    <component id="n15_o4m7" name="btnAni" src="o4m7fa" fileName="components/Button16.xml" xy="10,9" size="75,78" group="n16_o4m7" aspect="true"/>
-    <group id="n16_o4m7" name="n16" xy="-4,9" size="225,244"/>
+    <component id="n15_o4m7" name="btnAni" src="o4m7fa" fileName="components/Button16.xml" xy="6,6" size="86,90" group="n16_o4m7" aspect="true"/>
+    <group id="n16_o4m7" name="n16" xy="-4,6" size="225,247"/>
   </displayList>
 </component>

+ 13 - 35
GameClient/Assets/Game/HotUpdate/Views/DressUp/DressUpView.cs

@@ -88,9 +88,9 @@ namespace GFGGame
             _ui.m_comListType1.m_listType.onClickItem.Add(OnClickListType1Item);
             _ui.m_comListType2.m_listType.onClickItem.Add(OnClickListType2Item);
             // _ui.m_partsList.m_list.SetVirtual();
-            _ui.m_partsList.m_list.onClickItem.Add(OnClickPartsListItem);
+            // _ui.m_partsList.m_list.onClickItem.Add(OnClickPartsListItem);
             _ui.m_partsList2.m_list.onClickItem.Add(OnClickSuitPartsListItem);
-            _ui.m_partsListSearch.m_list.onClickItem.Add(OnClickPartsListItem);
+            // _ui.m_partsListSearch.m_list.onClickItem.Add(OnClickPartsListItem);
             _ui.m_touchPad.onClick.Add(OnTouchPad);
             _ui.m_btnDelete.onClick.Add(OnClickBtnDelete);
             _ui.m_btnSave.onClick.Add(OnClickBtnSave);
@@ -287,30 +287,13 @@ namespace GFGGame
             {
                 return;
             }
-            UI_PartsListItem listItem = UI_PartsListItem.Proxy(context.data as GObject);// (GObject)context.data as GObject;
-            int id = (int)listItem.target.data;
-            bool isDress = true;
 
+            int id = (int)(context.sender as GObject).data;
             if (_currentMenuType == ConstDressUpItemType.TAO_ZHUANG)
             {
-                // return;//套装有icon的监听
-                isDress = false;
                 partsListScrollingPosY = _ui.m_partsList.m_list.scrollPane.scrollingPosY;
 
-                if (GuideDataManager.IsGuideFinish(ConstGuideId.FREEDOM_DRESS) <= 0 && GuideDataManager.currentGuideId == GuideCfgArray.Instance.GetCfg(ConstGuideId.FREEDOM_DRESS).id)
-                {
-                    ShowSuitPartList(id, true);
-                }
-                else if (SuitCfgArray.Instance.CheckSuitHasAction(id) && DressUpMenuSuitDataManager.CheckSuitHasActionRes(id))
-                {
-                    // listItem.m_btnAni.visible = true;
-                    // listItem.m_comAxtionSelect.target.visible = true;
-                    UI_PartsListItem.ProxyEnd();
-                }
-                else
-                {
-                    ShowSuitPartList(id, false);
-                }
+                OnBtnNormalClick(context);
             }
             else if (_currentMenuType == ConstDressUpItemType.DONG_ZUO)
             {
@@ -320,12 +303,9 @@ namespace GFGGame
             {
                 MyDressUpHelper.dressUpObj.AddOrRemove(id, true);
             }
-            if (isDress)
-            {
-                UpdateStepBtn(true, id);
-            }
-            // UpdateListPartsSelected(id);
-            // UpdateListSuitPartsSelected();
+
+            UpdateStepBtn(true, id);
+
         }
         private void OnBtnNormalClick(EventContext context)
         {
@@ -748,19 +728,11 @@ namespace GFGGame
                 // listItem.m_comAxtionSelect.m_btnNormal.icon = ResPathUtil.GetIconPath(suitCfg.res, ext);
                 // listItem.m_comAxtionSelect.m_btnAction.icon = ResPathUtil.GetIconPath(suitCfg.res, ext);
 
-                if (listItem.m_icon.data == null)
-                {
-                    listItem.m_icon.onClick.Add(OnBtnNormalClick);
-                }
-                listItem.m_icon.data = id;
-
                 if (listItem.m_btnAni.data == null)
                 {
                     listItem.m_btnAni.onClick.Add(OnBtnActionClick);
                 }
                 listItem.m_btnAni.data = id;
-
-
             }
             else if (_currentMenuType == (int)ConstDressUpItemType.DONG_ZUO)
             {
@@ -796,6 +768,12 @@ namespace GFGGame
                     ItemProxy.ReqSetItemRead(id).Coroutine();
                 }
             }
+            if (listItem.m_icon.data == null)
+            {
+                listItem.m_icon.onClick.Add(OnClickPartsListItem);
+            }
+            listItem.m_icon.data = id;
+
             if (listItem.target.data == null)
             {
                 LongPressGesture longPressGesture = new LongPressGesture(listItem.target);

二进制
GameClient/Assets/ResIn/UI/DressUp/DressUp_fui.bytes