浏览代码

物品item

zhaoyang 2 年之前
父节点
当前提交
39ecd0597d

+ 14 - 13
FGUIProject/assets/CommonGame/components/ComItemIconNew.xml

@@ -1,17 +1,18 @@
 <?xml version="1.0" encoding="utf-8"?>
-<component size="260,260">
+<component size="124,124">
   <displayList>
-    <image id="n25_pu55" name="n25" src="9jv6tlu" fileName="images/lm_daoju_db.png" xy="0,0"/>
-    <loader id="n12_ehs9" name="loaIcon" xy="130,130" pivot="0.5,0.5" anchor="true" size="200,200" group="n30_9jv6" url="ui://xz8kxrecng0i27" fill="scaleFree" autoSize="true"/>
-    <text id="n17_j48o" name="txtHasCount" xy="131,261" pivot="0.5,0" anchor="true" size="102,36" group="n30_9jv6" visible="false" fontSize="26" color="#a28d77" vars="true" text="已拥有:{count=0}"/>
-    <loader id="n18_j48o" name="loaRarity" xy="183,18" size="44,94" group="n30_9jv6" url="ui://eg2y0ldpd4iw52" autoSize="true"/>
-    <image id="n23_slyz" name="imgHas" src="slyzthy" fileName="images/yx_yihd.png" xy="40,109" size="178,40" group="n29_pu55"/>
-    <image id="n22_cs8j" name="imgNotHas" src="cs8jthx" fileName="images/yx_whd.png" xy="40,109" size="178,40" group="n29_pu55"/>
-    <image id="n28_pu55" name="imgShowTong" src="tc539z" fileName="images/zx_jqgka_stjl.png" xy="49,109" size="160,40" group="n29_pu55"/>
-    <group id="n29_pu55" name="n29" xy="40,109" size="178,40" group="n30_9jv6" advanced="true"/>
-    <image id="n24_pu55" name="n24" src="pu55tiw" fileName="images/pfjl_and.png" xy="19,19" size="221,220" group="n27_pu55"/>
-    <image id="n26_pu55" name="n26" src="orsttis" fileName="images/pfjl_ywc.png" xy="87,104" size="85,49" group="n27_pu55"/>
-    <group id="n27_pu55" name="grpGot" xy="19,19" size="221,220" group="n30_9jv6" visible="false" advanced="true"/>
-    <group id="n30_9jv6" name="n30" xy="19,18" size="221,279"/>
+    <image id="n25_pu55" name="n25" src="l500tlv" fileName="imagesNew/wpk_db_1.png" xy="1,1" group="n30_9jv6"/>
+    <loader id="n12_ehs9" name="loaIcon" xy="63,63" pivot="0.5,0.5" anchor="true" size="102,102" group="n30_9jv6" aspect="true" url="ui://xz8kxrecng0i27" fill="scale"/>
+    <text id="n17_j48o" name="txtHasCount" xy="64,194" pivot="0.5,0" anchor="true" size="100,36" group="n30_9jv6" visible="false" fontSize="26" color="#a28d77" vars="true" text="已拥有:{count=0}"/>
+    <loader id="n18_j48o" name="loaRarity" xy="89,7" size="27,58" group="n30_9jv6" aspect="true" url="ui://eg2y0ldpo9ghtll" fill="scale"/>
+    <image id="n31_l500" name="n31" src="l500tlw" fileName="imagesNew/wpk_sz_db.png" xy="7,86" group="n30_9jv6"/>
+    <image id="n23_slyz" name="imgHas" src="slyzthy" fileName="images/yx_yihd.png" xy="-27,42" size="178,40" group="n29_pu55"/>
+    <image id="n22_cs8j" name="imgNotHas" src="cs8jthx" fileName="images/yx_whd.png" xy="-27,42" size="178,40" group="n29_pu55"/>
+    <image id="n28_pu55" name="imgShowTong" src="tc539z" fileName="images/zx_jqgka_stjl.png" xy="-18,42" size="160,40" group="n29_pu55"/>
+    <group id="n29_pu55" name="n29" xy="-27,42" size="178,40" group="n30_9jv6" advanced="true"/>
+    <image id="n24_pu55" name="n24" src="l500tlx" fileName="imagesNew/wpk_zz.png" xy="6,6" group="n27_pu55"/>
+    <image id="n26_pu55" name="n26" src="orsttis" fileName="images/pfjl_ywc.png" xy="20,37" size="85,49" group="n27_pu55"/>
+    <group id="n27_pu55" name="grpGot" xy="6,6" size="112,112" group="n30_9jv6" visible="false" advanced="true"/>
+    <group id="n30_9jv6" name="n30" xy="-27,1" size="178,229"/>
   </displayList>
 </component>

