// Token: 0x06010E1E RID: 69150 RVA: 0x0045EECC File Offset: 0x0045D0CC private void HeroJobTransferUIController_OnJobTransfer(int heroId, int jobConnectionId, Action OnSucceed) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_HeroJobTransferUIController_OnJobTransferInt32Int32Action_hotfix != null) { this.m_HeroJobTransferUIController_OnJobTransferInt32Int32Action_hotfix.call(new object[] { this, heroId, jobConnectionId, OnSucceed2 }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; Action OnSucceed = OnSucceed2; HeroJobTransferUITask $this = this; ProjectLPlayerContext projectLPlayerContext = GameManager.Instance.PlayerContext as ProjectLPlayerContext; int num = projectLPlayerContext.CanHeroJobTransfer(heroId, jobConnectionId); if (num != 0) { CommonUIController.Instance.ShowErrorMessage(num, 2f, null, true); return; } HeroJobTransferNetTask heroJobTransferNetTask = new HeroJobTransferNetTask(heroId, jobConnectionId); heroJobTransferNetTask.EventOnStop += delegate(Task task) { HeroJobTransferNetTask heroJobTransferNetTask2 = task as HeroJobTransferNetTask; if (heroJobTransferNetTask2.Result == 0) { $this.StartUpdatePipeLine(null, false, false, true); OnSucceed(); } else { CommonUIController.Instance.ShowErrorMessage(heroJobTransferNetTask2.Result, 2f, null, true); } }; heroJobTransferNetTask.Start(null); }
// Token: 0x06010B3D RID: 68413 RVA: 0x00455AC8 File Offset: 0x00453CC8 private void SetInfoByState() { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SetInfoByState_hotfix != null) { this.m_SetInfoByState_hotfix.call(new object[] { this }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; ProjectLPlayerContext projectLPlayerContext = GameManager.Instance.PlayerContext as ProjectLPlayerContext; this.m_nameText.text = this.JobConnectionInfo.m_jobInfo.Name; this.m_curJobImg.SetActive(this.m_hero.GetActiveJob().JobConnectionInfo == this.JobConnectionInfo); this.m_icon.sprite = AssetUtility.Instance.GetSprite(this.JobConnectionInfo.m_jobInfo.JobIcon); if (this.m_hero.Jobs.Find((HeroJob a) => a.JobRelatedId == this.JobConnectionInfo.ID) != null) { this.m_icon.color = new Color(1f, 1f, 1f, 1f); } else { this.m_icon.color = new Color(1f, 1f, 1f, 0.5f); } this.IsNeedMagicStone = projectLPlayerContext.IsHeroJobNeedMagicStone(this.m_hero.HeroId, this.JobConnectionInfo.ID); this.m_magicStone.SetActive(this.IsNeedMagicStone); this.IsJobLocked = (this.JobConnectionInfo.m_unlockConditions.Count != 0); this.m_lockImg.SetActive(this.IsJobLocked); this.HaveRedIcon = (this.m_hero.Jobs.Find((HeroJob job) => job.JobConnectionInfo == this.JobConnectionInfo) == null && projectLPlayerContext.CanHeroJobTransfer(this.m_hero.HeroId, this.JobConnectionInfo.ID) == 0 && !this.IsNeedMagicStone); this.m_redIcon.SetActive(this.HaveRedIcon); this.m_masterIcon.SetActive(this.IsJobMaster()); }