ARKBreedingStats.MultiSetter.chooseColor C# (CSharp) Method

chooseColor() private method

private chooseColor ( int region, Button sender ) : void
region int
sender System.Windows.Forms.Button
return void
        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 });
                }
            }
        }