382 武将宿缘-客户端 适配不同品质武将混搭表格配置
| | |
| | | imgUpgradeRed.SetActive(state == HeroFatesState.ActiveUpgradable); |
| | | |
| | | imgBG.SetSprite(manager.GetCellBgByFatesQuality(config.BGQuality)); |
| | | txtFateName.text = config.FatesName; |
| | | txtFateName.color = UIHelper.GetUIColorByFunc(config.BGQuality); |
| | | outlineFateName.OutlineColor = UIHelper.GetUIOutlineColor(config.BGQuality); |
| | | |
| | | |
| | | int needHeroHasCnt = manager.GetFateNeedHeroHasCnt(fatesId); |
| | | int needHeroCnt = config.HeroIDList.Length; |
| | |
| | | int fatesNowStarCnt = manager.GetFatesNowStarCnt(fatesId); |
| | | int nextNeedStarCnt = nextLVConfig.NeedStarTotal; |
| | | txtHasHeroTotalStar.text = StringUtility.Concat(Language.Get("HeroFates05"), UIHelper.AppendColor(nextNeedStarCnt <= fatesNowStarCnt ? TextColType.LightGreen : TextColType.Red, Language.Get("HeroFates11", fatesNowStarCnt, nextNeedStarCnt))); |
| | | txtFateName.color = UIHelper.GetUIColorByFunc(nextLVConfig.NeedQuality); |
| | | outlineFateName.OutlineColor = UIHelper.GetUIOutlineColor(nextLVConfig.NeedQuality); |
| | | } |
| | | |
| | | txtFateName.text = config.FatesName; |
| | | |
| | | DisplayLH(config); |
| | | |
| | | transAttr.SetActive(!isNoActive); |
| | |
| | | imgQualityHeroNull.SetActive(!isChoose); |
| | | |
| | | imgQualityHeroBg.SetItemBackGround(config.BGQuality); |
| | | imgQualityHeroIcon.SetSprite(StringUtility.Concat("HeroFatesQualityHead", config.BGQuality.ToString())); |
| | | txtQualityHeroName.text = StringUtility.Concat(RichTextMsgReplaceConfig.GetRichReplace("HeroQuality", config.BGQuality), Language.Get("herocard3")); |
| | | txtQualityHeroName.color = UIHelper.GetUIColorByFunc(config.BGQuality); |
| | | imgQualityHeroIcon.SetSprite(StringUtility.Concat("HeroFatesQualityHead", nextLVConfig.NeedQuality.ToString())); |
| | | txtQualityHeroName.text = StringUtility.Concat(RichTextMsgReplaceConfig.GetRichReplace("HeroQuality", nextLVConfig.NeedQuality), Language.Get("herocard3")); |
| | | txtQualityHeroName.color = UIHelper.GetUIColorByFunc(nextLVConfig.NeedQuality); |
| | | int needCnt = nextLVConfig.NeedHeroCnt; |
| | | txtNeedQualityHeroCnt.text = UIHelper.AppendColor(chooseCnt >= needCnt ? TextColType.DarkGreen : TextColType.Red, Language.Get("BoneField09", chooseCnt, needCnt)); |
| | | |