浏览代码

服装店

zhaoyang 2 年之前
父节点
当前提交
490726b32f

+ 1 - 0
FGUIProject/assets/ClothingShop/components/ShopListItemRender.xml

@@ -4,6 +4,7 @@
   <displayList>
     <image id="n22_hinb" name="n22" src="hinb19" fileName="images/fzd_diban_4.png" xy="9,16"/>
     <loader id="n24_hinb" name="rarity" xy="198,16" size="44,94" url="ui://eg2y0ldpd4iw52" autoSize="true"/>
+    <loader id="n35_v95q" name="loaMainScore" xy="197,110" size="40,40" url="ui://eg2y0ldp842s6h" fill="scale"/>
     <text id="n26_hinb" name="txtName" xy="25,214" size="200,49" font="ui://eg2y0ldpk1kha2" fontSize="36" color="#da8082" align="center" autoSize="none" text="名字">
       <gearColor controller="c1" pages="0" values="#a88553,#000000" default="#da8082,#000000"/>
     </text>

+ 3 - 0
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/ClothingShop/UI_ShopListItemRender.cs

@@ -9,6 +9,7 @@ namespace UI.ClothingShop
         public GComponent target;
         public Controller m_c1;
         public GLoader m_rarity;
+        public GLoader m_loaMainScore;
         public GTextField m_txtName;
         public GLoader m_icon;
         public GImage m_imgOwned;
@@ -63,6 +64,7 @@ namespace UI.ClothingShop
         {
             m_c1 = comp.GetController("c1");
             m_rarity = (GLoader)comp.GetChild("rarity");
+            m_loaMainScore = (GLoader)comp.GetChild("loaMainScore");
             m_txtName = (GTextField)comp.GetChild("txtName");
             m_icon = (GLoader)comp.GetChild("icon");
             m_imgOwned = (GImage)comp.GetChild("imgOwned");
@@ -73,6 +75,7 @@ namespace UI.ClothingShop
         {
             m_c1 = null;
             m_rarity = null;
+            m_loaMainScore = null;
             m_txtName = null;
             m_icon = null;
             m_imgOwned = null;

+ 2 - 0
GameClient/Assets/Game/HotUpdate/Views/ClothingShop/ClothingShopView.cs

@@ -357,6 +357,8 @@ namespace GFGGame
             listItem.m_iconPrice.url = "ui://CommonGame/" + costItemCfg.res;
             listItem.m_imgOwned.visible = ItemDataManager.GetItemNum(cfg.itemID) > 0;
             listItem.m_txtPrice.text = ItemDataManager.GetItemNum(cfg.costID) >= cfg.costNum ? StringUtil.GetColorText(cfg.costNum.ToString(), "#DD994A") : StringUtil.GetColorText(cfg.costNum.ToString(), "#F2989B");
+            listItem.m_loaMainScore.url = ResPathUtil.GetCommonGameResPath("kp_sx_" + (itemCfg.mainScore));
+
             UI_ShopListItemRender.ProxyEnd();
         }
 

二进制
GameClient/Assets/ResIn/UI/ClothingShop/ClothingShop_fui.bytes