Browse Source

自由换装不显示分数

zhaoyang 2 years ago
parent
commit
abdf1933d9

+ 3 - 2
FGUIProject/assets/DressUp/components/PartsListItem.xml

@@ -8,8 +8,9 @@
     </loader>
     </loader>
     <loader id="n7_d4iw" name="rarity" xy="173,10" size="44,94" url="ui://eg2y0ldpd4iw52" autoSize="true"/>
     <loader id="n7_d4iw" name="rarity" xy="173,10" size="44,94" url="ui://eg2y0ldpd4iw52" autoSize="true"/>
     <loader id="n5_8xpg" name="ScoreType" xy="24,142" size="50,50" touchable="false" url="ui://eg2y0ldp842s6h" fill="scale"/>
     <loader id="n5_8xpg" name="ScoreType" xy="24,142" size="50,50" touchable="false" url="ui://eg2y0ldp842s6h" fill="scale"/>
-    <image id="n13_ofwu" name="n13" src="ofwuf8" fileName="images/huanzhuang_sz_db.png" xy="138,164"/>
-    <text id="n6_8xpg" name="txtScore" xy="146,156" pivot="0.5,0" size="66,44" font="ui://eg2y0ldpa0cftks" fontSize="32" color="#e9e2d1" align="center" autoClearText="true" text="3500"/>
+    <image id="n13_ofwu" name="n13" src="ofwuf8" fileName="images/huanzhuang_sz_db.png" xy="138,164" group="n14_ofwu"/>
+    <text id="n6_8xpg" name="txtScore" xy="146,156" 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,156" size="80,44" advanced="true"/>
     <image id="n8_pjip" name="imgNeed" src="pjip2z" fileName="images/hz_bcbc_1.png" xy="13,0" size="67,68"/>
     <image id="n8_pjip" name="imgNeed" src="pjip2z" fileName="images/hz_bcbc_1.png" xy="13,0" size="67,68"/>
     <image id="n10_ovm4" name="imgNew" src="pzq19p" fileName="imagesExport/cj_hd_xin.png" pkg="eg2y0ldp" xy="0,70" size="70,70"/>
     <image id="n10_ovm4" name="imgNew" src="pzq19p" fileName="imagesExport/cj_hd_xin.png" pkg="eg2y0ldp" xy="0,70" size="70,70"/>
     <image id="n2_k6he" name="n2" src="k6he1y" fileName="images/hz_minzikuang.png" xy="13,198" size="208,42" group="n11_wono"/>
     <image id="n2_k6he" name="n2" src="k6he1y" fileName="images/hz_minzikuang.png" xy="13,198" size="208,42" group="n11_wono"/>

+ 3 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/DressUp/UI_PartsListItem.cs

@@ -13,6 +13,7 @@ namespace UI.DressUp
         public GLoader m_rarity;
         public GLoader m_rarity;
         public GLoader m_ScoreType;
         public GLoader m_ScoreType;
         public GTextField m_txtScore;
         public GTextField m_txtScore;
+        public GGroup m_grpScore;
         public GImage m_imgNeed;
         public GImage m_imgNeed;
         public GImage m_imgNew;
         public GImage m_imgNew;
         public GTextField m_txtTitle;
         public GTextField m_txtTitle;
@@ -70,6 +71,7 @@ namespace UI.DressUp
             m_rarity = (GLoader)comp.GetChild("rarity");
             m_rarity = (GLoader)comp.GetChild("rarity");
             m_ScoreType = (GLoader)comp.GetChild("ScoreType");
             m_ScoreType = (GLoader)comp.GetChild("ScoreType");
             m_txtScore = (GTextField)comp.GetChild("txtScore");
             m_txtScore = (GTextField)comp.GetChild("txtScore");
+            m_grpScore = (GGroup)comp.GetChild("grpScore");
             m_imgNeed = (GImage)comp.GetChild("imgNeed");
             m_imgNeed = (GImage)comp.GetChild("imgNeed");
             m_imgNew = (GImage)comp.GetChild("imgNew");
             m_imgNew = (GImage)comp.GetChild("imgNew");
             m_txtTitle = (GTextField)comp.GetChild("txtTitle");
             m_txtTitle = (GTextField)comp.GetChild("txtTitle");
@@ -83,6 +85,7 @@ namespace UI.DressUp
             m_rarity = null;
             m_rarity = null;
             m_ScoreType = null;
             m_ScoreType = null;
             m_txtScore = null;
             m_txtScore = null;
+            m_grpScore = null;
             m_imgNeed = null;
             m_imgNeed = null;
             m_imgNew = null;
             m_imgNew = null;
             m_txtTitle = null;
             m_txtTitle = null;

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

@@ -750,7 +750,7 @@ namespace GFGGame
             listItem.m_icon.url = ResPathUtil.GetIconPath(iconRes, ext);
             listItem.m_icon.url = ResPathUtil.GetIconPath(iconRes, ext);
             listItem.m_txtTitle.text = partName;
             listItem.m_txtTitle.text = partName;
             listItem.target.data = id;
             listItem.target.data = id;
-            listItem.m_txtScore.visible = false;
+            listItem.m_grpScore.visible = false;
             //listItem.m_ScoreType.visible = true;
             //listItem.m_ScoreType.visible = true;
             listItem.m_imgNeed.visible = false;
             listItem.m_imgNeed.visible = false;
 
 
@@ -794,7 +794,7 @@ namespace GFGGame
             listItem.m_icon.url = ResPathUtil.GetIconPath(iconRes, "png");
             listItem.m_icon.url = ResPathUtil.GetIconPath(iconRes, "png");
             listItem.m_txtTitle.text = partName;
             listItem.m_txtTitle.text = partName;
             listItem.target.data = id;
             listItem.target.data = id;
-            listItem.m_txtScore.visible = false;
+            listItem.m_grpScore.visible = false;
             //listItem.m_ScoreType.visible = true;
             //listItem.m_ScoreType.visible = true;
             listItem.m_imgNeed.visible = false;
             listItem.m_imgNeed.visible = false;
             bool isNew = DressUpMenuItemDataManager.CheckIsDressUpItemNew(id);
             bool isNew = DressUpMenuItemDataManager.CheckIsDressUpItemNew(id);

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