public MultiSetter(Creature creatureSettings, List<bool> appliedSettings, List<Creature>[] parents)
{
InitializeComponent();
if (appliedSettings.Count != 13)
{
DialogResult = DialogResult.Cancel; // invalid parameters
}
this.appliedSettings = appliedSettings;
this.c = creatureSettings;
parentComboBoxMother.naLabel = " - Mother n/a";
parentComboBoxFather.naLabel = " - Father n/a";
if (parents == null)
{
// disable parents, probably multiple species selected
checkBoxMother.Enabled = false;
checkBoxFather.Enabled = false;
parentComboBoxMother.Enabled = false;
parentComboBoxFather.Enabled = false;
}
else
{
parentComboBoxMother.ParentList = parents[0];
parentComboBoxFather.ParentList = parents[1];
uniqueSpecies = true;
}
checkBoxMother.Checked = false;
checkBoxFather.Checked = false;
pictureBox1.Image = CreatureColored.getColoredCreature(c.colors, (uniqueSpecies ? c.species : ""), new bool[] { true, true, true, true, true, true });
}