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(); }
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(); }
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 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 static void ShowMessageBoxEquipItem() { MsgBoxUI msgBoxUI = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MSGBOX_DLG) as MsgBoxUI; if (msgBoxUI == null) { return; } msgBoxUI.SetMsg(new YesDelegate(CharChangeMainDlg.MessageBoxEquipItem), null, NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("951"), NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("91"), eMsgType.MB_OK_CANCEL, 2); msgBoxUI.SetButtonOKText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("980")); msgBoxUI.Show(); }
private void SendMailShowMessageBox(string dumpMsg) { MsgBoxUI msgBoxUI = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MSGBOX_DLG) as MsgBoxUI; if (msgBoxUI == null) { return; } string title = "Error"; string text = NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("437"); if (string.IsNullOrEmpty(text)) { text = "Send Error Message?"; } msgBoxUI.SetMsg(new YesDelegate(this.Yes), dumpMsg, title, text, eMsgType.MB_OK_CANCEL, 2); msgBoxUI.Show(); }
private void Click_PreViewHero(IUIObject obj) { if (this.pkSolinfo == null) { return; } if (this.pkSolinfo.GetCharKindInfo() == null) { return; } MsgBoxUI msgBoxUI = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MSGBOX_DLG) as MsgBoxUI; if (msgBoxUI == null) { return; } msgBoxUI.SetMsg(new YesDelegate(this.MessageBox_PreviewHero), this.pkSolinfo, NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("3293"), NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("438"), eMsgType.MB_OK_CANCEL, 2); msgBoxUI.Show(); }
public static void ShowMessageBoxClassChange(E_CHAR_TRIBE eCharTribe) { 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("87"), "targetname", CharChangeMainDlg.GetClassName(eCharTribe) }); msgBoxUI.SetMsg(new YesDelegate(CharChangeMainDlg.MessageBoxClassChangeOK), eCharTribe, NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("951"), empty, eMsgType.MB_OK_CANCEL, 2); msgBoxUI.Show(); }
protected virtual void Click_PreViewHero(IUIObject obj) { if (obj == null) { return; } NrCharKindInfo charKindInfo = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfo(this.m_CharKind_Legendinfo.i32Element_LegendCharkind); if (charKindInfo == null) { TsLog.LogOnlyEditor(" [Click_PreViewHero] == SOL CHARKIND ERROR {0}" + this.m_CharKind_Legendinfo.i32Element_LegendCharkind + " !!"); 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 BtClickFaceBookAdd(IUIObject obj) { if (!TsPlatform.IsMobile || TsPlatform.IsEditor) { return; } NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo; int limitFriendCount = BASE_FRIENDCOUNTLIMIT_DATA.GetLimitFriendCount((short)kMyCharInfo.GetLevel()); if (kMyCharInfo.m_kFriendInfo.GetFriendCount() >= limitFriendCount) { string textFromNotify = NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("630"); Main_UI_SystemMessage.ADDMessage(textFromNotify, SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE); return; } int @int = PlayerPrefs.GetInt("FacebookGetFriend:" + kMyCharInfo.m_PersonID.ToString()); TsLog.LogWarning("FacebookGetFriend:{0}={1}", new object[] { kMyCharInfo.m_PersonID, @int }); if (@int == 0) { string textFromInterface = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1019"); MsgBoxUI msgBoxUI = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MSGBOX_DLG) as MsgBoxUI; msgBoxUI.SetMsg(new YesDelegate(this._OnMessageBoxOK), null, new NoDelegate(this._OnMessageBoxCancel), null, NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1018"), textFromInterface, eMsgType.MB_OK_CANCEL); msgBoxUI.Show(); } else { NmFacebookManager.instance.InviteUser(); } }
public void SetPushSetting(byte Notice, byte Friend, byte Guild, bool bNotice = false) { bool[] array = new bool[3]; bool flag = false; array[0] = this.PushCheckBoxSetting(this.m_PushBlocks[0], Notice, 0, bNotice); array[1] = this.PushCheckBoxSetting(this.m_PushBlocks[1], Friend, 1, bNotice); array[2] = this.PushCheckBoxSetting(this.m_PushBlocks[2], Guild, 2, bNotice); for (int i = 0; i < 3; i++) { if (array[i]) { flag = true; break; } } if (bNotice && flag) { Debug.Log("Show MsgBox!!!"); MsgBoxUI msgBoxUI = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MSGBOX_DLG) as MsgBoxUI; if (msgBoxUI != null) { StringBuilder stringBuilder = new StringBuilder(); string textFromMessageBox = NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("94"); string empty = string.Empty; DateTime dueDate = PublicMethod.GetDueDate(PublicMethod.GetCurTime()); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("362"), "time", dueDate.ToString() }); stringBuilder.Append(empty); stringBuilder.Append("\n"); for (int j = 0; j < 3; j++) { if (array[j]) { if (this.GetPushCheckSetting(this.m_PushBlocks[j]) == 0) { NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("364"), "target", NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface((3388 + j).ToString()) }); } else { NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("363"), "target", NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface((3388 + j).ToString()) }); } stringBuilder.Append(empty); stringBuilder.Append("\n"); } } Debug.Log("ShowMsg : " + stringBuilder.ToString()); msgBoxUI.SetMsg(null, null, textFromMessageBox, stringBuilder.ToString(), eMsgType.MB_OK, 2); msgBoxUI.Show(); } } NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo; if (kMyCharInfo != null) { for (int k = 0; k < 3; k++) { kMyCharInfo.PushBlock[k] = this.GetPushCheckSetting(this.m_PushBlocks[k]); } } }