private void chooseColor(int region, Button sender)
{
if (c != null && !cp.isShown)
{
cp.SetColors(c.colors, region, "Region " + region.ToString());
if (cp.ShowDialog() == DialogResult.OK)
{
// color was chosen
setColorButton(sender, Utils.creatureColor(c.colors[region]));
pictureBox1.Image = CreatureColored.getColoredCreature(c.colors, (uniqueSpecies ? c.species : ""), new bool[] { true, true, true, true, true, true });
}
}
}