// OKボタンが押された private void cmdOK_Click(object eventSender, EventArgs eventArgs) { // 各種設定を変更 // メッセージスピード switch (cboMessageSpeed.Text ?? "") { case "神の領域": { GUI.MessageWait = 0; break; } case "超高速": { GUI.MessageWait = 200; break; } case "高速": { GUI.MessageWait = 400; break; } case "普通": { GUI.MessageWait = 700; break; } case "低速": { GUI.MessageWait = 1000; break; } case "手動送り": { GUI.MessageWait = 10000000; break; } } string argini_section = "Option"; string argini_entry = "MessageWait"; string argini_data = Microsoft.VisualBasic.Compatibility.VB6.Support.Format(GUI.MessageWait); GeneralLib.WriteIni(ref argini_section, ref argini_entry, ref argini_data); // 戦闘アニメ表示 if ((int)chkBattleAnimation.CheckState == 1) { SRC.BattleAnimation = true; string argini_section1 = "Option"; string argini_entry1 = "BattleAnimation"; string argini_data1 = "On"; GeneralLib.WriteIni(ref argini_section1, ref argini_entry1, ref argini_data1); } else { SRC.BattleAnimation = false; string argini_section2 = "Option"; string argini_entry2 = "BattleAnimation"; string argini_data2 = "Off"; GeneralLib.WriteIni(ref argini_section2, ref argini_entry2, ref argini_data2); } // 拡大戦闘アニメ表示 if ((int)chkExtendedAnimation.CheckState == 1) { SRC.ExtendedAnimation = true; string argini_section3 = "Option"; string argini_entry3 = "ExtendedAnimation"; string argini_data3 = "On"; GeneralLib.WriteIni(ref argini_section3, ref argini_entry3, ref argini_data3); } else { SRC.ExtendedAnimation = false; string argini_section4 = "Option"; string argini_entry4 = "Extendednimation"; string argini_data4 = "Off"; GeneralLib.WriteIni(ref argini_section4, ref argini_entry4, ref argini_data4); } // 武器準備アニメ表示 if ((int)chkWeaponAnimation.CheckState == 1) { SRC.WeaponAnimation = true; string argini_section5 = "Option"; string argini_entry5 = "WeaponAnimation"; string argini_data5 = "On"; GeneralLib.WriteIni(ref argini_section5, ref argini_entry5, ref argini_data5); } else { SRC.WeaponAnimation = false; string argini_section6 = "Option"; string argini_entry6 = "WeaponAnimation"; string argini_data6 = "Off"; GeneralLib.WriteIni(ref argini_section6, ref argini_entry6, ref argini_data6); } // 移動アニメ表示 if ((int)chkMoveAnimation.CheckState == 1) { SRC.MoveAnimation = true; string argini_section7 = "Option"; string argini_entry7 = "MoveAnimation"; string argini_data7 = "On"; GeneralLib.WriteIni(ref argini_section7, ref argini_entry7, ref argini_data7); } else { SRC.MoveAnimation = false; string argini_section8 = "Option"; string argini_entry8 = "MoveAnimation"; string argini_data8 = "Off"; GeneralLib.WriteIni(ref argini_section8, ref argini_entry8, ref argini_data8); } // スペシャルパワーアニメ表示 if ((int)chkSpecialPowerAnimation.CheckState == 1) { SRC.SpecialPowerAnimation = true; string argini_section9 = "Option"; string argini_entry9 = "SpecialPowerAnimation"; string argini_data9 = "On"; GeneralLib.WriteIni(ref argini_section9, ref argini_entry9, ref argini_data9); } else { SRC.SpecialPowerAnimation = false; string argini_section10 = "Option"; string argini_entry10 = "SpecialPowerAnimation"; string argini_data10 = "Off"; GeneralLib.WriteIni(ref argini_section10, ref argini_entry10, ref argini_data10); } // マウスカーソルの自動移動 if (Conversions.ToBoolean(chkAutoMoveCursor.CheckState)) { SRC.AutoMoveCursor = true; string argini_section11 = "Option"; string argini_entry11 = "AutoMoveCursor"; string argini_data11 = "On"; GeneralLib.WriteIni(ref argini_section11, ref argini_entry11, ref argini_data11); } else { SRC.AutoMoveCursor = false; string argini_section12 = "Option"; string argini_entry12 = "AutoMoveCursor"; string argini_data12 = "Off"; GeneralLib.WriteIni(ref argini_section12, ref argini_entry12, ref argini_data12); } // マス目の表示 if (Conversions.ToBoolean(chkShowSquareLine.CheckState)) { SRC.ShowSquareLine = true; string argini_section13 = "Option"; string argini_entry13 = "Square"; string argini_data13 = "On"; GeneralLib.WriteIni(ref argini_section13, ref argini_entry13, ref argini_data13); } else { SRC.ShowSquareLine = false; string argini_section14 = "Option"; string argini_entry14 = "Square"; string argini_data14 = "Off"; GeneralLib.WriteIni(ref argini_section14, ref argini_entry14, ref argini_data14); } // 味方フェイズ開始時のターン表示 if (Conversions.ToBoolean(chkShowTurn.CheckState)) { string argini_section15 = "Option"; string argini_entry15 = "Turn"; string argini_data15 = "On"; GeneralLib.WriteIni(ref argini_section15, ref argini_entry15, ref argini_data15); } else { string argini_section16 = "Option"; string argini_entry16 = "Turn"; string argini_data16 = "Off"; GeneralLib.WriteIni(ref argini_section16, ref argini_entry16, ref argini_data16); } // 敵フェイズ中にBGMを変更しない if (Conversions.ToBoolean(chkKeepEnemyBGM.CheckState)) { SRC.KeepEnemyBGM = true; string argini_section17 = "Option"; string argini_entry17 = "KeepEnemyBGM"; string argini_data17 = "On"; GeneralLib.WriteIni(ref argini_section17, ref argini_entry17, ref argini_data17); } else { SRC.KeepEnemyBGM = false; string argini_section18 = "Option"; string argini_entry18 = "KeepEnemyBGM"; string argini_data18 = "Off"; GeneralLib.WriteIni(ref argini_section18, ref argini_entry18, ref argini_data18); } // MIDI演奏にDirectMusicを使用する if (Conversions.ToBoolean(chkUseDirectMusic.CheckState)) { string argini_section19 = "Option"; string argini_entry19 = "UseDirectMusic"; string argini_data19 = "On"; GeneralLib.WriteIni(ref argini_section19, ref argini_entry19, ref argini_data19); } else { string argini_section20 = "Option"; string argini_entry20 = "UseDirectMusic"; string argini_data20 = "Off"; GeneralLib.WriteIni(ref argini_section20, ref argini_entry20, ref argini_data20); } // MIDI音源リセットの種類 SRC.MidiResetType = cboMidiReset.Text; string argini_section21 = "Option"; string argini_entry21 = "MidiReset"; string argini_data21 = cboMidiReset.Text; GeneralLib.WriteIni(ref argini_section21, ref argini_entry21, ref argini_data21); cboMidiReset.Text = argini_data21; // MP3再生音量 string argini_section22 = "Option"; string argini_entry22 = "MP3Volume"; string argini_data22 = Microsoft.VisualBasic.Compatibility.VB6.Support.Format(Sound.MP3Volume); GeneralLib.WriteIni(ref argini_section22, ref argini_entry22, ref argini_data22); // ダイアログを閉じる Hide(); }