| | |
| | | DisplayStrengthLimit(); |
| | | DisplayTrainLimit(); |
| | | |
| | | m_ScrollRect.verticalNormalizedPosition = 0f; |
| | | m_ScrollRect.verticalNormalizedPosition = 1f; |
| | | } |
| | | #endregion |
| | | |
| | |
| | | var effectInfos = model.GetSuitEffectInfos(model.equipPosition); |
| | | foreach (var item in effectInfos) |
| | | { |
| | | m_SuitBehaviours[item.Key / 3].Display(item.Value); |
| | | m_SuitBehaviours[item.Key / 3].Display(item.Key, item.Value); |
| | | } |
| | | } |
| | | else |
| | |
| | | property); |
| | | |
| | | descriptions[i] = info.actived ? UIHelper.AppendColor(TextColType.Green, descriptions[i]) |
| | | : UIHelper.AppendColor(TextColType.White, descriptions[i]); |
| | | : UIHelper.AppendColor(TextColType.White, descriptions[i], true); |
| | | } |
| | | |
| | | m_StarProperty.text = string.Join("\n", descriptions); |
| | |
| | | EquipStarEffectTipModel.GetStarNumberCHS(info.index)); |
| | | |
| | | descriptions[i] = info.actived ? UIHelper.AppendColor(TextColType.Green, descriptions[i]) |
| | | : UIHelper.AppendColor(TextColType.White, descriptions[i]); |
| | | : UIHelper.AppendColor(TextColType.White, descriptions[i], true); |
| | | } |
| | | |
| | | m_StengthLimit.text = string.Join("\n", descriptions); |
| | |
| | | EquipStarEffectTipModel.GetStarNumberCHS(info.star), info.level); |
| | | |
| | | descriptions[i] = info.actived ? UIHelper.AppendColor(TextColType.Green, descriptions[i]) |
| | | : UIHelper.AppendColor(TextColType.White, descriptions[i]); |
| | | : UIHelper.AppendColor(TextColType.White, descriptions[i], true); |
| | | } |
| | | |
| | | m_GemHole.text = string.Join("\n", descriptions); |
| | |
| | | EquipStarEffectTipModel.GetStarNumberCHS(info.star), info.level); |
| | | |
| | | descriptions[i] = info.actived ? UIHelper.AppendColor(TextColType.Green, descriptions[i]) |
| | | : UIHelper.AppendColor(TextColType.White, descriptions[i]); |
| | | : UIHelper.AppendColor(TextColType.White, descriptions[i], true); |
| | | } |
| | | |
| | | m_TrainLimit.text = string.Join("\n", descriptions); |
| | |
| | | public Text title; |
| | | public Text content; |
| | | |
| | | public void Display(List<EquipStarEffectTipModel.SuitEffectInfo> effectInfos) |
| | | public void Display(int star, List<EquipStarEffectTipModel.SuitEffectInfo> effectInfos) |
| | | { |
| | | var actived = false; |
| | | var lines = new List<string>(); |
| | | foreach (var effectInfo in effectInfos) |
| | | { |
| | | switch (effectInfo.suitType) |
| | | { |
| | | case EquipSuitType.TwoSuit: |
| | | for (int i = 0; i < effectInfo.properties.Count; i++) |
| | | { |
| | | var property = effectInfo.properties[i]; |
| | | lines.Add(string.Format("(两件){0}", PlayerPropertyConfig.GetFullDescription(property.x, property.y))); |
| | | lines[lines.Count - 1] = effectInfo.actived ? UIHelper.AppendColor(TextColType.Green, lines[lines.Count - 1]) |
| | | : UIHelper.AppendColor(TextColType.White, lines[lines.Count - 1], true); |
| | | } |
| | | break; |
| | | case EquipSuitType.FiveSuit: |
| | | for (int i = 0; i < effectInfo.properties.Count; i++) |
| | | { |
| | | var property = effectInfo.properties[i]; |
| | | lines.Add(string.Format("(五件){0}", PlayerPropertyConfig.GetFullDescription(property.x, property.y))); |
| | | lines[lines.Count - 1] = effectInfo.actived ? UIHelper.AppendColor(TextColType.Green, lines[lines.Count - 1]) |
| | | : UIHelper.AppendColor(TextColType.White, lines[lines.Count - 1], true); |
| | | } |
| | | break; |
| | | case EquipSuitType.EightSuit: |
| | | for (int i = 0; i < effectInfo.properties.Count; i++) |
| | | { |
| | | var property = effectInfo.properties[i]; |
| | | lines.Add(string.Format("(八件){0}", PlayerPropertyConfig.GetFullDescription(property.x, property.y))); |
| | | lines[lines.Count - 1] = effectInfo.actived ? UIHelper.AppendColor(TextColType.Green, lines[lines.Count - 1]) |
| | | : UIHelper.AppendColor(TextColType.White, lines[lines.Count - 1], true); |
| | | } |
| | | |
| | | if (effectInfo.skillId > 0) |
| | | { |
| | | lines.Add(string.Format("(八件){0}", effectInfo.skillDescription)); |
| | | lines[lines.Count - 1] = effectInfo.actived ? UIHelper.AppendColor(TextColType.Green, lines[lines.Count - 1]) |
| | | : UIHelper.AppendColor(TextColType.White, lines[lines.Count - 1], true); |
| | | } |
| | | break; |
| | | } |
| | | |
| | | if (effectInfo.actived) |
| | | { |
| | | actived = true; |
| | | } |
| | | } |
| | | |
| | | content.text = string.Join("\n", lines.ToArray()); |
| | | |
| | | var titleDescription = string.Format("【{0}星】", EquipStarEffectTipModel.GetStarNumberCHS(star)); |
| | | title.text = actived ? UIHelper.AppendColor(TextColType.Green, titleDescription) |
| | | : UIHelper.AppendColor(TextColType.White, titleDescription, true); |
| | | } |
| | | |
| | | } |