/// <summary> /// 加载数据 /// </summary> /// <param name="tip">tip物体</param> /// <param name="data">数据</param> private void LayoutTip(GameObject tip, object data) { TalentVO talentVO = data as TalentVO; TalentTypeVO talentTypeVO = data as TalentTypeVO; if (talentVO != null) { if (talentVO.Id > 0) { InitSetData(); if (talentVO.Level > 0) { m_DescribeLabel.text = TableUtil.GetTalentDescribe(talentVO.Id, talentVO.Level); } else { m_DescribeLabel.text = TableUtil.GetTalentDescribe(talentVO.Id, 1); } m_TalentName.text = TableUtil.GetTalentNodeName(talentVO.Id); if (m_TalentProxy.GetTalentRootVODic().TryGetValue((int)talentVO.TalentRootId, out TalentTypeVO vO)) { m_TypeLabel.text = "type"; } m_TypeLabel.text = "type"; //m_PlayerName.text = data.Name; m_UnLockLabel.text = m_TalentProxy.GetUnLockLabel((uint)talentVO.UnLockId); m_CostNum.text = m_CfgEternityProxy.GetUpLevelCost((uint)talentVO.Id, talentVO.Level).ToString(); m_LevelLabel.text = string.Format(TableUtil.GetLanguageString("shiphangar_text_1009"), talentVO.Level, talentVO.MaxLevel); } } else if (talentTypeVO != null) { if (talentTypeVO.Id > 0) { InitSetData(); m_DescribeLabel.text = TableUtil.GetTalentDescribe(talentTypeVO.Id, talentTypeVO.Level); m_TalentName.text = TableUtil.GetTalentName(talentTypeVO.Id); m_TypeLabel.text = "type"; m_LevelLabel.text = talentTypeVO.Level.ToString(); m_CostNum.text = ""; m_UnLockLabel.text = m_TalentProxy.GetUnLockLabel(talentTypeVO.UnLockId); //m_PlayerName.text = data.Name; //m_Level.text = string.Format(TableUtil.GetLanguageString("character_text_1019"), data.Level.ToString()); } } }