Line 56... |
Line 56... |
56 |
SGunGroup *g = m_pShipData->lGuns.Get(Convert::ToInt32(this->ListTurrets->SelectedItems[0]->Tag));
|
56 |
SGunGroup *g = m_pShipData->lGuns.Get(Convert::ToInt32(this->ListTurrets->SelectedItems[0]->Tag));
|
57 |
SWeaponGroup *w = g->lWeapons.Get(Convert::ToInt32(this->ListGuns->SelectedItems[0]->Tag));
|
57 |
SWeaponGroup *w = g->lWeapons.Get(Convert::ToInt32(this->ListGuns->SelectedItems[0]->Tag));
|
58 |
|
58 |
|
59 |
if ( this->PageAuto )
|
59 |
if ( this->PageAuto )
|
60 |
{
|
60 |
{
|
61 |
if ( w->iNode1 == -1 || (w->iNode1 == 0 && w->sModel1 == "0") || w->sModel1.empty() )
|
61 |
if ( w->iNode1 == -1 || (w->iNode1 == 0 && w->sModel1 == L"0") || w->sModel1.empty() )
|
62 |
this->ComboAutoPrimary->SelectedIndex = 0;
|
62 |
this->ComboAutoPrimary->SelectedIndex = 0;
|
63 |
else
|
63 |
else
|
64 |
this->ComboAutoPrimary->SelectedIndex = w->iNode1 + 1;
|
64 |
this->ComboAutoPrimary->SelectedIndex = w->iNode1 + 1;
|
65 |
|
65 |
|
66 |
if ( w->iNode2 == -1 || (w->iNode2 == 0 && w->sModel2 == "0") || w->sModel2.empty() )
|
66 |
if ( w->iNode2 == -1 || (w->iNode2 == 0 && w->sModel2 == L"0") || w->sModel2.empty() )
|
67 |
this->ComboAutoSecondary->SelectedIndex = 0;
|
67 |
this->ComboAutoSecondary->SelectedIndex = 0;
|
68 |
else
|
68 |
else
|
69 |
this->ComboAutoSecondary->SelectedIndex = w->iNode2 + 1;
|
69 |
this->ComboAutoSecondary->SelectedIndex = w->iNode2 + 1;
|
70 |
}
|
70 |
}
|
71 |
|
71 |
|
72 |
if ( w->iNode1 == -1 || w->sModel1.empty() || w->sModel1 == "0" )
|
72 |
if ( w->iNode1 == -1 || w->sModel1.empty() || w->sModel1 == L"0" )
|
73 |
this->CheckManualPrimary->Checked = false;
|
73 |
this->CheckManualPrimary->Checked = false;
|
74 |
else
|
74 |
else
|
75 |
this->CheckManualPrimary->Checked = true;
|
75 |
this->CheckManualPrimary->Checked = true;
|
76 |
this->NumManualPrimary->Value = w->iNode1;
|
76 |
this->NumManualPrimary->Value = w->iNode1;
|
77 |
this->TextManualPrimary->Text = _US(w->sModel1);
|
77 |
this->TextManualPrimary->Text = _US(w->sModel1);
|
78 |
|
78 |
|
79 |
if ( w->iNode2 == -1 || w->sModel2.empty() || w->sModel2 == "0" )
|
79 |
if ( w->iNode2 == -1 || w->sModel2.empty() || w->sModel2 == L"0" )
|
80 |
this->CheckManualSecondary->Checked = false;
|
80 |
this->CheckManualSecondary->Checked = false;
|
81 |
else
|
81 |
else
|
82 |
this->CheckManualSecondary->Checked = true;
|
82 |
this->CheckManualSecondary->Checked = true;
|
83 |
this->NumManualSecondary->Value = w->iNode2;
|
83 |
this->NumManualSecondary->Value = w->iNode2;
|
84 |
this->TextManualSecondary->Text = _US(w->sModel2);
|
84 |
this->TextManualSecondary->Text = _US(w->sModel2);
|
Line 106... |
Line 106... |
106 |
for ( SWeaponGroup *w = g->lWeapons.First(); w; w = g->lWeapons.Next(), i++ )
|
106 |
for ( SWeaponGroup *w = g->lWeapons.First(); w; w = g->lWeapons.Next(), i++ )
|
107 |
{
|
107 |
{
|
108 |
ListViewItem ^item = this->ListGuns->Items->Add(gcnew ListViewItem(Convert::ToString(i)));
|
108 |
ListViewItem ^item = this->ListGuns->Items->Add(gcnew ListViewItem(Convert::ToString(i)));
|
109 |
item->SubItems->Add(Convert::ToString(w->iGunIndex));
|
109 |
item->SubItems->Add(Convert::ToString(w->iGunIndex));
|
110 |
item->SubItems->Add(Convert::ToString(w->iLaser));
|
110 |
item->SubItems->Add(Convert::ToString(w->iLaser));
|
111 |
if ( w->iNode1 == -1 || (w->iNode1 == 0 && w->sModel1 == "0") || w->sModel1.empty() )
|
111 |
if ( w->iNode1 == -1 || (w->iNode1 == 0 && w->sModel1 == L"0") || w->sModel1.empty() )
|
112 |
item->SubItems->Add("None");
|
112 |
item->SubItems->Add("None");
|
113 |
else
|
113 |
else
|
114 |
item->SubItems->Add(_US(w->sModel1) + ":" + Convert::ToString(w->iNode1));
|
114 |
item->SubItems->Add(_US(w->sModel1) + ":" + Convert::ToString(w->iNode1));
|
115 |
if ( w->iNode2 == -1 || (w->iNode2 == 0 && w->sModel2 == "0") || w->sModel2.empty() )
|
115 |
if ( w->iNode2 == -1 || (w->iNode2 == 0 && w->sModel2 == L"0") || w->sModel2.empty() )
|
116 |
item->SubItems->Add("None");
|
116 |
item->SubItems->Add("None");
|
117 |
else
|
117 |
else
|
118 |
item->SubItems->Add(_US(w->sModel2) + ":" + Convert::ToString(w->iNode2));
|
118 |
item->SubItems->Add(_US(w->sModel2) + ":" + Convert::ToString(w->iNode2));
|
119 |
item->Tag = i;
|
119 |
item->Tag = i;
|
120 |
item->ImageKey = "gun";
|
120 |
item->ImageKey = "gun";
|