private void Btn_submit_Click(object sender, EventArgs e) { IO.Log("Rando Click"); DialogResult dr = MessageBox.Show("Continue with Randomization? This will overwrite the map files.", "Please Insert Quarter", MessageBoxButtons.YesNo); if (dr == DialogResult.No) { IO.Log("msgBox: No"); return; } IO.Log("msgBox: Yes"); IO.Log("Parse Seed"); if (!int.TryParse(text_seed.Text, out int seed)) { seed = RandoSettings.NewSeed(); text_seed.Text = seed.ToString(); } IO.Log($"Seed: {RandoSettings.Seed}"); IO.Log("Load Settings"); //Load Settings RandoSettings.Seed = seed; RandoSettings.Options_bool["OPTB_small_mech"] = optb_small_mech.Checked; RandoSettings.Options_bool["OPTB_phase_save"] = optb_phase_save.Checked; RandoSettings.Options_bool["OPTB_advanced"] = optb_advanced.Checked; RandoSettings.Options_bool["OPTB_not_beginner"] = !optb_beginner.Checked; RandoSettings.Options_bool["OPTB_not_100"] = !optb_100_possible.Checked; IO.Log("Rando Inst"); //Randomize me Captain Randomizer rando = new Randomizer(); IO.Log("Rando dot Rando"); List <RandoLocation> locations = rando.Randomize(); IO.Log("IO Write"); IO.WriteData(locations); IO.Log("Rando Done!"); MessageBox.Show("Randomization Complete!", "Enjoy ;)"); }
private void Btn_reroll_Click(object sender, EventArgs e) { text_seed.Text = RandoSettings.NewSeed().ToString(); }