public void SetSolInfo(int nCharKind) { NrCharKindInfo charKindInfo = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfo(nCharKind); if (charKindInfo == null) { return; } NkSoldierInfo nkSoldierInfo = new NkSoldierInfo(); nkSoldierInfo.SetCharKind(nCharKind); nkSoldierInfo.SetLevel(1); this.m_lbName.SetText(nkSoldierInfo.GetName()); string textureFromBundle = string.Empty; if (UIDataManager.IsUse256Texture()) { textureFromBundle = "UI/Soldier/256/" + charKindInfo.GetPortraitFile1((int)nkSoldierInfo.GetGrade(), string.Empty) + "_256"; } else { textureFromBundle = "UI/Soldier/512/" + charKindInfo.GetPortraitFile1((int)nkSoldierInfo.GetGrade(), string.Empty) + "_512"; } this.m_dwSolFace.SetTextureFromBundle(textureFromBundle); if (charKindInfo.GetWeaponType() > 0) { this.m_dwWeaphonIcon.SetTexture(string.Format("Win_I_Weapon{0}", charKindInfo.GetWeaponType().ToString())); } int battleSkillUnique = charKindInfo.GetBattleSkillUnique(0); BATTLESKILL_BASE battleSkillBase = NrTSingleton <BattleSkill_Manager> .Instance.GetBattleSkillBase(battleSkillUnique); BATTLESKILL_DETAIL battleSkillDetail = NrTSingleton <BattleSkill_Manager> .Instance.GetBattleSkillDetail(battleSkillUnique, 1); if (battleSkillBase == null || battleSkillDetail == null) { return; } if (battleSkillBase.m_nColosseumSkillDesc > 0) { string textFromInterface = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface(battleSkillBase.m_nColosseumSkillDesc.ToString()); if (textFromInterface != string.Empty) { string empty = string.Empty; NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { textFromInterface, "skillname", NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface(battleSkillBase.m_strTextKey), "count", battleSkillDetail.m_nSkillNeedAngerlyPoint }); this.m_lbSkillDesc.SetText(empty); } } this.Show(); }
public void SetAniInfo(ref CHARKIND_ANIINFO aniinfo) { int weaponkey = 0; NrCharKindInfo nrCharKindInfo = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfoFromBundleName(aniinfo.BUNDLENAME); if (nrCharKindInfo != null && nrCharKindInfo.IsATB(1L)) { int weaponType = NrTSingleton <NkWeaponTypeInfoManager> .Instance.GetWeaponType(aniinfo.WEAPONTYPE); if (weaponType != nrCharKindInfo.GetWeaponType()) { weaponkey = 1; } } int charAniTypeForEvent = (int)this.m_kCharDataCodeInfo.GetCharAniTypeForEvent(aniinfo.ANITYPE); int charAniEvent = (int)this.m_kCharDataCodeInfo.GetCharAniEvent(aniinfo.EVENTTYPE); NkCharAniInfo charAniInfo = this.GetCharAniInfo(aniinfo.BUNDLENAME); if (charAniInfo != null) { charAniInfo.SetAniEventTime(weaponkey, charAniTypeForEvent, charAniEvent, aniinfo.EVENTTIME); NkCharAniMapInfo charAniMapInfo = this.GetCharAniMapInfo(aniinfo.BUNDLENAME); if (charAniMapInfo != null) { List <int> charKindList = charAniMapInfo.GetCharKindList(); foreach (int current in charKindList) { nrCharKindInfo = this.GetCharKindInfo(current); if (nrCharKindInfo != null) { nrCharKindInfo.SetAniInfo(ref charAniInfo); } } } } }
public void SetAniInfo(ref CHARKIND_ANIINFO aniinfo) { int weaponkey = 0; NrCharKindInfo charKindInfoFromBundleName = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfoFromBundleName(aniinfo.BUNDLENAME); if (charKindInfoFromBundleName != null && charKindInfoFromBundleName.IsATB(1L)) { int weaponType = NrTSingleton <NkWeaponTypeInfoManager> .Instance.GetWeaponType(aniinfo.WEAPONTYPE); if (weaponType != charKindInfoFromBundleName.GetWeaponType()) { weaponkey = 1; } } int charAniTypeForEvent = (int)this.m_kCharDataCodeInfo.GetCharAniTypeForEvent(aniinfo.ANITYPE); int charAniEvent = (int)this.m_kCharDataCodeInfo.GetCharAniEvent(aniinfo.EVENTTYPE); NkCharAniInfo charAniInfo = this.GetCharAniInfo(aniinfo.BUNDLENAME); if (charAniInfo == null) { return; } charAniInfo.SetAniEventTime(weaponkey, charAniTypeForEvent, charAniEvent, aniinfo.EVENTTIME); }
private void InitLegendDataSet(int i32CharKind) { this.m_btn_Legend.SetEnabled(false); this.m_CharKind_Legendinfo = NrTSingleton <NrBaseTableManager> .Instance.GetLegendGuide_Col(i32CharKind); if (this.m_CharKind_Legendinfo == null) { return; } NrCharKindInfo charKindInfo = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfo(this.m_CharKind_Legendinfo.i32Element_LegendCharkind); if (charKindInfo == null) { return; } this.m_Label_character_name.SetText(charKindInfo.GetName()); byte b = this.m_CharKind_Legendinfo.ui8Element_LegendGrade - 1; short legendType = NrTSingleton <NrCharKindInfoManager> .Instance.GetLegendType(i32CharKind, (int)b); this.m_DrawTexture_character.SetTextureEffect(eCharImageType.LARGE, i32CharKind, (int)b, string.Empty); UIBaseInfoLoader solLargeGradeImg = NrTSingleton <NrCharKindInfoManager> .Instance.GetSolLargeGradeImg(i32CharKind, (int)b); if (0 < legendType) { this.m_DrawTexture_rank.SetSize(solLargeGradeImg.UVs.width, solLargeGradeImg.UVs.height); } this.m_DrawTexture_rank.SetTexture(solLargeGradeImg); int weaponType = charKindInfo.GetWeaponType(); this.m_DT_WEAPON.SetTexture(string.Format("Win_I_Weapon{0}", weaponType.ToString())); int season = charKindInfo.GetSeason(b); string empty = string.Empty; NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1208"), "count", season + 1 }); this.m_Label_SeasonNum.SetText(empty); SOL_GUIDE solGuild = NrTSingleton <NrTableSolGuideManager> .Instance.GetSolGuild(this.m_CharKind_Legendinfo.i32Element_LegendCharkind); BATTLESKILL_BASE battleSkillBase = NrTSingleton <BattleSkill_Manager> .Instance.GetBattleSkillBase(solGuild.m_i32SkillUnique); if (battleSkillBase != null) { UIBaseInfoLoader battleSkillIconTexture = NrTSingleton <BattleSkill_Manager> .Instance.GetBattleSkillIconTexture(battleSkillBase.m_nSkillUnique); this.m_DT_SKILLICON.SetTexture(battleSkillIconTexture); string empty2 = string.Empty; NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty2, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1293"), "skillname", NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface(battleSkillBase.m_strTextKey) }); } else { this.m_DT_SKILLICON.SetTexture(string.Empty); } this.m_Label_Gold2.SetText(ANNUALIZED.Convert(this.m_CharKind_Legendinfo.i64NeedMoney)); this.m_Label_Essence2.SetText(ANNUALIZED.Convert(this.m_CharKind_Legendinfo.i32NeedEssence)); this.m_NewListBox_Reincarnate.Clear(); for (int i = 0; i < 5; i++) { this.m_eElement_Msg[i] = eElement_MsgType.eElement_NONE; if (i32CharKind != 0) { bool bLastElement; if (i == 4) { this.m_eElement_Msg[i] = eElement_MsgType.eElement_NONE; bLastElement = true; } else { this.m_eElement_Msg[i] = eElement_MsgType.eElement_OK; bLastElement = false; } NewListItem item = new NewListItem(this.m_NewListBox_Reincarnate.ColumnNum, true, string.Empty); this.SetLegendReincarnateListBox(ref item, i, this.m_CharKind_Legendinfo.i32Base_CharKind[i], this.m_CharKind_Legendinfo.ui8Base_LegendGrade[i], bLastElement); this.m_NewListBox_Reincarnate.Add(item); } } this.m_NewListBox_Reincarnate.RepositionItems(); }
public void SetSolList() { this.m_kSolList.Clear(); for (int i = 0; i < 4; i++) { COLOSSEUM_SUPPORTSOLDIER colosseumSupportSoldierdata = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.GetColosseumSupportSoldierdata(i); if (colosseumSupportSoldierdata != null) { int i32CharKind = colosseumSupportSoldierdata.i32CharKind; NrCharKindInfo charKindInfo = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfo(i32CharKind); if (charKindInfo != null) { NkSoldierInfo nkSoldierInfo = new NkSoldierInfo(); nkSoldierInfo.SetCharKind(i32CharKind); nkSoldierInfo.SetLevel(1); this.m_kSolList.Add(nkSoldierInfo); this.m_SoldierContoller[i].m_btSelect.data = nkSoldierInfo; this.m_SoldierContoller[i].m_lbName.SetText(nkSoldierInfo.GetName()); string textureFromBundle = string.Empty; if (UIDataManager.IsUse256Texture()) { textureFromBundle = "UI/Soldier/256/" + charKindInfo.GetPortraitFile1((int)nkSoldierInfo.GetGrade(), string.Empty) + "_256"; } else { textureFromBundle = "UI/Soldier/512/" + charKindInfo.GetPortraitFile1((int)nkSoldierInfo.GetGrade(), string.Empty) + "_512"; } this.m_SoldierContoller[i].m_dwSolFace.SetTextureFromBundle(textureFromBundle); if (charKindInfo.GetWeaponType() > 0) { this.m_SoldierContoller[i].m_dwWeaphonIcon.SetTexture(string.Format("Win_I_Weapon{0}", charKindInfo.GetWeaponType().ToString())); } int battleSkillUnique = charKindInfo.GetBattleSkillUnique(0); BATTLESKILL_BASE battleSkillBase = NrTSingleton <BattleSkill_Manager> .Instance.GetBattleSkillBase(battleSkillUnique); BATTLESKILL_DETAIL battleSkillDetail = NrTSingleton <BattleSkill_Manager> .Instance.GetBattleSkillDetail(battleSkillUnique, 1); if (battleSkillBase == null || battleSkillDetail == null) { return; } if (battleSkillBase.m_nColosseumSkillDesc > 0) { string textFromInterface = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface(battleSkillBase.m_nColosseumSkillDesc.ToString()); if (textFromInterface != string.Empty) { string empty = string.Empty; NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { textFromInterface, "skillname", NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface(battleSkillBase.m_strTextKey), "count", battleSkillDetail.m_nSkillNeedAngerlyPoint }); this.m_SoldierContoller[i].m_lbSkillDesc.SetText(empty); } } bool bShowLabel = true; int num = 0; for (int j = 0; j < 6; j++) { if (colosseumSupportSoldierdata.i32RivalCharKind[j] > 0) { NrCharKindInfo charKindInfo2 = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfo(colosseumSupportSoldierdata.i32RivalCharKind[j]); if (charKindInfo2 != null) { string textureFromBundle2 = "UI/Soldier/64/" + charKindInfo2.GetPortraitFile1((int)nkSoldierInfo.GetGrade(), string.Empty) + "_64"; this.m_SoldierContoller[i].m_dtRelationFace[num].SetTextureFromBundle(textureFromBundle2); num++; bShowLabel = false; } } } this.m_SoldierContoller[i].m_bShowLabel = bShowLabel; } } } }