| System/KnapSack/Logic/GuardTip.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/KnapSack/New/GuardianWin.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/Store/Logic/BuyGuardTip.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
System/KnapSack/Logic/GuardTip.cs
@@ -70,14 +70,8 @@ Dictionary<PropertyType, int> needPointDict = new Dictionary<PropertyType, int>(); ItemTipsModel _itemTipsModel; ItemTipsModel itemTipsModel { get { return _itemTipsModel ?? (_itemTipsModel = ModelCenter.Instance.GetModel<ItemTipsModel>()); } } ItemTipsModel itemTipsModel { get { return ModelCenter.Instance.GetModel<ItemTipsModel>(); } } PackModel packModel { get { return ModelCenter.Instance.GetModel<PackModel>(); } } ItemAttrData itemAttrData; Color32 conditionColor = new Color32(255, 244, 205, 255); @@ -223,12 +217,13 @@ { return; } double remainTime = 0; bool isRemain = itemAttrData.TryGetItemRemainTime(out remainTime); dateText.gameObject.SetActive(isRemain); if (isRemain) var isOverdue = ItemLogicUtility.Instance.IsOverdue(guid); dateText.gameObject.SetActive(!isOverdue); if (!isOverdue) { SetDateLimitUI(remainTime); var item = packModel.GetItemByGuid(guid); SetDateLimitUI(item != null ? item.overdueSurplusTime : 0); } } @@ -400,7 +395,8 @@ { Button btn = OnGUIButton(btnGroup.gameObject, operateBtn, key.ToString(), Language.Get(StringUtility.Contact("ItemHandle_", key.ToString()))); btn.RemoveAllListeners(); btn.onClick.AddListener(() => { btn.onClick.AddListener(() => { OnClickCloseBtn(); itemAttrData.tipsFuncBtnDic[key](key,""); System/KnapSack/New/GuardianWin.cs
@@ -9,11 +9,11 @@ using System.Collections.Generic; using UnityEngine; namespace Snxxz.UI { namespace Snxxz.UI { public class GuardianWin : Window { #region 成员变量 [SerializeField] GuardTip guardTip; @@ -27,14 +27,7 @@ private List<GameObject> TempCreatelist = new List<GameObject>(); ItemTipsModel _itemTipsModel; ItemTipsModel itemTipsModel { get { return _itemTipsModel ?? (_itemTipsModel = ModelCenter.Instance.GetModel<ItemTipsModel>()); } } ItemTipsModel itemTipsModel { get { return ModelCenter.Instance.GetModel<ItemTipsModel>(); } } #region Built-in protected override void BindController() System/Store/Logic/BuyGuardTip.cs
@@ -101,20 +101,8 @@ Dictionary<PropertyType, int> needPointDict = new Dictionary<PropertyType, int>(); ItemTipsModel _itemTipsModel; ItemTipsModel itemTipsModel { get { return _itemTipsModel ?? (_itemTipsModel = ModelCenter.Instance.GetModel<ItemTipsModel>()); } } StoreModel _storeModel; StoreModel m_storeModel { get { return _storeModel ?? (_storeModel = ModelCenter.Instance.GetModel<StoreModel>()); } } ItemTipsModel itemTipsModel { get { return ModelCenter.Instance.GetModel<ItemTipsModel>(); } } StoreModel m_storeModel { get { return ModelCenter.Instance.GetModel<StoreModel>(); } } ItemAttrData itemAttrData; BuyItemPopModel buyItem;