| | |
| | | |
| | | public void Display(int index) |
| | | { |
| | | Int2 result = HeroUIManager.Instance.GetMaxCountHeroCountry(HeroUIManager.Instance.selectTeamType); |
| | | Int2 result = HeroUIManager.Instance.GetMaxCountHeroCountry(HeroUIManager.Instance.selectTeamType, true); |
| | | |
| | | var config = HeroLineupHaloConfig.GetConfig(result.x, result.y); |
| | | bool sameCountry = result.x == (index + 1); |
| | |
| | | string lineText = string.Empty; |
| | | bool isActive = sameCountry && count <= result.y; |
| | | string countStr = isActive ? UIHelper.AppendColor(TextColType.Green, count.ToString()) : count.ToString(); |
| | | lineText = (k == 0 ? "" : "</r>") + Language.Get("herocard37", countStr, RichTextMsgReplaceConfig.GetRichReplace("Country", index + 1)); |
| | | lineText = (k == 0 ? "" : "</r>") + Language.Get("herocard37", countStr, HeroUIManager.Instance.GetJobName(index + 1)); |
| | | var attrConfig = attrDict[count]; |
| | | for (int i = 0; i < attrConfig.AttrIDList.Length; i++) |
| | | { |