private void initalizeControls_General()
{
initalizeControls_General_Misc();
initalizeControls_General_Death();
initalizeControls_General_AdventureMode();
if (CharacterControl.HeroIndexInfo.Characters.Count == 0)
{
groupBox_BnetControl_Setup.Enabled = true;
}
else
{
groupBox_BnetControl_Setup.Enabled = false;
groupBox_BnetControl_AltHero.Enabled = true;
UpdateBnetHeroComboBox();
}
//
comboBox_BnetControl_CustomDifficulty.SelectedIndexChanged -= GameDifficulty_SelectedIndexChanged;
comboBox_BnetControl_CustomDifficulty.Items.Clear();
int index = -1;
foreach (var d in Enum.GetNames(typeof(GameDifficulty)))
{
comboBox_BnetControl_CustomDifficulty.Items.Add(d);
if (FunkyBaseExtension.Settings.General.CustomDifficulty == d)
index = comboBox_BnetControl_CustomDifficulty.Items.Count - 1;
}
if (index>=0) comboBox_BnetControl_CustomDifficulty.SelectedIndex = index;
comboBox_BnetControl_CustomDifficulty.SelectedIndexChanged += GameDifficulty_SelectedIndexChanged;
}