public void PushMessage(GS_CONGRATULATORY_MESSAGE_NFY messageNfy) { CONGRATULATORY_MESSAGE cONGRATULATORY_MESSAGE = new CONGRATULATORY_MESSAGE(); cONGRATULATORY_MESSAGE.Set(0, messageNfy); this.m_MessageQue.Enqueue(cONGRATULATORY_MESSAGE); }
public void PushGoldenEgg(char[] strName, int nItemUnique, int nItemNum) { CONGRATULATORY_MESSAGE cONGRATULATORY_MESSAGE = new CONGRATULATORY_MESSAGE(); cONGRATULATORY_MESSAGE.m_nMsgType = 12; cONGRATULATORY_MESSAGE.char_name = strName; cONGRATULATORY_MESSAGE.m_nItemUnique = nItemUnique; cONGRATULATORY_MESSAGE.m_nItemNum = nItemNum; this.m_MessageQue.Enqueue(cONGRATULATORY_MESSAGE); }
public void PushGuildWar(char[] strName, long GuildID, int titleKey, int commentKey) { CONGRATULATORY_MESSAGE cONGRATULATORY_MESSAGE = new CONGRATULATORY_MESSAGE(); cONGRATULATORY_MESSAGE.m_nMsgType = 9; cONGRATULATORY_MESSAGE.i64Param = GuildID; cONGRATULATORY_MESSAGE.i32params[0] = titleKey; cONGRATULATORY_MESSAGE.i32params[1] = commentKey; cONGRATULATORY_MESSAGE.char_name = strName; this.m_MessageQue.Enqueue(cONGRATULATORY_MESSAGE); }
public void PushGuildMessage(GS_COMMUNITY_MESSAGE_GUILD message, byte ReceibeUerType) { CONGRATULATORY_MESSAGE cONGRATULATORY_MESSAGE = new CONGRATULATORY_MESSAGE(); cONGRATULATORY_MESSAGE.m_nMsgType = 7; cONGRATULATORY_MESSAGE.m_nItemUnique = -1; cONGRATULATORY_MESSAGE.i32params[0] = message.i32SubMessageType; cONGRATULATORY_MESSAGE.i32params[1] = message.i32Param1; cONGRATULATORY_MESSAGE.i32params[2] = (int)message.i64Param2; this.m_MessageQue.Enqueue(cONGRATULATORY_MESSAGE); }
public void PushMine(char[] strName, long GuildID, byte bGrade, short i16MineDataID, int titleKey, int commentKey) { CONGRATULATORY_MESSAGE cONGRATULATORY_MESSAGE = new CONGRATULATORY_MESSAGE(); cONGRATULATORY_MESSAGE.m_nMsgType = 10; cONGRATULATORY_MESSAGE.i64Param = GuildID; cONGRATULATORY_MESSAGE.level = (short)bGrade; cONGRATULATORY_MESSAGE.i32params[0] = (int)i16MineDataID; cONGRATULATORY_MESSAGE.i32params[1] = titleKey; cONGRATULATORY_MESSAGE.i32params[2] = commentKey; cONGRATULATORY_MESSAGE.char_name = strName; this.m_MessageQue.Enqueue(cONGRATULATORY_MESSAGE); }
private void DequeueInfo() { if (this.m_MessageQue.Count <= 0) { this.Close(); return; } this.m_curMessage = this.m_MessageQue.Dequeue(); this.SetInfo(this.m_curMessage); base.SetLocation(-base.GetSizeX(), this.m_fHeight); iTween.MoveBy(base.InteractivePanel.gameObject, new Vector3(base.GetSizeX(), 0f, 0f), 4.5f); this.m_bShow = true; TsAudioManager.Container.RequestAudioClip("UI_SFX", "ETC", "CELEBRATE", new PostProcPerItem(NrAudioClipDownloaded.OnEventAudioClipDownloadedImmedatePlay)); }
public void PushElementSolGetMessage(int nSolKind, char[] strCharName, byte nGrade, byte ReceibeUerType) { if (!NrTSingleton <NkCharManager> .Instance.CheckCongraturationTime(ReceibeUerType)) { return; } CONGRATULATORY_MESSAGE cONGRATULATORY_MESSAGE = new CONGRATULATORY_MESSAGE(); cONGRATULATORY_MESSAGE.m_nMsgType = 5; cONGRATULATORY_MESSAGE.m_nPersonID = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.m_kFriendInfo.GetFriendPersonIDByName(TKString.NEWString(strCharName)); cONGRATULATORY_MESSAGE.i32params[0] = nSolKind; cONGRATULATORY_MESSAGE.i32params[1] = (int)nGrade; cONGRATULATORY_MESSAGE.char_name = strCharName; this.m_MessageQue.Enqueue(cONGRATULATORY_MESSAGE); }
public void PushItemGetMessage(GS_COMMUNITY_MESSAGE_ITEMGET message, byte ReceibeUerType) { if (!NrTSingleton <NkCharManager> .Instance.CheckCongraturationTime(ReceibeUerType)) { return; } CONGRATULATORY_MESSAGE cONGRATULATORY_MESSAGE = new CONGRATULATORY_MESSAGE(); cONGRATULATORY_MESSAGE.m_nMsgType = 6; cONGRATULATORY_MESSAGE.m_nPersonID = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.m_kFriendInfo.GetFriendPersonIDByName(TKString.NEWString(message.szCharName)); cONGRATULATORY_MESSAGE.m_nItemUnique = message.i32ItemUnique; cONGRATULATORY_MESSAGE.m_nItemNum = message.i32ItemNum; cONGRATULATORY_MESSAGE.i32params[0] = message.i32BoxItemUnique; cONGRATULATORY_MESSAGE.char_name = message.szCharName; this.m_MessageQue.Enqueue(cONGRATULATORY_MESSAGE); }
public void PushBattleResultMessage(char[] name, int facecharkind, GS_COMMUNITY_MESSAGE_BATTLE_RESULT message, byte ReceibeUerType) { if (!NrTSingleton <NkCharManager> .Instance.CheckCongraturationTime(ReceibeUerType)) { return; } CONGRATULATORY_MESSAGE cONGRATULATORY_MESSAGE = new CONGRATULATORY_MESSAGE(); cONGRATULATORY_MESSAGE.m_nMsgType = 3; cONGRATULATORY_MESSAGE.m_nPersonID = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.m_kFriendInfo.GetFriendPersonIDByName(TKString.NEWString(name)); cONGRATULATORY_MESSAGE.i32params[0] = facecharkind; cONGRATULATORY_MESSAGE.i32params[1] = (int)message.i8BattleType; cONGRATULATORY_MESSAGE.i32params[2] = (int)message.i8Result; cONGRATULATORY_MESSAGE.i32params[3] = message.i32Param1; cONGRATULATORY_MESSAGE.i32params[4] = message.i32Param2; cONGRATULATORY_MESSAGE.i32params[5] = message.i32Param3; cONGRATULATORY_MESSAGE.char_name = name; this.m_MessageQue.Enqueue(cONGRATULATORY_MESSAGE); }
public void PushMythRaidStartMessage(GS_COMMUNITY_MESSAGE_BABELTOWER_START message, byte ReceibeUerType) { if (!NrTSingleton <NkCharManager> .Instance.CheckCongraturationTime(ReceibeUerType)) { return; } CONGRATULATORY_MESSAGE cONGRATULATORY_MESSAGE = new CONGRATULATORY_MESSAGE(); cONGRATULATORY_MESSAGE.m_nMsgType = 11; cONGRATULATORY_MESSAGE.m_nPersonID = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.m_kFriendInfo.GetFriendPersonIDByName(TKString.NEWString(message.szCharName)); cONGRATULATORY_MESSAGE.i32params[0] = message.i32FaceCharKind; cONGRATULATORY_MESSAGE.i32params[1] = (int)message.i16Floor; cONGRATULATORY_MESSAGE.i32params[2] = (int)message.i16SubFloor; cONGRATULATORY_MESSAGE.i32params[3] = message.i32UserCount; cONGRATULATORY_MESSAGE.i32params[4] = (int)message.i16FloorType; cONGRATULATORY_MESSAGE.char_name = message.szCharName; cONGRATULATORY_MESSAGE.szparam1 = message.szCharName1; cONGRATULATORY_MESSAGE.szparam2 = message.szCharName2; cONGRATULATORY_MESSAGE.szparam3 = message.szCharName3; this.m_MessageQue.Enqueue(cONGRATULATORY_MESSAGE); NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.m_kFriendInfo.UpdateFriendBabelData(cONGRATULATORY_MESSAGE.m_nPersonID, (short)cONGRATULATORY_MESSAGE.i32params[1], (byte)cONGRATULATORY_MESSAGE.i32params[2], (short)cONGRATULATORY_MESSAGE.i32params[4], 0); }
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; }