zhaoyang 2 жил өмнө
parent
commit
0d32666728

+ 2 - 2
FGUIProject/assets/ClothingFoster/ClothingFosterUI.xml

@@ -11,7 +11,7 @@
       <item/>
       <item/>
       <item/>
       <item/>
     </list>
     </list>
-    <list id="n8_py5g" name="listMaterials" xy="76,491" size="821,289" layout="row" colGap="32" defaultItem="ui://uicwtr5bpy5gu" align="center">
+    <list id="n8_py5g" name="listMaterials" xy="70,491" size="821,289" layout="row" colGap="32" defaultItem="ui://uicwtr5bpy5gu" align="center">
       <item/>
       <item/>
       <item/>
       <item/>
       <item/>
       <item/>
@@ -19,6 +19,6 @@
     <component id="n9_py5g" name="btnFoster" src="wonody" fileName="components/Button19.xml" pkg="mk0fwx0x" xy="309,849">
     <component id="n9_py5g" name="btnFoster" src="wonody" fileName="components/Button19.xml" pkg="mk0fwx0x" xy="309,849">
       <Button title="确定"/>
       <Button title="确定"/>
     </component>
     </component>
-    <component id="n10_j5a5" name="ComConsume" src="n3xha1" fileName="components/ComCostCurrency.xml" pkg="eg2y0ldp" xy="341,778"/>
+    <component id="n10_j5a5" name="ComConsume" src="n3xha1" fileName="components/ComCostCurrency.xml" pkg="eg2y0ldp" xy="359,778"/>
   </displayList>
   </displayList>
 </component>
 </component>

+ 3 - 1
FGUIProject/assets/CommonGame/components/ComCostCurrency.xml

@@ -4,7 +4,9 @@
     <text id="n2_ojlz" name="n2" xy="0,0" size="76,46" group="n7_si5z" fontSize="34" color="#8e7c6b" autoSize="none" text="消耗"/>
     <text id="n2_ojlz" name="n2" xy="0,0" size="76,46" group="n7_si5z" fontSize="34" color="#8e7c6b" autoSize="none" text="消耗"/>
     <loader id="n1_ojlz" name="loaIcon" xy="91,-2" size="50,50" group="n7_si5z" aspect="true" url="ui://eg2y0ldpq08x3" fill="scale"/>
     <loader id="n1_ojlz" name="loaIcon" xy="91,-2" size="50,50" group="n7_si5z" aspect="true" url="ui://eg2y0ldpq08x3" fill="scale"/>
     <text id="n6_j5a5" name="txtNeed" xy="156,0" size="87,46" group="n7_si5z" fontSize="34" color="#8e7c6b" align="center" vAlign="middle" ubb="true" autoClearText="true" text="9999"/>
     <text id="n6_j5a5" name="txtNeed" xy="156,0" size="87,46" group="n7_si5z" fontSize="34" color="#8e7c6b" align="center" vAlign="middle" ubb="true" autoClearText="true" text="9999"/>
-    <group id="n7_si5z" name="n7" xy="0,-2" size="243,50" advanced="true" layout="hz" colGap="15" excludeInvisibles="true"/>
+    <group id="n7_si5z" name="n7" xy="0,-2" size="243,50" advanced="true" layout="hz" colGap="15" excludeInvisibles="true">
+      <relation target="" sidePair="center-center"/>
+    </group>
   </displayList>
   </displayList>
   <relation target="n7_si5z" sidePair="width-width"/>
   <relation target="n7_si5z" sidePair="width-width"/>
 </component>
 </component>

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Views/ClothingFoster/ClothingFosterView.cs

@@ -61,7 +61,7 @@ namespace GFGGame
             int has = ItemDataManager.GetItemNum(cfg.costId);
             int has = ItemDataManager.GetItemNum(cfg.costId);
             int need = cfg.costNum;
             int need = cfg.costNum;
             UI_ComCostCurrency comConsume = UI_ComCostCurrency.Proxy(_ui.m_ComConsume);
             UI_ComCostCurrency comConsume = UI_ComCostCurrency.Proxy(_ui.m_ComConsume);
-            comConsume.m_txtNeed.text = StringUtil.GetColorText(need.ToString(), has >= need ? "#FFF8EA" : "#C9F1A5");
+            comConsume.m_txtNeed.text = need.ToString();
             UI_ComCostCurrency.ProxyEnd();
             UI_ComCostCurrency.ProxyEnd();
             if (_canFoster && has < need) _canFoster = false;
             if (_canFoster && has < need) _canFoster = false;
 
 

BIN
GameClient/Assets/ResIn/UI/ClothingFoster/ClothingFoster_fui.bytes