zhaoyang 3 жил өмнө
parent
commit
28bc0fc7d1

+ 2 - 2
FGUIProject/assets/Card/components/ListCardItem.xml

@@ -2,9 +2,9 @@
 <component size="238,477">
   <displayList>
     <component id="n6_ojlz" name="loaCard" src="jzrr8n" fileName="components/ComCardMask.xml" xy="0,0"/>
-    <image id="n22_jzrr" name="n22" src="pq5x61" fileName="images/kp_dikuang_2.png" xy="0,0"/>
-    <loader id="n19_pq5x" name="loaRarity" xy="178,14" size="50,50" url="ui://eg2y0ldppq5x62" autoSize="true"/>
     <image id="n20_pq5x" name="n20" src="pq5x60" fileName="images/kp_dikuang_1.png" xy="2,342"/>
+    <loader id="n23_94m1" name="loaBorder" xy="-2,0" size="242,441" url="ui://7l6lvkay94m19w" autoSize="true"/>
+    <loader id="n19_pq5x" name="loaRarity" xy="178,14" size="50,50" url="ui://eg2y0ldppq5x62" autoSize="true"/>
     <text id="n8_ojlz" name="txtLv" xy="185,370" size="39,59" fontSize="24" color="#fff9f1" leading="-5" text="Lv.&#xA;30"/>
     <text id="n9_ojlz" name="txtName" xy="63,432" size="112,49" fontSize="36" color="#6a5d56" autoSize="none" text="赵钱孙"/>
     <component id="n18_ojlz" name="comStar" src="ojlzh" fileName="components/ComStar.xml" pkg="eg2y0ldp" xy="10,397" controller="c1,2"/>

BIN
FGUIProject/assets/Card/images/kp_kuang_1.png


BIN
FGUIProject/assets/Card/images/kp_kuang_2.png


BIN
FGUIProject/assets/Card/images/kp_kuang_3.png


BIN
FGUIProject/assets/Card/images/kp_kuang_4.png


+ 4 - 0
FGUIProject/assets/Card/package.xml

@@ -99,6 +99,10 @@
     <component id="rhha9q" name="ComSkillDiscribe.xml" path="/"/>
     <component id="qgxy9r" name="ComImgCard.xml" path="/"/>
     <component id="qgxy9s" name="ComCardImgRes.xml" path="/"/>
+    <image id="94m19t" name="kp_kuang_3.png" path="/images/" exported="true"/>
+    <image id="94m19u" name="kp_kuang_2.png" path="/images/" exported="true"/>
+    <image id="94m19v" name="kp_kuang_1.png" path="/images/" exported="true"/>
+    <image id="94m19w" name="kp_kuang_4.png" path="/images/" exported="true"/>
   </resources>
   <publish name="" path="..\GameClient\Assets\ResIn\UI\Card" packageCount="2" genCode="true"/>
 </packageDescription>

+ 3 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/Card/UI_ListCardItem.cs

@@ -8,6 +8,7 @@ namespace UI.Card
     {
         public GComponent target;
         public UI_ComCardMask m_loaCard;
+        public GLoader m_loaBorder;
         public GLoader m_loaRarity;
         public GTextField m_txtLv;
         public GTextField m_txtName;
@@ -60,6 +61,7 @@ namespace UI.Card
         private void Init(GComponent comp)
         {
             m_loaCard = (UI_ComCardMask)UI_ComCardMask.Create(comp.GetChild("loaCard"));
+            m_loaBorder = (GLoader)comp.GetChild("loaBorder");
             m_loaRarity = (GLoader)comp.GetChild("loaRarity");
             m_txtLv = (GTextField)comp.GetChild("txtLv");
             m_txtName = (GTextField)comp.GetChild("txtName");
@@ -69,6 +71,7 @@ namespace UI.Card
         {
             m_loaCard.Dispose();
             m_loaCard = null;
+            m_loaBorder = null;
             m_loaRarity = null;
             m_txtLv = null;
             m_txtName = null;

+ 1 - 0
GameClient/Assets/Game/HotUpdate/Views/Card/CardDetailView.cs

@@ -79,6 +79,7 @@ namespace GFGGame
             listItem.target.data = data;
             listItem.m_loaCard.m_loaCard.url = ResPathUtil.GetCardSmallPath(data.resources[data.resIndex]);
             listItem.m_loaRarity.url = ResPathUtil.GetCommonGameResPath("kp_sxing_x_" + data.itemCfg.rarity);
+            listItem.m_loaBorder.url = "ui://Card/kp_kuang_" + data.itemCfg.rarity;//ResPathUtil.GetCommonGameResPath("kp_sxing_x_" + data.itemCfg.rarity);
             listItem.m_txtLv.text = "Lv.\n" + data.lv;
             listItem.m_txtName.text = data.itemCfg.name;
 

BIN
GameClient/Assets/ResIn/UI/Card/Card_atlas0.png


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