14 #include "ShieldSysDlg.h"
21 static char THIS_FILE[] = __FILE__;
41 CDialog::DoDataExchange(pDX);
50 ON_CBN_SELCHANGE(
IDC_TEAM, OnSelchangeTeam)
51 ON_CBN_SELCHANGE(
IDC_TYPE, OnSelchangeType)
72 if (
Ships[i].objnum >= 0) {
79 if (!types[Ships[i].ship_info_index])
84 teams[Ships[
i].team]++;
85 types[Ships[
i].ship_info_index]++;
88 box = (CComboBox *) GetDlgItem(IDC_TYPE);
91 box->AddString(it->name);
93 box = (CComboBox *) GetDlgItem(IDC_TEAM);
98 CDialog::OnInitDialog();
111 if (
Ships[i].objnum >= 0) {
132 else if (((CButton *) GetDlgItem(
IDC_TEAM_NO))->GetCheck())
157 else if (((CButton *) GetDlgItem(
IDC_TYPE_NO))->GetCheck())
virtual void DoDataExchange(CDataExchange *pDX)
iff_info Iff_info[MAX_IFFS]
int Shield_sys_types[MAX_SHIP_CLASSES]
GLsizei GLenum GLenum * types
object Objects[MAX_OBJECTS]
afx_msg void OnSelchangeTeam()
afx_msg void OnSelchangeType()
shield_sys_dlg(CWnd *pParent=NULL)
int Shield_sys_teams[MAX_IFFS]
SCP_vector< ship_info > Ship_info
char iff_name[NAME_LENGTH]