| | |
| | | public static void Show(ItemTipType type, int itemId) |
| | | { |
| | | tipType = type; |
| | | secondaryData = default(TipData); |
| | | mainTipData = new TipData() |
| | | { |
| | | itemId = itemId, |
| | |
| | | trainProperty = GetTrainProperty(guid) |
| | | }; |
| | | |
| | | if (tipType == ItemTipType.EquipCompare) |
| | | { |
| | | var equipedGuid = equipModel.GetEquip(item.config.LV, item.config.EquipPlace); |
| | | var equipedItem = packModel.GetItemByGuid(equipedGuid); |
| | | if (equipedItem == null) |
| | | { |
| | | tipType = ItemTipType.Equip; |
| | | secondaryData = default(TipData); |
| | | } |
| | | else |
| | | { |
| | | secondaryData = new TipData() |
| | | { |
| | | itemId = equipedItem.itemId, |
| | | guid = equipedGuid, |
| | | |
| | | baseInfo = GetBaseInfo(equipedGuid), |
| | | baseProperty = GetBaseProperty(equipedGuid), |
| | | legendProperty = GetLegendProperty(equipedGuid), |
| | | suitInfo = GetSuitInfo(equipedGuid), |
| | | strengthenProperty = GetStrengthenProperty(equipedGuid), |
| | | gemInfo = GetGemInfo(equipedGuid), |
| | | trainProperty = GetTrainProperty(equipedGuid) |
| | | }; |
| | | } |
| | | } |
| | | else |
| | | { |
| | | secondaryData = default(TipData); |
| | | } |
| | | |
| | | switch (type) |
| | | { |
| | | case ItemTipType.Item: |