| | |
| | | //上阵属性 |
| | | for (int i = 0; i < attrOnList.Length; i++) |
| | | { |
| | | attrOnList[i].text = PlayerPropertyConfig.GetFullDescription(new Int2(PlayerPropertyConfig.basePerAttrs[i], valuePer)); |
| | | string format = valuePer == 0 ? "{0}+{1}" : "{0}+" + UIHelper.AppendColor(TextColType.Green, "{1}", false); |
| | | attrOnList[i].text = PlayerPropertyConfig.GetFullDescription(PlayerPropertyConfig.basePerAttrs[i], valuePer, format); |
| | | } |
| | | } |
| | | |
| | |
| | | else |
| | | { |
| | | sceneHero[i].SetActive(true); |
| | | sceneHero[i].Display(teamHero.guid, i, flyFrom >= 0); |
| | | sceneHero[i].Display(teamHero.guid, i, flyFrom >= 0, true); |
| | | //按scenePosImgs 顺序排序对应位置 |
| | | sceneHero[i].transform.position = scenePosImgs[i].transform.position; |
| | | sceneHero[i].transform.localScale = Vector3.one; |
| | |
| | | [SerializeField] Transform objForfly; //点击飞入的时候的显隐控制 |
| | | |
| | | |
| | | public void Display(string guid, int index, bool isFly = false) |
| | | public void Display(string guid, int index, bool isFly = false, bool showSuggest = false) |
| | | { |
| | | var hero = HeroManager.Instance.GetHero(guid); |
| | | this.transform.localScale = Vector3.one; |
| | |
| | | posCircleImg.SetSprite("heroposcircle" + heroConfig.Quality); |
| | | |
| | | //不是推荐位则提示 |
| | | if (heroConfig.Position == 1 && TeamConst.TeamPos2Array.Contains(index) || |
| | | heroConfig.Position == 2 && TeamConst.TeamPos1Array.Contains(index)) |
| | | // if (heroConfig.Position == 1 && TeamConst.TeamPos2Array.Contains(index) || |
| | | // heroConfig.Position == 2 && TeamConst.TeamPos1Array.Contains(index)) |
| | | if (showSuggest) |
| | | { |
| | | suggestForm.SetActive(true); |
| | | jobTip.text = HeroUIManager.Instance.GetJobName(heroConfig.Class); |
| | |
| | | lvupBtnText.text = Language.Get("L1111"); |
| | | var breakConfig = HeroQualityBreakConfig.GetQualityBreakConfig(hero.Quality, hero.breakLevel); |
| | | lvupMoneyIcon.SetOrgSprite(ItemConfig.Get(breakConfig.UPCostItem[0]).IconKey); |
| | | lvupMoneyText.text = UIHelper.ShowUseItem(PackType.Item, breakConfig.UPCostItem[0], (ulong)breakConfig.UPCostItem[1]); |
| | | lvupMoneyText.text = UIHelper.ShowUseItem(PackType.Item, breakConfig.UPCostItem[0], (ulong)breakConfig.UPCostItem[1], TextColType.NavyBrown); |
| | | } |
| | | else |
| | | { |
| | | lvupBtnText.text = Language.Get("L1109"); |
| | | var lvupConfig = HeroQualityLVConfig.GetQualityLVConfig(hero.Quality, hero.heroLevel); |
| | | lvupMoneyIcon.SetOrgSprite(ItemConfig.Get(lvupConfig.UPCostItem[0]).IconKey); |
| | | lvupMoneyText.text = UIHelper.ShowUseItem(PackType.Item, lvupConfig.UPCostItem[0], (ulong)lvupConfig.UPCostItem[1]); |
| | | lvupMoneyText.text = UIHelper.ShowUseItem(PackType.Item, lvupConfig.UPCostItem[0], (ulong)lvupConfig.UPCostItem[1], TextColType.NavyBrown); |
| | | } |
| | | |
| | | } |