| | |
| | | [SerializeField] HeroConnectionCell connetionForm; //羁绊 |
| | | [SerializeField] Button resetBtn; |
| | | [SerializeField] Button deleteBtn; |
| | | [SerializeField] Transform deleteTip; |
| | | [SerializeField] Button seeLhBtn; //查看立绘 |
| | | [SerializeField] SkillBaseCell normalSkillCell; |
| | | [SerializeField] SkillBaseCell angerSkillCell; |
| | |
| | | { |
| | | functionOrder = 0; |
| | | DisplayTrainOrBreak(hero); |
| | | ForceRefreshLayout(); |
| | | }); |
| | | |
| | | breakMainButton.AddListener(() => |
| | |
| | | RefreshFreeze(); |
| | | RefreshRedImg(); |
| | | DisplayTrainOrBreak(hero); |
| | | |
| | | ShowDeleteTip(); |
| | | |
| | | HeroUIManager.Instance.RemoveNewHero(hero.heroId); |
| | | ForceRefreshLayout(); |
| | | } |
| | | |
| | | |
| | | void ShowDeleteTip() |
| | | { |
| | | deleteTip.SetActive(false); |
| | | if (hero != null && hero.Quality == 1 && HeroUIManager.Instance.IsTheSameHeroFullStar(hero.heroId)) |
| | | { |
| | | |
| | | deleteTip.SetActive(true); |
| | | } |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 强制刷新Layout,解决嵌套Layout和ContentSizeFitter的重叠问题 |
| | |
| | | // SysNotifyMgr.Instance.ShowTip("UnlockHero"); |
| | | // return; |
| | | // } |
| | | HeroUIManager.Instance.jumpDeleteHeroGuid = guid; |
| | | if (CanDelete()) |
| | | { |
| | | HeroUIManager.Instance.jumpDeleteHeroGuid = guid; |
| | | } |
| | | else |
| | | { |
| | | HeroUIManager.Instance.jumpDeleteHeroGuid = ""; |
| | | } |
| | | UIManager.Instance.OpenWindow<HeroDeleteWin>(); |
| | | } |
| | | |
| | | |
| | | bool CanDelete() |
| | | { |
| | | if (hero.isActive) |
| | | return false; |
| | | |
| | | return HeroUIManager.Instance.IsTheSameHeroFullStar(hero.heroId); |
| | | } |
| | | |
| | | void RefreshStars() |
| | |
| | | } |
| | | } |
| | | |
| | | void TeamPosChangeEvent(TeamType teamType) |
| | | void TeamPosChangeEvent(int teamType) |
| | | { |
| | | if (teamType != TeamType.Story) |
| | | if (teamType != TeamManager.Instance.GetMainTeamID()) |
| | | return; |
| | | fightPowerText.text = UIHelper.ReplaceLargeArtNum(hero.CalculateFightPower()); |
| | | } |
| | |
| | | var itemPack = PackManager.Instance.GetSinglePack(PackType.Item); |
| | | |
| | | |
| | | if (heroCnt > 1) |
| | | if (heroCnt > 1 && hero.heroStar < hero.GetCurMaxStar()) |
| | | { |
| | | redpointGift.SetActive(true); |
| | | trainMainRedImg.SetActive(true); |
| | |
| | | } |
| | | |
| | | |
| | | if (!hero.IsInTeamByTeamType(TeamType.Story)) |
| | | if (!hero.IsInTeamByTeamType(BattlePreSetType.Story)) |
| | | { |
| | | return; |
| | | } |
| | | |
| | | |
| | | //5星后才能觉醒 |
| | | if (hero.heroStar >= HeroUIManager.Instance.starLevelCanAwake) |
| | | if (hero.heroStar >= HeroUIManager.Instance.starLevelCanAwake && FuncOpen.Instance.IsFuncOpen((int)FuncOpenEnum.HeroAwake)) |
| | | { |
| | | //判断觉醒材料是否足够 |
| | | var maxAwakeLV = HeroAwakeConfig.GetMaxAwakeLV(hero.heroId); |