public void ClickOK(IUIObject obj) { if (this.m_SelectSoldierInfo != null) { if (this.m_SelectSoldierInfo.IsEquipItem()) { MsgBoxUI msgBoxUI = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MSGBOX_DLG) as MsgBoxUI; if (msgBoxUI == null) { return; } msgBoxUI.SetMsg(new YesDelegate(AuctionSellCheckDlg.MessageBoxEquipItem), this.m_SelectSoldierInfo, NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1107"), NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("189"), eMsgType.MB_OK_CANCEL, 2); msgBoxUI.SetButtonOKText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("980")); msgBoxUI.Show(); return; } else if (0L < this.m_SelectSoldierInfo.GetFriendPersonID()) { MsgBoxUI msgBoxUI2 = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MSGBOX_DLG) as MsgBoxUI; if (msgBoxUI2 == null) { return; } msgBoxUI2.SetMsg(new YesDelegate(this.MsgBoxOKUnsetSolHelp), this.m_SelectSoldierInfo, NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("156"), NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("155"), eMsgType.MB_OK_CANCEL, 2); msgBoxUI2.Show(); return; } } if (!this.IsRegister()) { NrTSingleton <FormsManager> .Instance.CloseForm(G_ID.AUCTION_SELLCHECK_DLG); return; } GS_AUCTION_REGISTER_REQ gS_AUCTION_REGISTER_REQ = new GS_AUCTION_REGISTER_REQ(); if (this.m_SelectItem != null) { gS_AUCTION_REGISTER_REQ.i32ItemPos = this.m_SelectItem.m_nItemPos; gS_AUCTION_REGISTER_REQ.i32PosType = this.m_SelectItem.m_nPosType; } if (this.m_SelectSoldierInfo != null) { gS_AUCTION_REGISTER_REQ.i64SolID = this.m_SelectSoldierInfo.GetSolID(); } if (this.m_ePayType == AuctionDefine.ePAYTYPE.ePAYTYPE_GOLD) { gS_AUCTION_REGISTER_REQ.i64CostMoney = this.m_lSellCost; gS_AUCTION_REGISTER_REQ.i64DirectCostMoney = this.m_lSellDirectCost; } else { gS_AUCTION_REGISTER_REQ.i32CostHearts = (int)this.m_lSellCost; gS_AUCTION_REGISTER_REQ.i32DirectCostHearts = (int)this.m_lSellDirectCost; } SendPacket.GetInstance().SendObject(eGAME_PACKET_ID.GS_AUCTION_REGISTER_REQ, gS_AUCTION_REGISTER_REQ); this.SetEnableControl(false); }
public void OnAgree2(IUIObject obj) { MsgBoxUI msgBoxUI = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MSGBOX_DLG) as MsgBoxUI; if (msgBoxUI == null) { return; } string empty = string.Empty; int num = COMMON_CONSTANT_Manager.GetInstance().GetValue(eCOMMON_CONSTANT.eCOMMON_CONSTANT_PROTECT_TIME_BUY2) / 60; int value = COMMON_CONSTANT_Manager.GetInstance().GetValue(eCOMMON_CONSTANT.eCOMMON_CONSTANT_PROTECT_TIME_PRICE2); if (value > NkUserInventory.GetInstance().Get_First_ItemCnt(70000)) { Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("273"), SYSTEM_MESSAGE_TYPE.IMPORTANT_MESSAGE); return; } byte b = 1; NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("151"), "timestring", num.ToString(), "num", value.ToString() }); string textFromMessageBox = NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("150"); msgBoxUI.SetMsg(new YesDelegate(this.MsgBoxOKAgree), b, textFromMessageBox, empty, eMsgType.MB_OK_CANCEL, 2); }
public void TradeCheckFail(int iResult, string strGiftUserName) { if (this.m_checkMsgBox != null) { this.m_checkMsgBox.Close(); this.m_checkMsgBox = null; } string message = NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("212"); if (strGiftUserName != string.Empty && iResult == -10) { message = NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("36"); } if (iResult == -5) { message = NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("718"); } if (iResult == 9200) { message = NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("755"); } MsgBoxUI msgBoxUI = (MsgBoxUI)NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MSGBOX_DLG); if (msgBoxUI != null) { msgBoxUI.SetMsg(null, null, NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("168"), message, eMsgType.MB_OK, 2); } NrTSingleton <ItemMallItemManager> .Instance.Trading = false; }
protected override void OnClickTranscendenceStart(IUIObject obj) { if (this.GetListBox() == null || this.GetListBox().Count <= 0) { return; } if (this._dummySolBase == null) { Debug.LogError("ERROR, SolComposeMainDlg_challengequest.cs, OnClickTranscendenceStart(), _dummySolBase = null"); return; } if (this._dummyTranScendenceMaterialSol == null) { Debug.LogError("ERROR, SolComposeMainDlg_challengequest.cs, OnClickTranscendenceStart(), _dummyTranScendenceMaterialSol = null"); return; } string textFromInterface = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2874"); string empty = string.Empty; NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("294"), "charname", this._dummySolBase.GetCharKindInfo().GetName() }); MsgBoxUI msgBoxUI = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MSGBOX_DLG) as MsgBoxUI; if (msgBoxUI == null) { return; } msgBoxUI.SetMsg(new YesDelegate(this.OnTranscendenceMsgBoxOk), null, textFromInterface, empty, eMsgType.MB_OK_CANCEL, 2); }
private void OnCalcle(IUIObject obj) { if (this.m_eQuestState == QUEST_CONST.eQUESTSTATE.QUESTSTATE_ONGOING || this.m_eQuestState == QUEST_CONST.eQUESTSTATE.QUESTSTATE_COMPLETE) { MsgBoxUI msgBoxUI = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MSGBOX_DLG) as MsgBoxUI; if (msgBoxUI != null) { msgBoxUI.SetMsg(new YesDelegate(this.CancelQuest), this.m_Quest, NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("799"), NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("126"), eMsgType.MB_OK_CANCEL, 2); msgBoxUI.SetButtonOKText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("320")); msgBoxUI.SetButtonCancelText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("321")); } } else if (this.m_eQuestState == QUEST_CONST.eQUESTSTATE.QUESTSTATE_ACCEPTABLE) { NrTSingleton <NkQuestManager> .Instance.QuestAutoMove(this.m_Quest.GetQuestUnique()); G_ID parentFormID = base.InteractivePanel.parentFormID; QuestList_DLG questList_DLG = NrTSingleton <FormsManager> .Instance.GetForm(parentFormID) as QuestList_DLG; if (questList_DLG != null) { questList_DLG.CloseDlg = true; } } else { this.Close(); } }
protected override void OnClickExtractStart(IUIObject obj) { if (this.m_SolExtract.Count <= 0) { return; } MsgBoxUI msgBoxUI = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MSGBOX_DLG) as MsgBoxUI; if (msgBoxUI == null) { return; } if (this._dummySolBase == null) { return; } string empty = string.Empty; NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("295"), "charname", this._dummySolBase.GetName() }); msgBoxUI.SetMsg(new YesDelegate(this.OnClickExtractOK), null, NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2866"), empty, eMsgType.MB_OK_CANCEL, 2); msgBoxUI.Show(); base.HideTouch(false); }
public void OnInputMyCost(InputNumberDlg a_cForm, object a_oObject) { long num = a_cForm.GetNum(); if (AuctionMainDlg.GetCostMax(this.m_ePayType) < num) { num = AuctionMainDlg.GetCostMax(this.m_ePayType); } MsgBoxUI msgBoxUI = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MSGBOX_DLG) as MsgBoxUI; if (msgBoxUI == null) { return; } string empty = string.Empty; string textColor = NrTSingleton <CTextParser> .Instance.GetTextColor("1002"); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("258"), "targetname", this.m_lbItemName.GetText() + textColor, "count", num }); msgBoxUI.SetMsg(new YesDelegate(this.MessageBoxMyCost), num, NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1104"), empty, eMsgType.MB_OK_CANCEL, 2); msgBoxUI.Show(); }
private void Click_PreViewHero(IUIObject obj) { if (obj == null) { return; } if (!(obj.Data is int)) { return; } int num = (int)obj.Data; if (NrTSingleton <NkCharManager> .Instance.GetChar(1) == null) { return; } NrCharKindInfo charKindInfo = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfo(num); if (charKindInfo == null) { TsLog.LogOnlyEditor(" [Click_PreViewHero] == SOL CHARKIND ERROR {0}" + num + " !!"); return; } MsgBoxUI msgBoxUI = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MSGBOX_DLG) as MsgBoxUI; if (msgBoxUI == null) { return; } msgBoxUI.SetMsg(new YesDelegate(this.MessageBox_PreviewHero), charKindInfo.GetCharKind(), NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("3293"), NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("438"), eMsgType.MB_OK_CANCEL, 2); msgBoxUI.Show(); }
public void ButtonClick_CompleteCombinationBatch(IUIObject obj) { SolCombinationInfo_Data solCombinationInfo_Data = (SolCombinationInfo_Data)obj.Data; if (solCombinationInfo_Data == null) { Debug.LogError("ERROR, BatchButtonMaker.cs, ButtonClick_CompleteCombinationBatch(), combinationData is Null"); return; } int combinationSolCount = solCombinationInfo_Data.GetCombinationSolCount(); int maxBatchCount = SoldierBatch_AutoBatchTool.GetMaxBatchCount(); if (maxBatchCount < combinationSolCount) { Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("416"), SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE); return; } MsgBoxUI msgBoxUI = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MSGBOX_DLG) as MsgBoxUI; string textFromMessageBox = NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("287"); string textFromMessageBox2 = NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("288"); msgBoxUI.SetMsg(new YesDelegate(this.YesClick_CompleteCombination), solCombinationInfo_Data, textFromMessageBox, textFromMessageBox2, eMsgType.MB_OK_CANCEL, 2); }
public void OnClickStart(IUIObject obj) { short guildBossLastFloor = NrTSingleton <ContentsLimitManager> .Instance.GetGuildBossLastFloor(); if (0 < guildBossLastFloor && guildBossLastFloor < this.m_GuildBossFloor) { Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("608"), SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE); return; } for (int i = 0; i < this.m_listMemberInfo.Count; i++) { if (this.m_listMemberInfo[i].i64PersonID == NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.m_PersonID) { string textFromInterface = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("3292"); string textFromMessageBox = NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("351"); MsgBoxUI msgBoxUI = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MSGBOX_DLG) as MsgBoxUI; msgBoxUI.SetMsg(new YesDelegate(this.Send_GS_NEWGUILD_BOSS_ROOMCHECK_REQ), null, textFromInterface, textFromMessageBox, eMsgType.MB_OK_CANCEL, 2); return; } } this.Send_GS_NEWGUILD_BOSS_ROOMCHECK_REQ(null); }
public void ClickOk(IUIObject obj) { this.m_newName = this.m_UserName.Text; this.m_newName = this.m_newName.Trim(); if (this.m_newName.Length == 0) { Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("51")); return; } if (this.m_newName.Length > 20) { Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("126")); return; } if (UIDataManager.IsFilterSpecialCharacters(this.m_newName, this._eCurrentService)) { Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("79")); return; } MsgBoxUI msgBoxUI = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MSGBOX_DLG) as MsgBoxUI; if (msgBoxUI != null) { msgBoxUI.SetMsg(new YesDelegate(this._onOK), this, NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("168"), NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("200"), eMsgType.MB_OK_CANCEL, 2); } }
private void OnClickLocaldMapToMapIcon(IUIObject obj) { this.m_selectMap = NrTSingleton <NrBaseTableManager> .Instance.GetMapInfo(((int)obj.Data).ToString()); if (!NrTSingleton <NkClientLogic> .Instance.ShowDownLoadUI(0, this.m_selectMap.MAP_INDEX)) { return; } TsAudioManager.Instance.AudioContainer.RequestAudioClip("UI_SFX", "MAP", "CLICK", new PostProcPerItem(NrAudioClipDownloaded.OnEventAudioClipDownloadedImmedatePlay)); string textFromMap = NrTSingleton <NrTextMgr> .Instance.GetTextFromMap(this.m_selectMap.TEXTKEY); if (textFromMap != string.Empty) { MsgBoxUI msgBoxUI = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MSGBOX_DLG) as MsgBoxUI; if (msgBoxUI == null) { return; } string empty = string.Empty; NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("4"), "mapname", textFromMap }); msgBoxUI.SetMsg(new YesDelegate(this.OnOKStart), null, NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("3"), empty, eMsgType.MB_OK_CANCEL, 2); msgBoxUI.SetButtonOKText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("109")); msgBoxUI.SetButtonCancelText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("11")); } this.HideUIGuide(); }
private void BtnReset(IUIObject obj) { if (this.m_CurQuestGroup != null) { QUEST_CONST.E_QUEST_GROUP_STATE e_QUEST_GROUP_STATE = NrTSingleton <NkQuestManager> .Instance.QuestGroupClearCheck(this.m_CurQuestGroup.GetGroupUnique()); if (e_QUEST_GROUP_STATE != QUEST_CONST.E_QUEST_GROUP_STATE.E_QUEST_GROUP_STATE_NONE) { string textFromNotify = NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("103"); Main_UI_SystemMessage.ADDMessage(textFromNotify, SYSTEM_MESSAGE_TYPE.CAUTION_MESSAGE); return; } NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo; if (kMyCharInfo != null) { } MsgBoxUI msgBoxUI = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MSGBOX_DLG) as MsgBoxUI; string textFromInterface = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("658"); string textFromMessageBox = NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("63"); string empty = string.Empty; NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { textFromMessageBox, "Targetname1", this.m_CurQuestGroup.GetGroupTitle() }); msgBoxUI.SetMsg(new YesDelegate(this.On_Ok), this.m_CurQuestGroup, textFromInterface, empty, eMsgType.MB_OK_CANCEL, 2); } }
private void BtClickUpListBox(IUIObject obj) { NkSoldierInfo nkSoldierInfo = obj.Data as NkSoldierInfo; if (nkSoldierInfo == null) { return; } long num = 0L; charSpend charSpend = NrTSingleton <NrBaseTableManager> .Instance.GetCharSpend(nkSoldierInfo.GetLevel().ToString()); if (charSpend != null) { num = charSpend.iResurrection_spend; } string empty = string.Empty; NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("175"), "targetname", nkSoldierInfo.GetName(), "count", num.ToString() }); MsgBoxUI msgBoxUI = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MSGBOX_DLG) as MsgBoxUI; msgBoxUI.SetMsg(new YesDelegate(this.OnReviveCharOk), nkSoldierInfo, NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("174"), empty, eMsgType.MB_OK_CANCEL, 2); }
private void ShowMacroResult() { MsgBoxUI msgBoxUI = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MSGBOX_DLG) as MsgBoxUI; if (msgBoxUI == null) { return; } string textFromInterface = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("3600"); string text = string.Empty; NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("3601"), "count1", this.m_iMacroWinCount, "count2", this.m_iMacroDefeatCount }); string macroResultSubMessage = this.GetMacroResultSubMessage(this.m_iMacroWinCount, this.m_iMacroDefeatCount); if (!string.IsNullOrEmpty(macroResultSubMessage)) { text = text + "\n\n" + macroResultSubMessage; } msgBoxUI.SetMessageFontSize(32); msgBoxUI.SetMsg(null, null, null, null, textFromInterface, text, eMsgType.MB_OK); msgBoxUI.Show(); }
private void BtnClickMove(IUIObject obj) { if (this.m_SelectedChallenInfo == null) { return; } if ((short)Client.m_MyCH == this.m_SelectedChallenInfo.ChannelID) { string textFromNotify = NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("560"); Main_UI_SystemMessage.ADDMessage(textFromNotify, SYSTEM_MESSAGE_TYPE.NORMAL_MESSAGE); return; } string textFromInterface = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("387"); string textFromMessageBox = NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("92"); string empty = string.Empty; MsgBoxUI msgBoxUI = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MSGBOX_DLG) as MsgBoxUI; NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { textFromMessageBox, "targetname", TKString.NEWString(this.m_SelectedChallenInfo.ChannelName) }); msgBoxUI.SetMsg(new YesDelegate(this.On_Channel_Move_Request), this.m_SelectedChallenInfo.ChannelID, textFromInterface, empty, eMsgType.MB_OK_CANCEL, 2); }
public void OnStopBabelRepeat(IUIObject obj) { eBATTLE_ROOMTYPE battleRoomtype = Battle.BATTLE.BattleRoomtype; if (battleRoomtype != eBATTLE_ROOMTYPE.eBATTLE_ROOMTYPE_BABELTOWER) { if (battleRoomtype == eBATTLE_ROOMTYPE.eBATTLE_ROOMTYPE_NEWEXPLORATION) { if (NrTSingleton <NewExplorationManager> .Instance.AutoBattle) { MsgBoxUI msgBoxUI = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MSGBOX_DLG) as MsgBoxUI; msgBoxUI.SetMsg(new YesDelegate(this.RequestNewExplorationStopAutoBattle), null, NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("3491"), NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("368"), eMsgType.MB_OK_CANCEL, 2); return; } } } else if (NrTSingleton <NkBabelMacroManager> .Instance.IsMacro()) { MsgBoxUI msgBoxUI2 = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MSGBOX_DLG) as MsgBoxUI; msgBoxUI2.SetMsg(new YesDelegate(this.RequestBabelMacroStopAndAutoBattle), null, NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("187"), NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("188"), eMsgType.MB_OK_CANCEL, 2); return; } }
public void OnRequestAllowFight(IUIObject obj) { if (this.m_nlbCharList.Count <= 0) { return; } if (this.m_nlbCharList.GetSelectItem() == null) { return; } string text = this.m_nlbCharList.GetSelectItem().Data as string; if (text == null) { return; } MsgBoxUI msgBoxUI = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MSGBOX_DLG) as MsgBoxUI; string textFromMessageBox = NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("22"); string empty = string.Empty; NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("18"), "charname", text }); msgBoxUI.SetMsg(new YesDelegate(this.OnFightAllowOK), text, textFromMessageBox, empty, eMsgType.MB_OK_CANCEL, 2); }
public void SetLeaveGuild() { NrPersonInfoUser charPersonInfo = NrTSingleton <NkCharManager> .Instance.GetCharPersonInfo(1); if (charPersonInfo == null) { return; } if (charPersonInfo.GetSoldierInfo(0) == null) { return; } string textFromInterface = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("592"); string textFromMessageBox = NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("56"); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref textFromMessageBox, new object[] { textFromMessageBox, "targetname", NrTSingleton <NewGuildManager> .Instance.GetGuildName() }); MsgBoxUI msgBoxUI = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MSGBOX_DLG) as MsgBoxUI; if (msgBoxUI != null) { msgBoxUI.SetMsg(new YesDelegate(this.MsgBoxOKEvent), null, null, null, textFromInterface, textFromMessageBox, eMsgType.MB_OK_CANCEL); msgBoxUI.SetButtonOKText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("10")); msgBoxUI.SetButtonCancelText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("11")); } }
protected override void OnClickReincarnate(IUIObject obj) { if (obj == null) { return; } NrMyCharInfo myCharInfo = NrTSingleton <NkCharManager> .Instance.GetMyCharInfo(); if (myCharInfo != null) { long charSubData = myCharInfo.GetCharSubData(eCHAR_SUBDATA.CHAR_SUBDATA_LEGENDMAKETIME); long curTime = PublicMethod.GetCurTime(); if (curTime < charSubData) { Myth_Evolution_Time_DLG myth_Evolution_Time_DLG = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MYTH_EVOLUTION_TIME_DLG) as Myth_Evolution_Time_DLG; if (myth_Evolution_Time_DLG != null) { myth_Evolution_Time_DLG.InitSet(MYTH_TYPE.MYTHTYPE_LEGEND, this.m_CharKind_Legendinfo.i32Element_LegendCharkind, 0L); } return; } } string textFromInterface = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1706"); string textFromMessageBox = NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("164"); MsgBoxUI msgBoxUI = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MSGBOX_DLG) as MsgBoxUI; msgBoxUI.SetMsg(new YesDelegate(this.OnReincarnateOK), null, textFromInterface, textFromMessageBox, eMsgType.MB_OK_CANCEL, 2); NrTSingleton <EventConditionHandler> .Instance.MythEvolutionInfoMsgBox.OnTrigger(); this.HideTouch(false); }
private void askReconnectionFailed() { this.bRequestRelogin = true; if (!TsPlatform.IsWeb && !TsPlatform.IsEditor && !TsPlatform.IsAndroid && !TsPlatform.IsIPhone) { this.m_eAutoReloginState = NkAutoRelogin.eAUTORELOGIN_STATE.E_AUTORELOGIN_STATE_RECONNECTING; return; } string textFromMessageBox = NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("162"); string textFromMessageBox2 = NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("79"); MsgBoxUI msgBoxUI = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MSGBOX_DLG) as MsgBoxUI; if (TsPlatform.IsWeb || TsPlatform.IsEditor) { msgBoxUI.SetMsg(new YesDelegate(this.Yes_Delegate), null, new NoDelegate(this.No_Delegate), null, textFromMessageBox, textFromMessageBox2, eMsgType.MB_OK); msgBoxUI.SetButtonCancelText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("216")); } else if (TsPlatform.IsIPhone) { msgBoxUI.SetMsg(new YesDelegate(this.Yes_Delegate), null, textFromMessageBox, textFromMessageBox2, eMsgType.MB_OK, 2); msgBoxUI.SetButtonOKText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2083")); } else { msgBoxUI.SetMsg(new YesDelegate(this.Yes_Delegate), null, new NoDelegate(this.No_Delegate), null, textFromMessageBox, textFromMessageBox2, eMsgType.MB_OK_CANCEL); msgBoxUI.SetButtonOKText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2083")); msgBoxUI.SetButtonCancelText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("216")); } }
public bool _StartGame() { long num; if (this.m_SelectPersonID != 0L) { num = this.m_SelectPersonID; } else if (NrTSingleton <NrMainSystem> .Instance.GetLatestPersonID() != 0L) { num = NrTSingleton <NrMainSystem> .Instance.GetLatestPersonID(); } else { num = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.m_PersonID; } if (num == 0L) { MsgBoxUI msgBoxUI = (MsgBoxUI)NrTSingleton <FormsManager> .Instance.LoadGroupForm(G_ID.MSGBOX_DLG); if (msgBoxUI != null) { msgBoxUI.SetMsg(new YesDelegate(this._OnMessageBoxOK_QuitGame), null, "경고", "personid가 0이다,,...\r\n어플을 재실행해주세요.", eMsgType.MB_OK, 2); } TsLog.LogWarning("_StartGame personid == 0", new object[0]); } GS_AUTH_SESSION_REQ gS_AUTH_SESSION_REQ = new GS_AUTH_SESSION_REQ(); gS_AUTH_SESSION_REQ.UID = NrTSingleton <NkCharManager> .Instance.m_kCharAccountInfo.m_UID; gS_AUTH_SESSION_REQ.SessionKey = NrTSingleton <NkCharManager> .Instance.m_kCharAccountInfo.m_siAuthSessionKey; gS_AUTH_SESSION_REQ.PersonID = num; gS_AUTH_SESSION_REQ.nMode = 500; SendPacket.GetInstance().SendObject(eGAME_PACKET_ID.GS_AUTH_SESSION_REQ, gS_AUTH_SESSION_REQ); return(true); }
public void OnEventDeleteUser(IUIObject obj) { Button button = obj as Button; if (this.m_SelectForm.GetShowChar(button.TabIndex)) { this._OnBottomButtonSound(); this.m_Boxdeletemsg = (MsgBoxUI)NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MSGBOX_DLG); this.m_Boxdeletemsg.SetLocation((GUICamera.width - this.m_Boxdeletemsg.GetSize().x) / 2f, ((float)Screen.height - this.m_Boxdeletemsg.GetSize().y) / 2f); string text = string.Empty; string title = string.Empty; text = NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("51"); title = NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("53"); string empty = string.Empty; NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { text, "Char_Name", this.m_SelectForm.GetName(button.TabIndex) }); this.m_Boxdeletemsg.SetMsg(new YesDelegate(this._OKCharDelete), obj, title, empty, eMsgType.MB_OK_CANCEL, 2); this.m_isConnectGameServer = false; } }
private void ClickSell(IUIObject obj) { GS_POINT_BUY_REQ gS_POINT_BUY_REQ = new GS_POINT_BUY_REQ(); if (this.m_eType == ExchangePointDlg.TYPE.TYPE_TICKET) { gS_POINT_BUY_REQ.nType = 0; gS_POINT_BUY_REQ.nItemUnique = this.m_nSelectItemUnique; gS_POINT_BUY_REQ.nItemNum = (long)this.m_nSelectItemNum; } else if (this.m_eType == ExchangePointDlg.TYPE.TYPE_EQUIPITEM) { bool flag = false; gS_POINT_BUY_REQ.nType = 1; for (int i = 0; i < 10; i++) { if (0L < this.m_nRemoveItemID[i]) { gS_POINT_BUY_REQ.nItemID[i] = this.m_nRemoveItemID[i]; ITEM itemFromItemID = NkUserInventory.instance.GetItemFromItemID(this.m_nRemoveItemID[i]); if (itemFromItemID != null) { if (itemFromItemID.IsLock()) { Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("726"), SYSTEM_MESSAGE_TYPE.NORMAL_MESSAGE_GREEN); } else { int num = itemFromItemID.m_nOption[2]; if (num >= 4) { flag = true; } } } } else { gS_POINT_BUY_REQ.nItemID[i] = 0L; } } if (flag) { string textFromInterface = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2251"); string textFromMessageBox = NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("198"); MsgBoxUI msgBoxUI = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MSGBOX_DLG) as MsgBoxUI; if (msgBoxUI != null) { msgBoxUI.SetMsg(new YesDelegate(this.MsgBoxOKEvent), gS_POINT_BUY_REQ, null, null, textFromInterface, textFromMessageBox, eMsgType.MB_OK_CANCEL); return; } } } SendPacket.GetInstance().SendObject(eGAME_PACKET_ID.GS_POINT_BUY_REQ, gS_POINT_BUY_REQ); TsAudioManager.Instance.AudioContainer.RequestAudioClip("UI_SFX", "ETC", "COMMON-SUCCESS", new PostProcPerItem(NrAudioClipDownloaded.OnEventAudioClipDownloadedImmedatePlay)); }
public void ClickStart(IUIObject obj) { NrMyCharInfo myCharInfo = NrTSingleton <NkCharManager> .Instance.GetMyCharInfo(); if (myCharInfo.ColosseumMatching && !this.m_bAiRequest) { return; } byte b = 0; if (!myCharInfo.ColosseumMatching) { b = 0; string textFromMessageBox = NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("58"); string text = string.Empty; string empty = string.Empty; MsgBoxUI msgBoxUI = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MSGBOX_DLG) as MsgBoxUI; int num = 0; for (int i = 0; i < 3; i++) { if (this.m_arColosseumBatchCharKind[i] > 0) { num++; } } int num2 = 3; if (num == 0) { Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("695"), SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE); return; } if (num < num2) { text = NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("65"); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { text, "currentnum", num, "maxnum", num2 }); msgBoxUI.SetMsg(new YesDelegate(this.OnStartMatch), null, textFromMessageBox, empty, eMsgType.MB_OK_CANCEL, 2); return; } } if (this.m_bAiRequest && b == 0) { b = 2; } GS_COLOSSEUM_START_REQ gS_COLOSSEUM_START_REQ = new GS_COLOSSEUM_START_REQ(); gS_COLOSSEUM_START_REQ.byMode = b; SendPacket.GetInstance().SendObject(eGAME_PACKET_ID.GS_COLOSSEUM_START_REQ, gS_COLOSSEUM_START_REQ); }
public bool CanBuyItemByMoneyType(eTIMESHOP_MONEYTYPE _eMoneyType, long _i64Price) { string text = string.Empty; string text2 = string.Empty; bool flag = true; if (_eMoneyType == eTIMESHOP_MONEYTYPE.eTIMESHOP_MONEYTYPE_HEARTS) { if ((long)NkUserInventory.GetInstance().Get_First_ItemCnt(70000) < _i64Price) { text2 = NrTSingleton <ItemManager> .Instance.GetItemNameByItemUnique(70000); flag = false; } } else if (_eMoneyType == eTIMESHOP_MONEYTYPE.eTIMESHOP_MONEYTYPE_GOLD) { if (NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.m_Money < _i64Price) { text2 = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("676"); flag = false; } } else if (_eMoneyType == eTIMESHOP_MONEYTYPE.eTIMESHOP_MONEYTYPE_SOULJAM) { if ((long)NkUserInventory.GetInstance().Get_First_ItemCnt(70002) < _i64Price) { text2 = NrTSingleton <ItemManager> .Instance.GetItemNameByItemUnique(70002); flag = false; } } else if (_eMoneyType == eTIMESHOP_MONEYTYPE.eTIMESHOP_MONEYTYPE_MYTHELXIR && (long)NkUserInventory.GetInstance().Get_First_ItemCnt(50311) < _i64Price) { text2 = NrTSingleton <ItemManager> .Instance.GetItemNameByItemUnique(50311); flag = false; } if (!flag) { text = NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("443"); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text, new object[] { text, "targetitem4", text2 }); MsgBoxUI msgBoxUI = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MSGBOX_DLG) as MsgBoxUI; if (msgBoxUI != null) { msgBoxUI.SetMsg(new YesDelegate(this.Open_ItemMall), _eMoneyType, string.Empty, text, eMsgType.MB_OK_CANCEL, 2); } } return(flag); }
public void OnPurchaseRequest(string campaignId, string productId) { this.ShowMessage("FiveRocks.OnPurchaseRequest(campaignId={0}, productId={1})", new object[] { campaignId, productId }); long index = 0L; string empty = string.Empty; if (long.TryParse(productId, out index)) { ITEM_MALL_ITEM item = NrTSingleton <ItemMallItemManager> .Instance.GetItem(index); if (item == null) { return; } this.m_ItemMall = item; MsgBoxUI msgBoxUI = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MSGBOX_DLG) as MsgBoxUI; if (msgBoxUI != null) { NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("78"), "targetname", NrTSingleton <NrTextMgr> .Instance.GetTextFromItem(item.m_strTextKey) }); if (item.m_nGroup == 8) { string empty2 = string.Empty; NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty2, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromItem(item.m_strTextKey), "count", item.m_nItemNum }); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("78"), "targetname", empty2 }); } msgBoxUI.OkEventImmediatelyClose = false; NrTSingleton <ItemMallItemManager> .Instance.CheckMsgBox = msgBoxUI; msgBoxUI.SetMsg(new YesDelegate(this.MsgBoxOKEvent), null, null, null, NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("845"), empty, eMsgType.MB_OK_CANCEL); } } else { NrTSingleton <FiveRocksEventData> .Instance.CheckEventData(productId); } }
public void ClickleaveApplicantAndDeclareWar(IUIObject obj) { if (0L < NrTSingleton <NewGuildManager> .Instance.GetGuildID()) { if (this.m_lGuildID == NrTSingleton <NewGuildManager> .Instance.GetGuildID()) { if (!NrTSingleton <NewGuildManager> .Instance.IsMaster(NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.m_PersonID)) { this.SetLeaveGuild(); } } else if (NrTSingleton <NewGuildManager> .Instance.CanDeclareWarSet()) { MsgBoxUI msgBoxUI = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MSGBOX_DLG) as MsgBoxUI; if (msgBoxUI == null) { return; } string title = string.Empty; string empty = string.Empty; if (!this.m_bIsDeclareWarTarget) { title = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2836"); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("264"), "targetname", this.m_strGuildName }); } else { title = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2883"); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("277"), "targetname", this.m_strGuildName }); } msgBoxUI.SetMsg(new YesDelegate(this.ClickSendDeclareWar), null, null, null, title, empty, eMsgType.MB_OK_CANCEL); } } else if (0L >= NrTSingleton <NewGuildManager> .Instance.GetGuildID()) { SendPacket.GetInstance().SendObject(1833); NewGuildApplicationDlg newGuildApplicationDlg = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.NEWGUILD_APPLICATION_DLG) as NewGuildApplicationDlg; if (newGuildApplicationDlg != null) { newGuildApplicationDlg.SetGuildInfo(this.m_strGuildName, this.m_lGuildID); } } }
private void OnclickGuest(IUIObject obk) { MsgBoxUI msgBoxUI = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MSGBOX_DLG) as MsgBoxUI; if (msgBoxUI != null) { msgBoxUI.SetMsg(new YesDelegate(this.ClickGuest), null, NrTSingleton <NrTextMgr> .Instance.GetTextFromPreloadText("2"), NrTSingleton <NrTextMgr> .Instance.GetTextFromPreloadText("36"), eMsgType.MB_OK_CANCEL, 2); } }
public void OnClickStartGuildBoss(IUIObject obj) { TsAudioManager.Instance.AudioContainer.RequestAudioClip("UI_SFX", "PLUNDER", "FORMATION-COMPLETE", new PostProcPerItem(NrAudioClipDownloaded.OnEventAudioClipDownloadedImmedatePlay)); short guildBossLastFloor = NrTSingleton <ContentsLimitManager> .Instance.GetGuildBossLastFloor(); if (0 < guildBossLastFloor && guildBossLastFloor < SoldierBatch.GUILDBOSS_INFO.m_i16Floor) { Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("608"), SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE); return; } if (!SoldierBatch.SOLDIERBATCH.IsHeroGuildBossBatch()) { string empty = string.Empty; NrCharBase @char = NrTSingleton <NkCharManager> .Instance.GetChar(1); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("124"), "charname", @char.GetCharName() }); Main_UI_SystemMessage.ADDMessage(empty, SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE); return; } int tempCount = SoldierBatch.SOLDIERBATCH.GetTempCount(); int num = 9; if (tempCount <= 0) { Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("181"), SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE); return; } string textFromMessageBox = NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("94"); string text = string.Empty; string empty2 = string.Empty; MsgBoxUI msgBoxUI = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MSGBOX_DLG) as MsgBoxUI; if (tempCount < num) { text = NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("147"); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty2, new object[] { text, "currentnum", tempCount, "maxnum", num }); msgBoxUI.SetMsg(new YesDelegate(this.OnCompleteGuildBossBatch), null, textFromMessageBox, empty2, eMsgType.MB_OK_CANCEL, 2); return; } this.OnCompleteGuildBossBatch(null); }