| System/GatheringSoul/GatherSoulEquipCell.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/GatheringSoul/GatherSoulEquipListWin.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
System/GatheringSoul/GatherSoulEquipCell.cs
@@ -12,6 +12,7 @@ [SerializeField] Image m_Icon; [SerializeField] Text m_Level; [SerializeField] PropertyBehaviour[] m_Propertys; [SerializeField] RectTransform m_Redpoint; GatheringSoulModel model { @@ -23,7 +24,7 @@ get { return ModelCenter.Instance.GetModel<VirtualPackModel>(); } } public void Display(GatherSoulItem item) public void Display(GatherSoulItem item, bool requireRedpoint) { var itemConfig = Config.Instance.Get<ItemConfig>(item.id); m_Icon.SetSprite(itemConfig.IconKey); @@ -39,6 +40,7 @@ m_Propertys[i].DisplayUpper(list[i], propertyValue); } } m_Redpoint.gameObject.SetActive(requireRedpoint); } } } System/GatheringSoul/GatherSoulEquipListWin.cs
@@ -20,6 +20,8 @@ public static int selectHole = 0; bool existHoleItem = false; GatheringSoulModel model { get { return ModelCenter.Instance.GetModel<GatheringSoulModel>(); } @@ -39,6 +41,16 @@ protected override void OnPreOpen() { GatherSoulItem item; if (model.TryGetItem(selectHole, out item)) { existHoleItem = true; } else { existHoleItem = false; } Display(); model.gatherSoulPackRefresh += GatherSoulPackRefresh; } @@ -63,7 +75,7 @@ var equipCell = cell as GatherSoulEquipCell; if (cell.index < equipList.Count) { equipCell.Display(equipList[cell.index]); equipCell.Display(equipList[cell.index], existHoleItem && cell.index == 0); } }