public string GetListText(MINE_BATTLE_RESULT_INFO info) { string empty = string.Empty; byte grade = 0; MINE_CREATE_DATA mineCreateDataFromID = BASE_MINE_CREATE_DATA.GetMineCreateDataFromID(info.i16MineDataID); if (mineCreateDataFromID != null) { grade = mineCreateDataFromID.GetGrade(); } string text = (!info.bIsHiddenName) ? TKString.NEWString(info.szEnemyGuildName) : "????"; if (info.bMeveBack) { NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2993"), "targetname", BASE_MINE_DATA.GetMineName(grade, info.i16MineDataID) }); } else if (info.bAttack) { if (info.bWin) { if (text != string.Empty) { NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2990"), "targetname", text, "targetname2", BASE_MINE_DATA.GetMineName(grade, info.i16MineDataID) }); } else { NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2991"), "targetname", BASE_MINE_DATA.GetMineName(grade, info.i16MineDataID) }); } } else if (text != string.Empty) { NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2994"), "targetname", text, "targetname2", BASE_MINE_DATA.GetMineName(grade, info.i16MineDataID) }); } else { NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("3041"), "targetname", BASE_MINE_DATA.GetMineName(grade, info.i16MineDataID) }); } } else if (!info.bAttack) { if (info.bWin) { NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2996"), "targetname", text, "targetname2", BASE_MINE_DATA.GetMineName(grade, info.i16MineDataID) }); } else { NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2995"), "targetname", text, "targetname2", BASE_MINE_DATA.GetMineName(grade, info.i16MineDataID) }); } } return(empty); }
public void SetInfo(CONGRATULATORY_MESSAGE messageNfy) { if (NrTSingleton <NkCharManager> .Instance.GetCharPersonInfo(1) == null) { return; } int charkind = messageNfy.i32params[0]; if (messageNfy.m_nItemUnique == 0 && messageNfy.m_nMsgType != 10 && messageNfy.m_nMsgType != 9) { if (NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfo(charkind) == null) { return; } this.m_dSolFrame.SetTexture(NrTSingleton <NrCharKindInfoManager> .Instance.GetSolRankBackImg(charkind)); } string text = string.Empty; string text2 = string.Empty; if (messageNfy.m_nMsgType == 1) { this.m_laTitle.Text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("61"); string text3 = TKString.NEWString(messageNfy.char_name); string text4 = string.Empty; text4 = NrTSingleton <NrCharKindInfoManager> .Instance.GetName(messageNfy.i32params[0]); string itemNameByItemUnique = NrTSingleton <ItemManager> .Instance.GetItemNameByItemUnique(messageNfy.i32params[2]); if (string.Empty != itemNameByItemUnique) { NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text2, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2559"), "charname", text3, "target", itemNameByItemUnique, "solname", text4 }); } else { NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text2, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1383"), "charname", text3, "targetname", text4 }); } this.m_iSolFace.SetSolImageTexure(eCharImageType.SMALL, charkind, messageNfy.i32params[1]); } else if (messageNfy.m_nMsgType == 3) { this.m_laTitle.Text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("61"); string text5 = TKString.NEWString(messageNfy.char_name); switch (messageNfy.i32params[1]) { case 1: if (messageNfy.i32params[2] == 0) { text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("988"); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text2, new object[] { text, "charname", text5 }); } break; case 2: if (messageNfy.i32params[2] == 0) { text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("990"); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text2, new object[] { text, "charname", text5 }); } break; case 3: { NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo; kMyCharInfo.m_kFriendInfo.UpdateFriendBabelData(messageNfy.m_nPersonID, (short)messageNfy.i32params[3], (byte)messageNfy.i32params[4], (short)((byte)messageNfy.i32params[5]), 0); if (messageNfy.i32params[2] == 0 && messageNfy.i32params[5] == 6) { text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("989"); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text2, new object[] { text, "charname", text5, "floor", messageNfy.i32params[3], "subfloor", messageNfy.i32params[4] + 1 }); } else { this.Close(); } break; } } this.m_iSolFace.SetSolImageTexure(eCharImageType.SMALL, charkind, -1); } else if (messageNfy.m_nMsgType == 2) { this.m_laTitle.Text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("556"); string text6 = TKString.NEWString(messageNfy.char_name); if (messageNfy.i32params[3] == 2) { text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1"); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text2, new object[] { text, "charname1", text6, "charname2", TKString.NEWString(messageNfy.szparam1), "floor", messageNfy.i32params[1], "subfloor", messageNfy.i32params[2] + 1 }); } else if (messageNfy.i32params[3] == 3) { text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1405"); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text2, new object[] { text, "charname1", text6, "charname2", TKString.NEWString(messageNfy.szparam1), "charname3", TKString.NEWString(messageNfy.szparam2), "floor", messageNfy.i32params[1], "subfloor", messageNfy.i32params[2] + 1 }); } else if (messageNfy.i32params[3] == 4) { text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1406"); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text2, new object[] { text, "charname1", text6, "charname2", TKString.NEWString(messageNfy.szparam1), "charname3", TKString.NEWString(messageNfy.szparam2), "charname4", TKString.NEWString(messageNfy.szparam3), "floor", messageNfy.i32params[1], "subfloor", messageNfy.i32params[2] + 1 }); } this.m_iSolFace.SetSolImageTexure(eCharImageType.SMALL, charkind, -1); } else if (messageNfy.m_nMsgType == 11) { this.m_laTitle.Text = NrTSingleton <MythRaidManager> .Instance.GetMythRaidTypeText((eMYTHRAID_DIFFICULTY)messageNfy.i32params[4]); string text7 = TKString.NEWString(messageNfy.char_name); if (messageNfy.i32params[3] == 2) { text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("3269"); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text2, new object[] { text, "charname1", text7, "charname2", TKString.NEWString(messageNfy.szparam1) }); } else if (messageNfy.i32params[3] == 3) { text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("3270"); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text2, new object[] { text, "charname1", text7, "charname2", TKString.NEWString(messageNfy.szparam1), "charname3", TKString.NEWString(messageNfy.szparam2) }); } else if (messageNfy.i32params[3] == 4) { text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("3271"); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text2, new object[] { text, "charname1", text7, "charname2", TKString.NEWString(messageNfy.szparam1), "charname3", TKString.NEWString(messageNfy.szparam2), "charname4", TKString.NEWString(messageNfy.szparam3) }); } this.m_iSolFace.SetSolImageTexure(eCharImageType.SMALL, charkind, -1); } else if (messageNfy.m_nMsgType == 4) { string text8 = TKString.NEWString(messageNfy.char_name); string text9 = NrTSingleton <NrItemSkillInfoManager> .Instance.GetPreText(messageNfy.i32params[0]) + " " + NrTSingleton <ItemManager> .Instance.GetItemNameByItemUnique(messageNfy.m_nItemUnique); TsLog.LogWarning("CharName={0} ItemName={1}, ItemUnique={2}, skilllevel={3}", new object[] { text8, text9, messageNfy.m_nItemUnique, messageNfy.i32params[1] }); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text2, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1364"), "charname", text8, "targetname", text9, "skilllevel", messageNfy.i32params[1] }); ITEM iTEM = new ITEM(); iTEM.m_nOption[2] = 6; iTEM.m_nItemUnique = messageNfy.m_nItemUnique; iTEM.m_nItemNum = messageNfy.m_nItemNum; this.m_iSolFace.SetItemTexture(iTEM); } else if (messageNfy.m_nMsgType == 6) { string text10 = TKString.NEWString(messageNfy.char_name); string itemNameByItemUnique2 = NrTSingleton <ItemManager> .Instance.GetItemNameByItemUnique(messageNfy.m_nItemUnique); if (messageNfy.i32params[0] > 0) { string itemNameByItemUnique3 = NrTSingleton <ItemManager> .Instance.GetItemNameByItemUnique(messageNfy.i32params[0]); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text2, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1932"), "charname", text10, "targetname1", itemNameByItemUnique3, "targetname", itemNameByItemUnique2 }); } else { NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text2, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1383"), "charname", text10, "targetname", itemNameByItemUnique2 }); } ITEM iTEM2 = new ITEM(); iTEM2.m_nOption[2] = 6; iTEM2.m_nItemUnique = messageNfy.m_nItemUnique; iTEM2.m_nItemNum = messageNfy.m_nItemNum; this.m_iSolFace.SetItemTexture(iTEM2); } else if (messageNfy.m_nMsgType == 5) { this.m_laTitle.Text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("61"); string text11 = TKString.NEWString(messageNfy.char_name); string text12 = string.Empty; text12 = NrTSingleton <NrCharKindInfoManager> .Instance.GetName(messageNfy.i32params[0]); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text2, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1817"), "charname", text11, "targetname", text12 }); this.m_iSolFace.SetSolImageTexure(eCharImageType.SMALL, charkind, messageNfy.i32params[1]); } else if (messageNfy.m_nMsgType == 7) { this.m_laTitle.Text = this.GetTitle_GuildMsg(messageNfy.i32params[0]); text2 = this.GetExplain_GuildMsg(messageNfy.i32params[0], messageNfy.i32params[1], messageNfy.i32params[2]); if (messageNfy.i32params[0] == 0 || messageNfy.i32params[0] == 1 || messageNfy.i32params[0] == 2) { BABEL_GUILDBOSS babelGuildBossinfo = NrTSingleton <BabelTowerManager> .Instance.GetBabelGuildBossinfo((short)messageNfy.i32params[1]); if (babelGuildBossinfo == null) { return; } NrCharKindInfo charKindInfo = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfo(babelGuildBossinfo.m_nBossKind); if (charKindInfo != null) { this.m_iSolFace.SetSolImageTexure(eCharImageType.SMALL, charKindInfo.GetCharKind(), -1); } } } else if (messageNfy.m_nMsgType == 8) { this.m_laTitle.Text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("61"); string text13 = TKString.NEWString(messageNfy.char_name); string text14 = string.Empty; text14 = NrTSingleton <NrCharKindInfoManager> .Instance.GetName(messageNfy.i32params[0]); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text2, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("3088"), "charname", text13, "solname", text14 }); this.m_iSolFace.SetSolImageTexure(eCharImageType.SMALL, charkind, messageNfy.i32params[1]); } else if (messageNfy.m_nMsgType == 9) { this.m_laTitle.Text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface(messageNfy.i32params[0].ToString()); string textFromMessageBox = NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox(messageNfy.i32params[1].ToString()); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text2, new object[] { textFromMessageBox, "targetname", TKString.NEWString(messageNfy.char_name) }); string guildPortraitURL = NrTSingleton <NkCharManager> .Instance.GetGuildPortraitURL(messageNfy.i64Param); WebFileCache.RequestImageWebFile(guildPortraitURL, new WebFileCache.ReqTextureCallback(this.ReqWebImageCallback), this.m_iSolFace); } else if (messageNfy.m_nMsgType == 10) { byte grade = (byte)messageNfy.level; short minedata_id = (short)messageNfy.i32params[0]; this.m_laTitle.Text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface(messageNfy.i32params[1].ToString()); string textFromInterface = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface(messageNfy.i32params[2].ToString()); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text2, new object[] { textFromInterface, "targetname", TKString.NEWString(messageNfy.char_name), "targetname2", BASE_MINE_DATA.GetMineName(grade, minedata_id) }); MINE_DATA mineDataFromGrade = BASE_MINE_DATA.GetMineDataFromGrade(grade); if (mineDataFromGrade != null) { this.m_iSolFace.SetTexture(mineDataFromGrade.Mine_UI_Icon); } } else if (messageNfy.m_nMsgType == 12) { this.m_laTitle.Text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("61"); string textFromInterface2 = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("3333"); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text2, new object[] { textFromInterface2, "targetname", TKString.NEWString(messageNfy.char_name), "targetname2", NrTSingleton <ItemManager> .Instance.GetItemNameByItemUnique(messageNfy.m_nItemUnique), "count", messageNfy.m_nItemNum }); this.m_iSolFace.SetTextureFromBundle("UI/Etc/goldegg"); } this.m_Label_contents.Text = text2; }
public void SetList() { this.m_lbCurrentStatus.Clear(); this.m_InfoSettingTime = Time.realtimeSinceStartup; string text = string.Empty; int num = 0; foreach (MINE_GUILD_CURRENTSTATUS_INFO current in this.m_listMineGuild_CurrentStatus) { NewListItem newListItem = new NewListItem(this.m_lbCurrentStatus.ColumnNum, true, string.Empty); MINE_CREATE_DATA mineCreateDataFromID = BASE_MINE_CREATE_DATA.GetMineCreateDataFromID(current.i16MineDataID); if (mineCreateDataFromID != null) { newListItem.SetListItemData(13, BASE_MINE_DATA.GetMineName(mineCreateDataFromID.GetGrade(), current.i16MineDataID), null, null, null); MINE_DATA mineDataFromGrade = BASE_MINE_DATA.GetMineDataFromGrade(BASE_MINE_DATA.ParseGradeFromString(mineCreateDataFromID.MINE_GRADE)); if (mineDataFromGrade != null) { UIBaseInfoLoader uIBaseInfoLoader = NrTSingleton <UIImageInfoManager> .Instance.FindUIImageDictionary(mineDataFromGrade.MINE_ICON_NAME); if (uIBaseInfoLoader != null) { newListItem.SetListItemData(6, uIBaseInfoLoader, current, new EZValueChangedDelegate(this.OnClickDefenceMilitaryInfo), null); } } int num2 = 9; string text2 = string.Empty; if (current.i64DefenceGuildID > 0L) { text2 = TKString.NEWString(current.szDefenceGuildName); if (current.bIsGuildWarDefenceGuild) { text2 = string.Format("{0}{1}", NrTSingleton <CTextParser> .Instance.GetTextColor("1401"), text2); } num2 = (int)current.byDefenceMilitaryCount; } else { text2 = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1325"); } if (100 <= NrTSingleton <NkCharManager> .Instance.m_kCharAccountInfo.m_nMasterLevel) { text2 = text2 + " " + current.i64MineID.ToString(); } newListItem.SetListItemData(2, text2, null, null, null); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1629"), "count", num2, "count2", 9 }); newListItem.SetListItemData(10, text, null, null, null); newListItem.SetListItemData(12, string.Empty, null, null, null); if (current.byCurrentStatusType == 1 || current.byCurrentStatusType == 0) { if (current.i64AttackGuildID > 0L) { text = TKString.NEWString(current.szAttackGuildName); if (current.bIsGuildWarAttackGuild) { text = string.Format("{0}{1}", NrTSingleton <CTextParser> .Instance.GetTextColor("1401"), text); } newListItem.SetListItemData(1, text, null, null, null); newListItem.SetListItemData(5, string.Empty, current, new EZValueChangedDelegate(this.OnClickAttackMilitaryInfo), null); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1629"), "count", current.byAttackMilitaryCount, "count2", 9 }); newListItem.SetListItemData(9, text, null, null, null); newListItem.SetListItemData(11, string.Empty, null, null, null); } else { newListItem.SetListItemData(1, string.Empty, null, null, null); newListItem.SetListItemData(9, string.Empty, null, null, null); newListItem.SetListItemData(11, NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1632"), null, null, null); } text = this.GetTextFromState(current); if (current.byMilitaryState == 2 || current.byMilitaryState == 3 || current.byMilitaryState == 6 || current.byMilitaryState == 7) { newListItem.SetListItemData(0, false); newListItem.SetListItemData(3, string.Empty, null, null, null); newListItem.SetListItemData(4, text, null, null, null); } else { if (current.byJoinMilitary == 0) { bool flag = true; if (current.i64AttackGuildID == NrTSingleton <NewGuildManager> .Instance.GetGuildID()) { flag = (current.byAttackMilitaryCount < 9); } else if (current.i64DefenceGuildID == NrTSingleton <NewGuildManager> .Instance.GetGuildID()) { flag = (current.byDefenceMilitaryCount < 9); } newListItem.SetListItemData(0, flag); if (flag) { UIBaseInfoLoader loader = NrTSingleton <UIImageInfoManager> .Instance.FindUIImageDictionary("Win_B_NewTileBtnBlue"); newListItem.SetListItemData(0, loader, current, new EZValueChangedDelegate(this.OnClickMilitaryBatch), null); newListItem.SetListItemData2(0, NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1323")); } } else if (current.byJoinMilitary == 1) { newListItem.SetListItemData(0, true); UIBaseInfoLoader loader2 = NrTSingleton <UIImageInfoManager> .Instance.FindUIImageDictionary("Win_B_BattleControl"); newListItem.SetListItemData(0, loader2, current, new EZValueChangedDelegate(this.OnClickMilitaryReturn), null); newListItem.SetListItemData2(0, NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1615")); } newListItem.SetListItemData(3, text, null, null, null); newListItem.SetListItemData(4, string.Empty, null, null, null); } } else if (current.byCurrentStatusType == 2) { NrCharBase @char = NrTSingleton <NkCharManager> .Instance.GetChar(1); newListItem.SetListItemData(1, @char.GetCharName(), null, null, null); text = this.GetTextFromState(current); newListItem.SetListItemData(3, string.Empty, null, null, null); newListItem.SetListItemData(4, text, null, null, null); } newListItem.Data = current; this.m_lbCurrentStatus.Add(newListItem); num++; } } NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1633"), "count1", this.m_Page, "count2", this.m_MaxPage }); this.m_bxPage.SetText(text); this.SetListAttackGuildMark(); this.m_lbCurrentStatus.RepositionItems(); }
public void SetList(GS_MINE_BATTLE_RESULT_GUILDWAR_LIST_ACK _ACK, NkDeserializePacket kDeserializePacket) { if (_ACK.i16Page != 1 && _ACK.ui8Count == 0) { return; } string text = string.Empty; this.m_Box_Page.Text = _ACK.i16Page.ToString(); this.m_nlbRecordList.Clear(); this.m_page = _ACK.i16Page; for (int i = 0; i < (int)_ACK.ui8Count; i++) { NewListItem newListItem = new NewListItem(this.m_nlbRecordList.ColumnNum, true, string.Empty); MINE_BATTLE_RESULT_GUILDWAR_INFO packet = kDeserializePacket.GetPacket <MINE_BATTLE_RESULT_GUILDWAR_INFO>(); if (i == 0) { NrTSingleton <MineManager> .Instance.m_i64FirstLegionActionID_By_List = packet.i64LegionActionID; } NrTSingleton <MineManager> .Instance.m_i64LastLegionActionID_By_List = packet.i64LegionActionID; newListItem.Data = packet; if (packet.i64BattleTime >= 0L) { DateTime dueDate = PublicMethod.GetDueDate(packet.i64BattleTime); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("602"), "year", dueDate.Year, "month", dueDate.Month, "day", dueDate.Day }); newListItem.SetListItemData(1, text, null, null, null); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1527"), "hour", dueDate.Hour, "min", dueDate.Minute, "sec", dueDate.Second }); newListItem.SetListItemData(2, text, null, null, null); } byte grade = 0; MINE_CREATE_DATA mineCreateDataFromID = BASE_MINE_CREATE_DATA.GetMineCreateDataFromID(packet.i16MineDataID); if (mineCreateDataFromID != null) { grade = mineCreateDataFromID.GetGrade(); } newListItem.SetListItemData(3, BASE_MINE_DATA.GetMineName(grade, packet.i16MineDataID), null, null, null); newListItem.SetListItemData(4, string.Empty, packet, new EZValueChangedDelegate(this.OnClickReplay), null); newListItem.SetListItemData(5, string.Empty, packet, new EZValueChangedDelegate(this.ClickShare), null); newListItem.SetListItemData(6, NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("289"), null, null, null); newListItem.SetListItemData(7, NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("496"), null, null, null); if (packet.bAttack) { if (packet.bWin) { NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2997"), "count", packet.i32GildWarPoint }); } else { text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2999"); } } else if (packet.bWin) { text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2998"); } else { text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("3000"); } newListItem.SetListItemData(9, text, null, null, null); this.m_nlbRecordList.Add(newListItem); } this.m_nlbRecordList.RepositionItems(); }