+ 4 - 4
FGUIProject/assets/CommonGame/components/ComItemNew.xml

@@ -1,11 +1,11 @@
 <?xml version="1.0" encoding="utf-8"?>
-<component size="260,260" overflow="hidden" opaque="false">
+<component size="124,124" overflow="hidden" opaque="false">
   <displayList>
     <component id="n25_pu55" name="comItemIcon" src="9jv6tlt" fileName="components/ComItemIconNew.xml" xy="0,0" pivot="0.5,0.5" aspect="true"/>
-    <text id="n15_ehs9" name="txtCount" xy="243,203" pivot="1,0" anchor="true" size="69,46" font="ui://eg2y0ldpa0cftks" fontSize="34" color="#5b4b35" align="right" vars="true" text="x200">
-      <relation target="n25_pu55" sidePair="right-right,top-top"/>
+    <text id="n15_ehs9" name="txtCount" xy="61,78" pivot="0.5,0" anchor="true" size="97,44" font="ui://eg2y0ldpa0cftks" fontSize="32" color="#ffffff" align="center" vars="true" text="x00200">
+      <relation target="n25_pu55" sidePair="center-center"/>
     </text>
-    <text id="n26_r9ri" name="txtName" xy="131,260" pivot="0.5,0" anchor="true" size="60,39" fontSize="28" color="#a78d67" text="江南">
+    <text id="n26_r9ri" name="txtName" xy="62,124" pivot="0.5,0" anchor="true" size="60,39" fontSize="28" color="#a78d67" text="江南">
       <relation target="n25_pu55" sidePair="bottom-bottom"/>
     </text>
   </displayList>

二进制
FGUIProject/assets/CommonGame/imagesNew/wpk_db_1.png


二进制
FGUIProject/assets/CommonGame/imagesNew/wpk_sz_db.png


二进制
FGUIProject/assets/CommonGame/imagesNew/wpk_zz.png


+ 3 - 0
FGUIProject/assets/CommonGame/package.xml

@@ -285,6 +285,9 @@
     <image id="wm603g" name="lm_an__3weixuan.png" path="/imagesNew/" exported="true"/>
     <image id="wm603f" name="lm_an__3xuanzhong.png" path="/imagesNew/" exported="true"/>
     <image id="o9gh4m" name="lm_an__tongyi.png" path="/imagesNew/" exported="true"/>
+    <image id="l500tlv" name="wpk_db_1.png" path="/imagesNew/"/>
+    <image id="l500tlw" name="wpk_sz_db.png" path="/imagesNew/"/>
+    <image id="l500tlx" name="wpk_zz.png" path="/imagesNew/"/>
   </resources>
   <publish name="" path="..\GameClient\Assets\ResIn\UI\CommonGame" packageCount="2" genCode="true" extractAlpha="true"/>
 </packageDescription>

+ 4 - 3
FGUIProject/assets/League/components/ListGiftButItem.xml

@@ -4,17 +4,18 @@
     <image id="n19_9jv6" name="n19" src="9jv65t" fileName="images/lm_kp_db_chang.png" xy="0,0" group="n22_9jv6"/>
     <loader id="n12_pvb4" name="loaIcon" xy="134,265" pivot="0.5,0.5" size="112,112" group="n22_9jv6" url="ui://eg2y0ldpu2u3tkq" autoSize="true"/>
     <text id="n15_pvb4" name="txtCount" xy="210,437" pivot="0.5,0" size="144,34" group="n22_9jv6" font="ui://eg2y0ldpa0cftks" fontSize="24" color="#b08548" letterSpacing="-2" text="今日剩余:1/1"/>
-    <component id="n14_pvb4" name="btnBuy" src="rv091x" fileName="components/Button17.xml" xy="126,588" group="n22_9jv6" pkg="eg2y0ldp">
+    <component id="n14_pvb4" name="btnBuy" src="rv091x" fileName="components/BtnStyle1Small.xml" pkg="eg2y0ldp" xy="126,588" group="n22_9jv6">
       <Button title="采购" icon="ui://tw70qm9d9jv66c"/>
     </component>
     <component id="n16_pvb4" name="comCost" src="n3xha1" fileName="components/ComCostCurrency.xml" pkg="eg2y0ldp" xy="124,636" pivot="0.5,0" group="n22_9jv6" scale="0.7,0.7" controller="c1,1"/>
