public static int GetMineMoneyFromSolPossibleLevel(byte grade) { MINE_DATA mineDataFromGrade = BASE_MINE_DATA.GetMineDataFromGrade(grade); if (mineDataFromGrade != null) { return((int)mineDataFromGrade.SOLPOSSIBLELEVEL); } return(0); }
public static long GetMineMoneyFromGrade(byte grade) { MINE_DATA mineDataFromGrade = BASE_MINE_DATA.GetMineDataFromGrade(grade); if (mineDataFromGrade != null) { return(mineDataFromGrade.MINE_SEARCH_MONEY); } return(0L); }
public override bool ParseDataFromNDT(TsDataReader dr) { foreach (TsDataReader.Row data in dr) { MINE_DATA mINE_DATA = new MINE_DATA(); mINE_DATA.SetData(data); mINE_DATA.nMine_Grade = BASE_MINE_DATA.ParseGradeFromString(mINE_DATA.MINE_GRADE); BASE_MINE_DATA.m_listMineData.Add(mINE_DATA); } return(true); }
public static string GetMineName(byte grade, short minedata_id) { string empty = string.Empty; MINE_DATA mineDataFromGrade = BASE_MINE_DATA.GetMineDataFromGrade(grade); if (mineDataFromGrade != null) { NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface(mineDataFromGrade.MINE_GRADECOUNT_INTERFACEKEY), "count", (int)(minedata_id - mineDataFromGrade.MINE_CREATE_START_ID + 1) }); } return(empty); }
public void SetTextUI() { NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo; string text = string.Empty; string text2 = string.Empty; for (byte b = 1; b < 6; b += 1) { string szColorNum = string.Empty; MINE_DATA mineDataFromGrade = BASE_MINE_DATA.GetMineDataFromGrade(b); if (mineDataFromGrade != null) { if (kMyCharInfo.GetLevel() < (int)mineDataFromGrade.POSSIBLELEVEL) { szColorNum = "1305"; } else { szColorNum = "1101"; } } text2 = string.Format("{0}{1}", NrTSingleton <CTextParser> .Instance.GetTextColor(szColorNum), NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface(mineDataFromGrade.MINE_INTERFACEKEY)); this.m_laSearchGradeName[(int)b].SetText(text2); } text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1832"); int mineDayLimitCount = NrTSingleton <MineManager> .Instance.GetMineDayLimitCount(); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text2, new object[] { text, "count1", mineDayLimitCount - NrTSingleton <MineManager> .Instance.GetMineJoinCount(), "count2", mineDayLimitCount }); this.m_lagoMineJoinCount.SetText(text2); }
public void OnBtnClickSearch(IUIObject obj) { string title = string.Empty; string text = string.Empty; string message = string.Empty; byte b = (byte)obj.Data; NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo; if (kMyCharInfo.GetMilitaryList().FindEmptyMineMilitaryIndex() == -1) { message = NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("691"); Main_UI_SystemMessage.ADDMessage(message, SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE); return; } MINE_DATA mineDataFromGrade = BASE_MINE_DATA.GetMineDataFromGrade(b); NewGuildMember memberInfoFromPersonID = NrTSingleton <NewGuildManager> .Instance.GetMemberInfoFromPersonID(kMyCharInfo.m_PersonID); if (memberInfoFromPersonID == null) { return; } if (memberInfoFromPersonID.GetRank() <= NewGuildDefine.eNEWGUILD_MEMBER_RANK.eNEWGUILD_MEMBER_RANK_INITIATE) { message = NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("532"); Main_UI_SystemMessage.ADDMessage(message, SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE); return; } if (mineDataFromGrade.MINE_SEARCH_MONEY > kMyCharInfo.m_Money) { message = NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("89"); Main_UI_SystemMessage.ADDMessage(message, SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE); return; } if (kMyCharInfo.GetLevel() < (int)mineDataFromGrade.POSSIBLELEVEL) { text = NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("272"); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref message, new object[] { text, "count", mineDataFromGrade.POSSIBLELEVEL, "targetname", NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface(mineDataFromGrade.MINE_INTERFACEKEY) }); Main_UI_SystemMessage.ADDMessage(message, SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE); return; } if (!NrTSingleton <MineManager> .Instance.IsEnoughMineJoinCount()) { Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("405"), SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE); return; } if (!NrTSingleton <ContentsLimitManager> .Instance.IsValidMineGrade(b)) { return; } title = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1316"); text = NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("128"); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref message, new object[] { text, "count", mineDataFromGrade.MINE_SEARCH_MONEY, "targetname1", NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface(mineDataFromGrade.MINE_INTERFACEKEY), "targetname2", NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface(mineDataFromGrade.MINE_GRADE_INTERFACEKEY) }); MsgBoxUI msgBoxUI = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MSGBOX_DLG) as MsgBoxUI; msgBoxUI.SetMsg(new YesDelegate(this.OnSearch), b, title, message, eMsgType.MB_OK_CANCEL, 2); }
public void OnClickMilitaryBatch(IUIObject obj) { string text = string.Empty; string message = string.Empty; MINE_GUILD_CURRENTSTATUS_INFO mINE_GUILD_CURRENTSTATUS_INFO = obj.Data as MINE_GUILD_CURRENTSTATUS_INFO; if (mINE_GUILD_CURRENTSTATUS_INFO != null) { if (mINE_GUILD_CURRENTSTATUS_INFO.i64MineID <= 0L) { return; } if (0L >= NrTSingleton <NewGuildManager> .Instance.GetGuildID()) { return; } NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo; NewGuildMember memberInfoFromPersonID = NrTSingleton <NewGuildManager> .Instance.GetMemberInfoFromPersonID(kMyCharInfo.m_PersonID); if (memberInfoFromPersonID == null) { return; } if (memberInfoFromPersonID.GetRank() <= NewGuildDefine.eNEWGUILD_MEMBER_RANK.eNEWGUILD_MEMBER_RANK_INITIATE) { message = NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("532"); Main_UI_SystemMessage.ADDMessage(message, SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE); return; } MINE_CREATE_DATA mineCreateDataFromID = BASE_MINE_CREATE_DATA.GetMineCreateDataFromID(mINE_GUILD_CURRENTSTATUS_INFO.i16MineDataID); if (mineCreateDataFromID == null) { return; } MINE_DATA mineDataFromGrade = BASE_MINE_DATA.GetMineDataFromGrade(BASE_MINE_DATA.ParseGradeFromString(mineCreateDataFromID.MINE_GRADE)); if (kMyCharInfo.GetLevel() < (int)mineDataFromGrade.POSSIBLELEVEL) { text = NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("408"); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref message, new object[] { text, "count", mineDataFromGrade.POSSIBLELEVEL }); Main_UI_SystemMessage.ADDMessage(message, SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE); return; } byte nMode = 0; long nGuildID = 0L; if (mINE_GUILD_CURRENTSTATUS_INFO.i64DefenceGuildID == NrTSingleton <NewGuildManager> .Instance.GetGuildID()) { nMode = 2; nGuildID = mINE_GUILD_CURRENTSTATUS_INFO.i64DefenceGuildID; } else if (mINE_GUILD_CURRENTSTATUS_INFO.i64AttackGuildID == NrTSingleton <NewGuildManager> .Instance.GetGuildID() || mINE_GUILD_CURRENTSTATUS_INFO.i64DefenceGuildID > 0L) { nMode = 4; nGuildID = NrTSingleton <NewGuildManager> .Instance.GetGuildID(); } GS_MINE_SEARCH_REQ gS_MINE_SEARCH_REQ = new GS_MINE_SEARCH_REQ(); gS_MINE_SEARCH_REQ.bSearchMineGrade = mineCreateDataFromID.nMine_Grade; gS_MINE_SEARCH_REQ.m_nMineID = mINE_GUILD_CURRENTSTATUS_INFO.i64MineID; gS_MINE_SEARCH_REQ.m_nGuildID = nGuildID; gS_MINE_SEARCH_REQ.m_nMode = nMode; SendPacket.GetInstance().SendObject(eGAME_PACKET_ID.GS_MINE_SEARCH_REQ, gS_MINE_SEARCH_REQ); } }
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 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; }