|
|
@@ -1,6 +1,7 @@
|
|
|
using System.Collections;
|
|
|
using System.Collections.Generic;
|
|
|
using System.Linq;
|
|
|
+using cfg;
|
|
|
using cfg.GfgCfg;
|
|
|
using ET;
|
|
|
using FairyGUI;
|
|
|
@@ -106,9 +107,9 @@ namespace GFGGame
|
|
|
private void ListMaterialItemRender(int index, GObject obj)
|
|
|
{
|
|
|
UI_ListMaterialsItem item = UI_ListMaterialsItem.Proxy(obj);
|
|
|
- List<ItemParamProto> materialsArr =
|
|
|
+ System.Collections.Generic.List<ItemParam> materialsArr =
|
|
|
CommonDataManager.Tables.TblSuitFosterCfg.DataList.Where(a => a.SuitId == _suitId).ToList()[_index]
|
|
|
- .Materials.ToGfgGameItemParam();
|
|
|
+ .Materials;
|
|
|
|
|
|
ItemCfg itemCfg = CommonDataManager.Tables.TblItemCfg.GetOrDefault(materialsArr[index].ItemId);
|
|
|
item.m_loaIcon.url = ResPathUtil.GetIconPath(itemCfg);
|
|
|
@@ -124,13 +125,13 @@ namespace GFGGame
|
|
|
|
|
|
private void OnListMaterialsItem(EventContext context)
|
|
|
{
|
|
|
- int[] itemData = (int[])(context.data as GComponent).data;
|
|
|
+ ItemParam itemData = (ItemParam)(context.data as GComponent).data;
|
|
|
//ViewManager.Show<ApproachOfItemView>(new object[] { itemData[0], new object[] { typeof(ClothingView).FullName, (this.viewData as object[])[4] }, itemData[1] });
|
|
|
object[] sourceDatas = new object[]
|
|
|
{
|
|
|
- itemData[0], new object[] { typeof(ClothingView).FullName, (this.viewData as object[])[3] }, itemData[1]
|
|
|
+ itemData.ItemId, new object[] { typeof(ClothingView).FullName, (this.viewData as object[])[3] }, itemData.Count
|
|
|
};
|
|
|
- GoodsItemTipsController.ShowItemTips(itemData[0], sourceDatas);
|
|
|
+ GoodsItemTipsController.ShowItemTips(itemData.ItemId, sourceDatas);
|
|
|
}
|
|
|
|
|
|
private void ListPropertyItemRender(int index, GObject obj)
|