private void EventTypeCBox_SelectedIndexChanged(object sender, EventArgs e)
{
toolTip.SetToolTip((sender as ComboBox),Info.EventListInfo[this.EventTypeCBox.SelectedIndex, 5]);
if(Info.EventListInfo[this.EventTypeCBox.SelectedIndex,1] == "")
{
this.lblevParam1.Text = "Param 1";
this.EventParam1.Text = "0";
this.EventParam1.Enabled = false;
}
else
{
this.lblevParam1.Text = Info.EventListInfo[this.EventTypeCBox.SelectedIndex,1];
this.EventParam1.Text = "0";
this.EventParam1.Enabled = true;
}
if (Info.EventListInfo[this.EventTypeCBox.SelectedIndex, 2] == "")
{
this.lblevParam2.Text = "Param 2";
this.EventParam2.Text = "0";
this.EventParam2.Enabled = false;
}
else
{
this.lblevParam2.Text = Info.EventListInfo[this.EventTypeCBox.SelectedIndex, 2];
this.EventParam2.Text = "0";
this.EventParam2.Enabled = true;
}
if (Info.EventListInfo[this.EventTypeCBox.SelectedIndex, 3] == "")
{
this.lblevParam3.Text = "Param 3";
this.EventParam3.Text = "0";
this.EventParam3.Enabled = false;
}
else
{
this.lblevParam3.Text = Info.EventListInfo[this.EventTypeCBox.SelectedIndex, 3];
this.EventParam3.Text = "0";
this.EventParam3.Enabled = true;
}
if (Info.EventListInfo[this.EventTypeCBox.SelectedIndex, 4] == "")
{
this.lblevParam4.Text = "Param 4";
this.EventParam4.Text = "0";
this.EventParam4.Enabled = false;
}
else
{
this.lblevParam4.Text = Info.EventListInfo[this.EventTypeCBox.SelectedIndex, 4];
this.EventParam4.Text = "0";
this.EventParam4.Enabled = true;
}
// Costumize Spell hit
if (EventTypeCBox.SelectedIndex == 8)
{
this.EventParam2.Width = 50;
this.button_spell_mask.Visible = true;
}
else
{
this.EventParam2.Width = 100;
this.button_spell_mask.Visible = false;
}
// Costumize AI event receive
if (EventTypeCBox.SelectedIndex == 30)
{
EventParam1ComboBox.Visible = true;
EventParam1ComboBox.Items.AddRange(Info.AIEvents);
EventParam1ComboBox.SelectedIndex = 0;
EventParam1ComboBox.DropDownStyle = ComboBoxStyle.DropDownList;
EventParam1ComboBox.DropDownWidth = DropDownWidth(EventParam1ComboBox);
EventParam1.Visible = false;
}
else
{
this.EventParam1ComboBox.Visible = false;
}
if (!locked)
GetEventData();
}