Browse Source

卡牌ui优化

zhaoyang 3 years ago
parent
commit
5f9358439e

+ 1 - 1
FGUIProject/assets/Card/components/ComSkill.xml

@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="utf-8"?>
 <component size="170,170" mask="n75_rhha">
   <displayList>
-    <loader id="n78_rhha" name="loaSkill" xy="-35,-84" size="234,432" url="ui://7l6lvkaywg7t94" autoSize="true">
+    <loader id="n78_rhha" name="loaSkill" xy="-32,-61" size="234,432" url="ui://7l6lvkaywg7t94" autoSize="true">
       <relation target="" sidePair="width-width,height-height"/>
     </loader>
     <image id="n75_rhha" name="n75" src="wr9a7r" fileName="images/kp_jnkuang_1.png" xy="3,3">

+ 1 - 1
FGUIProject/assets/Card/components/ComStarConsume.xml

@@ -7,7 +7,7 @@
     </loader>
     <image id="n33_842s" name="n33" src="842s6f" fileName="images/kp_dikuang_4.png" xy="20,146" size="135,30"/>
     <component id="n34_842s" name="btnPlus" src="wr9a83" fileName="components/btnPlus.xml" pkg="eg2y0ldp" xy="124,136"/>
-    <text id="n39_a713" name="txtHasCount" xy="46,144" size="34,34" group="n42_94m1" fontSize="24" color="#fdf3d7" text="12"/>
+    <text id="n39_a713" name="txtHasCount" xy="46,144" size="34,34" group="n42_94m1" fontSize="24" color="#fdf3d7" ubb="true" text="12"/>
     <text id="n41_wr9a" name="n41" xy="76,144" size="18,34" group="n42_94m1" fontSize="24" color="#fff8ea" text="/"/>
     <text id="n38_a713" name="txtNeedCount" xy="90,144" size="34,34" group="n42_94m1" fontSize="24" color="#fdf3d7" ubb="true" text="66"/>
     <group id="n42_94m1" name="n42" xy="46,144" size="78,34" advanced="true" layout="hz" colGap="-4" excludeInvisibles="true">

+ 1 - 1
FGUIProject/assets/Card/components/ListSkillItem.xml

@@ -3,7 +3,7 @@
   <displayList>
     <image id="n74_rhha" name="n74" src="wr9a7q" fileName="images/kp_jndik_1.png" xy="0,0" size="928,181"/>
     <component id="n75_rhha" name="comSkill" src="rhha9l" fileName="components/ComSkill.xml" xy="48,16" size="165,165" scale="0.91,0.91"/>
-    <image id="n79_rhha" name="n79" src="wr9a7r" fileName="images/kp_jnkuang_1.png" xy="40,8"/>
+    <image id="n79_rhha" name="n79" src="wr9a7r" fileName="images/kp_jnkuang_1.png" xy="41,9"/>
     <image id="n77_rhha" name="n77" src="wr9a7o" fileName="images/kp_dengj_1.png" xy="124,139"/>
     <component id="n76_rhha" name="btnUp" src="842s6q" fileName="components/Button9.xml" pkg="eg2y0ldp" xy="659,55" size="230,70">
       <Button title="升级"/>

+ 2 - 2
GameClient/Assets/Game/HotUpdate/Views/Card/CardFosterView.cs

@@ -513,8 +513,8 @@ namespace GFGGame
 
             int needCount = cardStarCfg.materiarsArr[index][1];
             int hasCount = ItemDataManager.GetItemNum(cardStarCfg.materiarsArr[index][0]);
-            listItem.m_txtNeedCount.text = StringUtil.GetColorText(needCount.ToString(), hasCount < needCount ? "#FDF3D7" : "#D27869"); ;
-            listItem.m_txtHasCount.text = hasCount.ToString();
+            listItem.m_txtNeedCount.text = needCount.ToString();// StringUtil.GetColorText(needCount.ToString(), hasCount < needCount ? "#D27869" : "#FDF3D7"); ;
+            listItem.m_txtHasCount.text = StringUtil.GetColorText(hasCount.ToString(), hasCount < needCount ? "#D27869" : "#FDF3D7"); //;  hasCount.ToString();
             listItem.m_btnPlus.visible = false;
             if (listItem.m_btnPlus.data == null)
             {

BIN
GameClient/Assets/ResIn/UI/Card/Card_fui.bytes