Explorar o código

背包item改用通用item

huangxiaoyue %!s(int64=2) %!d(string=hai) anos
pai
achega
f2b3d686ea

+ 9 - 6
GameClient/Assets/Game/HotUpdate/FairyGUI/GenCode/CommonGame/UI_ComItem.cs

@@ -11,14 +11,15 @@ namespace UI.CommonGame
         public Controller m_ItemType;
         public Controller m_ViewType;
         public Controller m_TouchType;
+        public Controller m_NewType;
         public GImage m_imgSelect;
         public GLoader m_loaBg;
         public GLoader m_loaIcon;
-        public GTextField m_txtCount;
-        public GTextField m_txtName;
         public GImage m_imgOnceBonus;
         public GLoader m_loaRarity;
         public GGraph m_holderReware;
+        public GTextField m_txtCount;
+        public GTextField m_txtName;
         public GButton m_btnMinus;
         public GTextField m_txtDecomHasCount;
         public GTextField m_txtDecomCount;
@@ -73,14 +74,15 @@ namespace UI.CommonGame
             m_ItemType = comp.GetController("ItemType");
             m_ViewType = comp.GetController("ViewType");
             m_TouchType = comp.GetController("TouchType");
+            m_NewType = comp.GetController("NewType");
             m_imgSelect = (GImage)comp.GetChild("imgSelect");
             m_loaBg = (GLoader)comp.GetChild("loaBg");
             m_loaIcon = (GLoader)comp.GetChild("loaIcon");
-            m_txtCount = (GTextField)comp.GetChild("txtCount");
-            m_txtName = (GTextField)comp.GetChild("txtName");
             m_imgOnceBonus = (GImage)comp.GetChild("imgOnceBonus");
             m_loaRarity = (GLoader)comp.GetChild("loaRarity");
             m_holderReware = (GGraph)comp.GetChild("holderReware");
+            m_txtCount = (GTextField)comp.GetChild("txtCount");
+            m_txtName = (GTextField)comp.GetChild("txtName");
             m_btnMinus = (GButton)comp.GetChild("btnMinus");
             m_txtDecomHasCount = (GTextField)comp.GetChild("txtDecomHasCount");
             m_txtDecomCount = (GTextField)comp.GetChild("txtDecomCount");
@@ -91,14 +93,15 @@ namespace UI.CommonGame
             m_ItemType = null;
             m_ViewType = null;
             m_TouchType = null;
+            m_NewType = null;
             m_imgSelect = null;
             m_loaBg = null;
             m_loaIcon = null;
-            m_txtCount = null;
-            m_txtName = null;
             m_imgOnceBonus = null;
             m_loaRarity = null;
             m_holderReware = null;
+            m_txtCount = null;
+            m_txtName = null;
             m_btnMinus = null;
             m_txtDecomHasCount = null;
             m_txtDecomCount = null;

+ 3 - 2
GameClient/Assets/Game/HotUpdate/Views/Bag/BagView.cs

@@ -96,9 +96,10 @@ namespace GFGGame
         {
             ItemData itemData = BagDataManager.Instance.BagDatas[index];
             ItemCfg itemCfg = ItemCfgArray.Instance.GetCfg(itemData.id);
-            UI_ListItem item = UI_ListItem.Proxy(obj);
+            UI_ComItem item = UI_ComItem.Proxy(obj);
             item.m_loaIcon.url = ResPathUtil.GetIconPath(itemCfg);
-            item.m_txtCount.SetVar("count", itemData.num.ToString()).FlushVars();
+            //item.m_txtCount.SetVar("count", itemData.num.ToString()).FlushVars();
+            item.m_txtCount.text = itemData.num.ToString();
             item.target.data = itemCfg;
             //是礼包就加入红点
             if ((itemCfg.itemType == ConstItemType.USEABLE &&

BIN=BIN
GameClient/Assets/ResIn/UI/Bag/Bag_fui.bytes


BIN=BIN
GameClient/Assets/ResIn/UI/CommonGame/CommonGame_atlas0!a.png


BIN=BIN
GameClient/Assets/ResIn/UI/CommonGame/CommonGame_atlas0.png


BIN=BIN
GameClient/Assets/ResIn/UI/CommonGame/CommonGame_fui.bytes