private void SetDirectionDummySoldier() { NrCharKindInfo charKindInfoFromCode = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfoFromCode("sol_ereina"); if (charKindInfoFromCode == null) { return; } string str = string.Empty; if (UIDataManager.IsUse256Texture()) { str = "_256"; } else { str = "_512"; } string imageKey = charKindInfoFromCode.GetPortraitFile1(6, string.Empty) + str; Texture2D texture = NrTSingleton <UIImageBundleManager> .Instance.GetTexture(imageKey); if (texture == null) { NrTSingleton <UIImageBundleManager> .Instance.RequestCharImage(imageKey, eCharImageType.LARGE, new PostProcPerItem(this.SetSolFaceImage)); } else { this.SetImageAtTarget(texture, "face"); } string imageKey2 = "font_number" + (charKindInfoFromCode.GetSeason(1) + 1).ToString(); this.SetDummyImage(imageKey2, "fx_font_number"); this.SetDummyImage("card_legend", "back"); this.SetDummyImage("rankl7", "rank"); }
public void ShowList(int _index) { NrCharKindInfo charKindInfo = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfo(this.solArray[_index].CharKind); if (charKindInfo == null) { return; } string imageKey; if (UIDataManager.IsUse256Texture()) { imageKey = charKindInfo.GetPortraitFile1((int)this.solArray[_index].Grade, string.Empty) + "_256"; } else { imageKey = charKindInfo.GetPortraitFile1((int)this.solArray[_index].Grade, string.Empty) + "_512"; } NewListItem newListItem = new NewListItem(this.nlb_CardArea1.ColumnNum, true, string.Empty); newListItem.SetListItemData(0, this._backBG, null, null, null, null); for (int i = 1; i <= 6; i++) { newListItem.SetListItemData(i, false); } newListItem.SetListItemData((int)(this.solArray[_index].Grade + 1), true); Texture2D texture = NrTSingleton <UIImageBundleManager> .Instance.GetTexture(imageKey); newListItem.SetListItemData(7, texture, null, null, null, null); string empty = string.Empty; NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1208"), "count", charKindInfo.GetSeason(this.solArray[_index].Grade) + 1 }); newListItem.SetListItemData(8, empty, null, null, null); newListItem.SetListItemData(9, true); newListItem.SetListItemData(10, true); newListItem.SetListItemData(11, charKindInfo.GetName(), null, null, null); if (_index < 6) { this.nlb_CardArea1.Add(newListItem); this.nlb_CardArea1.RepositionItems(); } else { this.nlb_CardArea2.Add(newListItem); this.nlb_CardArea2.RepositionItems(); } }
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(); }