| | |
| | | int equipPlace = equipPlaces[0];
|
| | | List<int> activeEquips = null;
|
| | | bool isActive = equipModel.TryGetIsActiveSuit(equipPlace,suitAttrData.suitLv,out activeEquips);
|
| | | activeObj.SetActive(!isActive);
|
| | | if(!isActive)
|
| | | bool isShowActiveObj = !isActive || type == PackType.rptJadeDynastyItem;
|
| | | activeObj.SetActive(isShowActiveObj);
|
| | | if(isShowActiveObj)
|
| | | {
|
| | | string equipsName = string.Empty;
|
| | | for(int i = 0; i < equipPlaces.Count; i++)
|
| | | {
|
| | | var place = equipPlaces[i];
|
| | | string equipName = Language.Get(((RoleEquipType)place).ToString());
|
| | | if (activeEquips.Contains(place))
|
| | | if (activeEquips.Contains(place) && type == PackType.rptJadeDynastyEquip)
|
| | | {
|
| | | equipName = UIHelper.AppendStringColor(TextColType.Green,equipName);
|
| | | }
|
| | |
| | | var attrText = attrTextlist[i];
|
| | | var attrConfig = Config.Instance.Get<PlayerPropertyConfig>(attrId);
|
| | | string attrSB = string.Empty;
|
| | | string attrValueSB = string.Empty;
|
| | | if (isActive)
|
| | | {
|
| | | attrValueSB = UIHelper.AppendStringColor(TextColType.Green, tipsModel.GetProValueTypeStr(attrConfig, attrValue));
|
| | | }
|
| | | else
|
| | | {
|
| | | attrValueSB = UIHelper.AppendStringColor(TextColType.Gray, tipsModel.GetProValueTypeStr(attrConfig, attrValue));
|
| | | }
|
| | | string attrValueSB = tipsModel.GetProValueTypeStr(attrConfig, attrValue); ;
|
| | | if (attrConfig.Name.Contains("%s"))
|
| | | {
|
| | | attrSB = attrConfig.Name.Replace("%s", attrValueSB);
|