示例#1
0
 void cmdNewShip_Click(object sender, EventArgs e)
 {
     _eventType = BaseBriefing.EventType.XwaNewIcon;
     enableOkCancel(true);
     pnlNew.Visible = true;
     lblTitle.Visible = false;
     lblCaption.Visible = false;
     lblInstruction.Visible = true;
     _tempX = -621;
     _tempY = -621;
     _icon = (short)cboNewIcon.SelectedIndex;
     _tempBD = _briefData[_icon];
 }
示例#2
0
 void cboNewIcon_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (_loading) return;
     _briefData[_icon] = _tempBD;
     _icon = (short)cboNewIcon.SelectedIndex;
     _tempBD = _briefData[_icon];
     _briefData[_icon].Craft = cboNCraft.SelectedIndex-1;
     _briefData[_icon].IFF = (byte)cboIconIff.SelectedIndex;
     if (_tempX != -621 && _tempY != -621)
     {
         _briefData[_icon].Waypoint = new short[4];
         _briefData[_icon].Waypoint[0] = _tempX;
         _briefData[_icon].Waypoint[1] = _tempY;
         if (cboNCraft.SelectedIndex != 0) _briefData[_icon].Waypoint[3] = 1;
     }
     MapPaint();
 }