| | |
| | | Button closeBtn;
|
| | | [SerializeField]
|
| | | Text dateText;
|
| | | |
| | |
|
| | | [SerializeField]
|
| | | Text conditionText;
|
| | | [SerializeField] Text needLvText;
|
| | |
| | |
|
| | | private List<GameObject> tempObjlist = new List<GameObject>();
|
| | |
|
| | | ItemTipsModel _itemTipsModel;
|
| | | ItemTipsModel itemTipsModel
|
| | | {
|
| | | get
|
| | | {
|
| | | return _itemTipsModel ?? (_itemTipsModel = ModelCenter.Instance.GetModel<ItemTipsModel>());
|
| | | }
|
| | | }
|
| | | ItemTipsModel itemTipsModel { get { return ModelCenter.Instance.GetModel<ItemTipsModel>(); } }
|
| | |
|
| | | PackModel _playerPack;
|
| | | PackModel playerPack
|
| | | {
|
| | | get { return _playerPack ?? (_playerPack = ModelCenter.Instance.GetModel<PackModel>()); }
|
| | | }
|
| | | PackModel playerPack { get { return ModelCenter.Instance.GetModel<PackModel>(); } }
|
| | |
|
| | | Color32 conditionColor = new Color32(255, 244, 205, 255);
|
| | | Color32 conditionRedColor = new Color32(255, 1, 1, 255);
|
| | |
|
| | | protected override void BindController()
|
| | | {
|
| | | |
| | |
|
| | | }
|
| | |
|
| | | protected override void AddListeners()
|
| | |
| | | protected override void OnAfterOpen()
|
| | | {
|
| | | this.transform.SetAsLastSibling();
|
| | | |
| | | }
|
| | |
|
| | | protected override void OnPreClose()
|
| | |
| | |
|
| | | protected override void OnAfterClose()
|
| | | {
|
| | |
|
| | | WindowCenter.Instance.Open<MainInterfaceWin>();
|
| | | }
|
| | |
|
| | | private void InitUI()
|
| | |
| | | CheckUselimit();
|
| | |
|
| | | string infoDes = itemTipsModel.curAttrData.GetAllInfoDes();
|
| | | if(infoDes.Contains("{Exp}"))
|
| | | if (infoDes.Contains("{Exp}"))
|
| | | {
|
| | | ulong expValue = itemTipsModel.GetAddExpValue(itemTipsModel.curAttrData.itemConfig.EffectValueA1, itemTipsModel.curAttrData.itemConfig.EffectValueB1);
|
| | | infoDes = infoDes.Replace("{Exp}", UIHelper.ReplaceLargeNum(expValue));
|
| | | }
|
| | | if(infoDes.Contains("{FightPower}"))
|
| | | if (infoDes.Contains("{FightPower}"))
|
| | | {
|
| | | int fightPower = 0;
|
| | | itemTipsModel.TryGetFightPowerByItemId(itemTipsModel.curAttrData.itemId, out fightPower);
|
| | |
| | | CreateFuncBtn();
|
| | |
|
| | | RefreshRemainTime(itemTipsModel.curAttrData.guid);
|
| | | bool isShowModel = itemTipsModel.IsShowModel(itemTipsModel.curAttrData.itemId,modelShow);
|
| | | if(isShowModel)
|
| | | bool isShowModel = itemTipsModel.IsShowModel(itemTipsModel.curAttrData.itemId, modelShow);
|
| | | if (isShowModel)
|
| | | {
|
| | | bgObj.anchoredPosition3D = new Vector3(197, 0, 0);
|
| | | modelShow.gameObject.SetActive(true);
|
| | |
| | |
|
| | | for (int i = 0; i < uselimits.Length; i++)
|
| | | {
|
| | | switch(uselimits[i])
|
| | | switch (uselimits[i])
|
| | | {
|
| | | case 0:
|
| | | if (itemTipsModel.curAttrData.itemConfig.UseLV > 1)
|
| | |
| | | realmImg.gameObject.SetActive(true);
|
| | | realmTitleText.text = Language.Get("RealmLimit1");
|
| | | RealmConfig realmConfig = RealmConfig.Get(itemTipsModel.curAttrData.itemConfig.RealmLimit);
|
| | | if(itemTipsModel.curAttrData.itemConfig.RealmLimit <= 0)
|
| | | if (itemTipsModel.curAttrData.itemConfig.RealmLimit <= 0)
|
| | | {
|
| | | realmImg.SetSprite("NoRealm");
|
| | | }
|
| | | else
|
| | | {
|
| | | if(realmConfig != null)
|
| | | if (realmConfig != null)
|
| | | {
|
| | | realmImg.SetSprite(realmConfig.Img);
|
| | | }
|