少年修仙传客户端代码仓库
client_linchunjie
2019-07-17 92eac12c1db108ed0158fa187fa3a66091e142db
4519 【主干】拍卖行展示装备tips错误
5个文件已修改
45 ■■■■■ 已修改文件
System/Auction/FamilyAuctioncell.cs 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Auction/FullServiceAuctioncell.cs 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Auction/MyAuctionCell.cs 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Auction/MyFocusCell.cs 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/ItemTip/ItemTipUtility.cs 33 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
System/Auction/FamilyAuctioncell.cs
@@ -102,6 +102,9 @@
                {
                    itemId = auctionItem.itemId,
                    compare = true,
                    legendProperty = ItemLogicUtility.Instance.IsRealmEquip(auctionItem.itemId) ?
                    ItemTipUtility.GetLegendProperty(auctionItem.itemId, auctionItem.userDataDict)
                    : default(ItemTipUtility.LegendProperty),
                });
            });
System/Auction/FullServiceAuctioncell.cs
@@ -123,6 +123,9 @@
                {
                    itemId = auctionItem.itemId,
                    compare = true,
                    legendProperty = ItemLogicUtility.Instance.IsRealmEquip(auctionItem.itemId) ?
                    ItemTipUtility.GetLegendProperty(auctionItem.itemId, auctionItem.userDataDict)
                    : default(ItemTipUtility.LegendProperty),
                });
            });
System/Auction/MyAuctionCell.cs
@@ -111,6 +111,9 @@
                {
                    itemId = auctionItem.itemId,
                    compare = true,
                    legendProperty = ItemLogicUtility.Instance.IsRealmEquip(auctionItem.itemId) ?
                    ItemTipUtility.GetLegendProperty(auctionItem.itemId, auctionItem.userDataDict)
                    : default(ItemTipUtility.LegendProperty),
                });
            });
            m_ItemName.text = UIHelper.GetItemName(auctionItem.itemId, true);
System/Auction/MyFocusCell.cs
@@ -104,6 +104,9 @@
                {
                    itemId = auctionItem.itemId,
                    compare = true,
                    legendProperty = ItemLogicUtility.Instance.IsRealmEquip(auctionItem.itemId) ?
                    ItemTipUtility.GetLegendProperty(auctionItem.itemId, auctionItem.userDataDict)
                    : default(ItemTipUtility.LegendProperty),
                });
            });
System/ItemTip/ItemTipUtility.cs
@@ -197,6 +197,7 @@
            public int itemId;
            public bool compare;
            public bool unfoldGetWay;
            public LegendProperty legendProperty;
        }
        static PackModel packModel { get { return ModelCenter.Instance.GetModel<PackModel>(); } }
@@ -251,6 +252,10 @@
            {
                case TipType.Equip:
                    mainTipData = CreateNormalEquipData(itemId);
                    if (!item.legendProperty.Equals(default(LegendProperty)))
                    {
                        mainTipData.legendProperty = item.legendProperty;
                    }
                    if (item.compare)
                    {
@@ -1190,6 +1195,34 @@
            return data;
        }
        public static LegendProperty GetLegendProperty(int itemId, Dictionary<int, List<int>> userData)
        {
            var data = new LegendProperty();
            data.isPreview = false;
            data.itemId = itemId;
            List<int> ids = null;
            List<int> values = null;
            if (userData != null)
            {
                userData.TryGetValue(17, out ids);
                userData.TryGetValue(17, out values);
            }
            if (!ids.IsNullOrEmpty() && !values.IsNullOrEmpty())
            {
                var properties = new List<Int2>();
                var count = Mathf.Min(ids.Count, values.Count);
                for (int i = 0; i < count; i++)
                {
                    properties.Add(new Int2(ids[i], values[i]));
                }
                data.properties = properties;
            }
            return data;
        }
        private static SuitInfo GetSuitInfo(int itemId)
        {
            var config = ItemConfig.Get(itemId);