-    <list id="n13_pvb4" name="listGift" xy="-438,485" pivot="0.5,0" size="1255,267" group="n22_9jv6" scale="0.305,0.305" layout="row" colGap="15" defaultItem="ui://eg2y0ldp9jv6tls" align="center">
+    <list id="n13_pvb4" name="listGift" xy="-113,485" pivot="0.5,0" size="601,132" group="n22_9jv6" scale="0.65,0.65" layout="row" colGap="15" defaultItem="ui://eg2y0ldp9jv6tls" align="center">
+      <item/>
       <item/>
       <item/>
       <item/>
     </list>
     <text id="n18_pvb4" name="txtTime" xy="258,117" pivot="0.5,0" size="102,39" group="n22_9jv6" font="ui://eg2y0ldpa0cftks" fontSize="28" color="#be8f4d" align="center" ubb="true" text="剩余1天"/>
     <loader id="n21_9jv6" name="loaType" xy="19,99" size="62,203" group="n22_9jv6" url="ui://tw70qm9d9jv66x" autoSize="true"/>
-    <group id="n22_9jv6" name="n22" xy="-438,0" size="1255,801"/>
+    <group id="n22_9jv6" name="n22" xy="-113,0" size="601,801"/>
   </displayList>
 </component>

+ 4 - 4
FGUIProject/assets/League/components/ListGiftGetItem.xml

@@ -1,16 +1,16 @@
 <?xml version="1.0" encoding="utf-8"?>
 <component size="386,759">
-  <controller name="c1" pages="0,,1," selected="1">
+  <controller name="c1" pages="0,,1," selected="0">
     <remark page="0" value="可领取"/>
     <remark page="1" value="已领取"/>
   </controller>
   <displayList>
-    <loader id="n29_9jv6" name="n29" xy="5,0" size="377,754" group="n28_9jv6" url="ui://tw70qm9d9jv65p" align="center" vAlign="middle" autoSize="true">
+    <loader id="n29_9jv6" name="n29" xy="5,0" size="377,754" group="n28_9jv6" url="ui://tw70qm9d9jv65s" align="center" vAlign="middle" autoSize="true">
       <gearIcon controller="c1" pages="0" values="ui://tw70qm9d9jv65s" default="ui://tw70qm9d9jv65p"/>
     </loader>
     <loader id="n21_9jv6" name="loaType" xy="22,101" size="62,203" group="n28_9jv6" url="ui://tw70qm9d9jv66x" autoSize="true"/>
     <loader id="n15_pvb4" name="loaIcon" xy="137,260" pivot="0.5,0.5" size="112,112" group="n28_9jv6" url="ui://eg2y0ldpu2u3tkq" autoSize="true"/>
-    <list id="n13_pvb4" name="listGift" xy="-363,493" pivot="0.5,0" size="1113,266" group="n28_9jv6" scale="0.305,0.305" layout="row" colGap="15" defaultItem="ui://eg2y0ldp9jv6tls" align="center">
+    <list id="n13_pvb4" name="listGift" xy="-113,493" pivot="0.5,0" size="612,129" group="n28_9jv6" scale="0.65,0.65" layout="row" colGap="15" defaultItem="ui://eg2y0ldp9jv6tls" align="center">
       <item/>
       <item/>
       <item/>
@@ -19,6 +19,6 @@
     <image id="n26_9jv6" name="n26" src="9jv66g" fileName="images/lm_biaoqian_ylq.png" xy="28,300" group="n28_9jv6">
       <gearDisplay controller="c1" pages="1"/>
     </image>
-    <group id="n28_9jv6" name="n28" xy="-363,0" size="1113,759"/>
+    <group id="n28_9jv6" name="n28" xy="-113,0" size="612,754"/>
   </displayList>
 </component>

+ 2 - 2
GameClient/Assets/Game/HotUpdate/Views/League/LeagueGiftView.cs

@@ -151,8 +151,8 @@ namespace GFGGame
             }
             (obj.data as ItemView).SetData(itemData);
             (obj.data as ItemView).ChangeTxtCountStyle();
-            (obj.data as ItemView).SetTxtCountScale = 3f;
-            (obj.data as ItemView).SetTxtCountPos(250, 142);
+            // (obj.data as ItemView).SetTxtCountScale = 3f;
+            // (obj.data as ItemView).SetTxtCountPos(250, 142);
         }
         private string GetListGetItemResource(int index)
         {

二进制
GameClient/Assets/ResIn/UI/CommonGame/CommonGame_atlas0!a.png


二进制
GameClient/Assets/ResIn/UI/CommonGame/CommonGame_atlas0.png


二进制
GameClient/Assets/ResIn/UI/CommonGame/CommonGame_atlas0_1!a.png


二进制
GameClient/Assets/ResIn/UI/CommonGame/CommonGame_atlas0_1.png


二进制
GameClient/Assets/ResIn/UI/CommonGame/CommonGame_fui.bytes


二进制
GameClient/Assets/ResIn/UI/League/League_atlas0!a.png


二进制
GameClient/Assets/ResIn/UI/League/League_atlas0.png


二进制
GameClient/Assets/ResIn/UI/League/League_fui.bytes