Beispiel #1
0
        private void btnEditSpecials_Click(object sender, EventArgs e)
        {
            if (objectList.SelectedIndex == -1)
            {
                MessageBox.Show("No valid object data to edit special functions on.");
                return;
            }
            EditSpecial dlg = new EditSpecial(_area.Objects[objectList.SelectedIndex].SpecFun);

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                _area.Objects[objectList.SelectedIndex].SpecFun = dlg.GetObjSpecials();
            }
        }
Beispiel #2
0
 private void btnEditSpecials_Click(object sender, EventArgs e)
 {
     if( mobList.SelectedIndex == -1 )
     {
         MessageBox.Show( "No valid mob data to edit special functions on.");
         return;
     }
     EditSpecial dlg = new EditSpecial(_area.Mobs[mobList.SelectedIndex].SpecFun);
     if (dlg.ShowDialog() == DialogResult.OK)
     {
         _area.Mobs[mobList.SelectedIndex].SpecFun = dlg.GetMobSpecials();
     }
 }