public static void RepeatBabelStart(object a_oObject) { if (Scene.CurScene != Scene.Type.BATTLE) { if (a_oObject == null) { return; } if (NrTSingleton <NkBabelMacroManager> .Instance.IsMacro()) { Battle_ResultDlg_Content battle_ResultDlg_Content = (Battle_ResultDlg_Content)NrTSingleton <FormsManager> .Instance.GetForm(G_ID.BATTLE_RESULT_CONTENT_DLG); if (battle_ResultDlg_Content != null) { battle_ResultDlg_Content.Close(); } } MsgBoxTwoCheckUI msgBoxTwoCheckUI = (MsgBoxTwoCheckUI)a_oObject; if (msgBoxTwoCheckUI == null) { return; } NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo; if (kMyCharInfo != null) { long charSubData = kMyCharInfo.GetCharSubData(eCHAR_SUBDATA.CHAR_SUBDATA_BATTLESPEED_COUNT); if (msgBoxTwoCheckUI.IsChecked(2) && charSubData > 0L) { MsgBoxAutoSellUI msgBoxAutoSellUI = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MSGBOX_AUTOSELL_DLG) as MsgBoxAutoSellUI; msgBoxAutoSellUI.SetLoadData(msgBoxTwoCheckUI.IsChecked(1), msgBoxTwoCheckUI.IsChecked(2), MsgBoxAutoSellUI.eMODE.BABEL_TOWER); } else { NrTSingleton <NkBabelMacroManager> .Instance.Start(msgBoxTwoCheckUI.IsChecked(1), false); } } else { NrTSingleton <NkBabelMacroManager> .Instance.Start(msgBoxTwoCheckUI.IsChecked(1), false); } } }
public void OnClickRepeat(IUIObject obj) { if (Scene.CurScene == Scene.Type.BATTLE) { return; } NrMyCharInfo myCharInfo = NrTSingleton <NkCharManager> .Instance.GetMyCharInfo(); COMMON_CONSTANT_Manager instance = COMMON_CONSTANT_Manager.GetInstance(); int num = 0; int num2 = 0; if (myCharInfo.ColosseumMatching) { Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("615"), SYSTEM_MESSAGE_TYPE.IMPORTANT_MESSAGE); return; } if (instance != null) { if (NrTSingleton <ContentsLimitManager> .Instance.IsVipExp()) { num2 = instance.GetValue(eCOMMON_CONSTANT.eCOMMON_CONSTANT_BATTLE_REPEAT); } else { short vipLevelAddBattleRepeat = NrTSingleton <NrTableVipManager> .Instance.GetVipLevelAddBattleRepeat(); num2 = instance.GetValue(eCOMMON_CONSTANT.eCOMMON_CONSTANT_BATTLE_REPEAT) + (int)vipLevelAddBattleRepeat; } num = instance.GetValue(eCOMMON_CONSTANT.eCOMMON_CONSTANT_BABEL_REPEAT); } if (myCharInfo.GetLevel() < num) { string empty = string.Empty; NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("781"), "level", num }); Main_UI_SystemMessage.ADDMessage(empty, SYSTEM_MESSAGE_TYPE.IMPORTANT_MESSAGE); return; } string text = " "; int nFloor = (int)this.m_nFloor; int num3 = (int)this.m_nsubFloor; if (nFloor <= 0 || num3 < 0) { string textFromNotify = NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("614"); Main_UI_SystemMessage.ADDMessage(textFromNotify, SYSTEM_MESSAGE_TYPE.IMPORTANT_MESSAGE); return; } num3++; MsgBoxTwoCheckUI msgBoxTwoCheckUI = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MSGBOX_TWOCHECK_DLG) as MsgBoxTwoCheckUI; if (this.m_nFloorType == 2) { text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2784"); } string empty2 = string.Empty; NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty2, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("186"), "type", text, "floor", nFloor.ToString(), "subfloor", num3.ToString(), "count", num2.ToString() }); msgBoxTwoCheckUI.SetCheckBoxState(1, false); msgBoxTwoCheckUI.SetCheckBoxState(2, false); msgBoxTwoCheckUI.SetMsg(new YesDelegate(BabelTowerMainDlg.RepeatBabelStart), msgBoxTwoCheckUI, null, null, NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("185"), empty2, NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("354"), null, NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("263"), new CheckBox2Delegate(BabelTowerMainDlg.CheckBattleSpeedCount), eMsgType.MB_CHECK12_OK_CANCEL); MsgBoxTwoCheckUI expr_22F = msgBoxTwoCheckUI; expr_22F.m_YesDelegatePriority = (YesDelegate)Delegate.Combine(expr_22F.m_YesDelegatePriority, new YesDelegate(this.SaveBabelFloor)); }