예제 #1
0
 /// <summary>
 /// 写入配置
 /// </summary>
 /// <param name="strFilePath"></param>
 private void GameExpedition_WritePlacement(string strFilePath)
 {
     OperINI.WriteIni("远征海域", "远征队伍2", (this.GameExpedition_ExpeditionNumber2_comboBox.SelectedIndex + 1).ToString(), strFilePath);
     OperINI.WriteIni("远征海域", "远征队伍3", (this.GameExpedition_ExpeditionNumber3_comboBox.SelectedIndex + 1).ToString(), strFilePath);
     OperINI.WriteIni("远征海域", "远征队伍4", (this.GameExpedition_ExpeditionNumber4_comboBox.SelectedIndex + 1).ToString(), strFilePath);
     // 远征设置
     OperINI.WriteIni("远征海域", "远征单发", (ExpeditionSetting.IsSingleDepart).ToString(), strFilePath);
     OperINI.WriteIni("远征海域", "远征单发等待间隔", ExpeditionSetting.SingleDepartWaitTime.ToString(), strFilePath);
     OperINI.WriteIni("远征海域", "远征归来等待时间", ExpeditionSetting.ExpeditionWaitTime.ToString(), strFilePath);
     OperINI.WriteIni("远征海域", "远征归来等待随机时间", ExpeditionSetting.ExpeditionRanWaitTime.ToString(), strFilePath);
 }
예제 #2
0
        /// <summary>
        /// 写入配置
        /// </summary>
        /// <param name="strFilePath"></param>
        private void GameAttack_WritePlacement(string strFilePath)
        {
            var temp = "1";

            if (this.GameAttack_Placement1_radioButton.Checked)
            {
                temp = "1";
            }
            if (this.GameAttack_Placement2_radioButton.Checked)
            {
                temp = "2";
            }
            if (this.GameAttack_Placement3_radioButton.Checked)
            {
                temp = "3";
            }
            OperINI.WriteIni("出击", "选定的出击配置", temp, strFilePath);
            //GameAttack_SavePlacement_combobox_Click(null, null);
            // 出击设置
            OperINI.WriteIni("出击", "出击前置等待时间", AttackSetting.PreWaitTime.ToString(), strFilePath);
        }
예제 #3
0
        /// <summary>
        /// 存储当前配置页到文件
        /// </summary>
        /// <param name="num"></param>
        private void WritePlacement(int num)
        {
            string strFilePath = Application.StartupPath + @"\配置文件.ini";

            OperINI.WriteIni($"出击配置{num}", "出击海域", (this.GameAttack_Seas_combobox.SelectedIndex + 1).ToString(), strFilePath);
            OperINI.WriteIni($"出击配置{num}", "出击地图", (this.GameAttack_Map_combobox.SelectedIndex + 1).ToString(), strFilePath);
            OperINI.WriteIni($"出击配置{num}", "战斗发生判定1", (this.GameAttack_Battle1_comboBox.SelectedIndex).ToString(), strFilePath);
            OperINI.WriteIni($"出击配置{num}", "战斗1阵型", (this.GameAttack_Formation1_comboBox.SelectedIndex).ToString(), strFilePath);
            OperINI.WriteIni($"出击配置{num}", "战斗发生判定2", (this.GameAttack_Battle2_comboBox.SelectedIndex).ToString(), strFilePath);
            OperINI.WriteIni($"出击配置{num}", "战斗2阵型", (this.GameAttack_Formation2_comboBox.SelectedIndex).ToString(), strFilePath);
            OperINI.WriteIni($"出击配置{num}", "战斗发生判定3", (this.GameAttack_Battle3_comboBox.SelectedIndex).ToString(), strFilePath);
            OperINI.WriteIni($"出击配置{num}", "战斗3阵型", (this.GameAttack_Formation3_comboBox.SelectedIndex).ToString(), strFilePath);
            OperINI.WriteIni($"出击配置{num}", "战斗发生判定4", (this.GameAttack_Battle4_comboBox.SelectedIndex).ToString(), strFilePath);
            OperINI.WriteIni($"出击配置{num}", "战斗4阵型", (this.GameAttack_Formation4_comboBox.SelectedIndex).ToString(), strFilePath);
            OperINI.WriteIni($"出击配置{num}", "战斗发生判定5", (this.GameAttack_Battle5_comboBox.SelectedIndex).ToString(), strFilePath);
            OperINI.WriteIni($"出击配置{num}", "战斗5阵型", (this.GameAttack_Formation5_comboBox.SelectedIndex).ToString(), strFilePath);
            OperINI.WriteIni($"出击配置{num}", "是否入渠", (this.GameAttack_IsDock_checkBox.Checked).ToString(), strFilePath);
            OperINI.WriteIni($"出击配置{num}", "撤退条件", (this.GameAttack_DetectionStatus_comboBox.SelectedIndex).ToString(), strFilePath);
            OperINI.WriteIni($"出击配置{num}", "入渠基准", (this.GameAttack_DockBenchmark_comboBox.SelectedIndex).ToString(), strFilePath);
            OperINI.WriteIni($"出击配置{num}", "出击次数", (this.GameAttack_Frequency_numericUpDown.Value).ToString(), strFilePath);
            OperINI.WriteIni($"出击配置{num}", "等待固定时间", (this.GameAttack_WaitTime_textBox.Text).ToString(), strFilePath);
            OperINI.WriteIni($"出击配置{num}", "等待随机时间", (this.GameAttack_WaitTimeRan_textBox.Text).ToString(), strFilePath);
        }
예제 #4
0
 private void GameWindow_WritePlacement(string strFilePath)
 {
     OperINI.WriteIni("游戏窗口", "手动偏移X", GlobalObject.ClickOffsetXY.X.ToString(), strFilePath);
     OperINI.WriteIni("游戏窗口", "手动偏移Y", GlobalObject.ClickOffsetXY.Y.ToString(), strFilePath);
 }