| Line 729... |
Line 729... |
| 729 |
private: System::Void ComboCockpitStd_SelectedIndexChanged(System::Object^ sender, System::EventArgs^ e) {
|
729 |
private: System::Void ComboCockpitStd_SelectedIndexChanged(System::Object^ sender, System::EventArgs^ e) {
|
| 730 |
if ( !this->ListTurret->SelectedItems->Count ) return;
|
730 |
if ( !this->ListTurret->SelectedItems->Count ) return;
|
| 731 |
ListViewItem ^item = this->ListTurret->SelectedItems[0];
|
731 |
ListViewItem ^item = this->ListTurret->SelectedItems[0];
|
| 732 |
int t = Convert::ToInt32(item->Tag);
|
732 |
int t = Convert::ToInt32(item->Tag);
|
| 733 |
m_pShipData->cockpits[t - 1].iCockpit = this->ComboCockpitStd->SelectedIndex;
|
733 |
m_pShipData->cockpits[t - 1].iCockpit = this->ComboCockpitStd->SelectedIndex;
|
| 734 |
m_pShipData->cockpits[t - 1].sCockpit = "";
|
734 |
m_pShipData->cockpits[t - 1].sCockpit = L"";
|
| 735 |
item->SubItems[1]->Text = Convert::ToString(this->ComboCockpitStd->SelectedIndex);
|
735 |
item->SubItems[1]->Text = Convert::ToString(this->ComboCockpitStd->SelectedIndex);
|
| 736 |
}
|
736 |
}
|
| 737 |
private: System::Void RadioCockpitStd_CheckedChanged(System::Object^ sender, System::EventArgs^ e) {
|
737 |
private: System::Void RadioCockpitStd_CheckedChanged(System::Object^ sender, System::EventArgs^ e) {
|
| 738 |
this->RadioCockpitCustom->Checked = !this->RadioCockpitStd->Checked;
|
738 |
this->RadioCockpitCustom->Checked = !this->RadioCockpitStd->Checked;
|
| 739 |
this->ComboCockpitStd->Enabled = this->RadioCockpitStd->Checked;
|
739 |
this->ComboCockpitStd->Enabled = this->RadioCockpitStd->Checked;
|
| 740 |
}
|
740 |
}
|
| 741 |
private: System::Void ButNewCockpit_Click(System::Object^ sender, System::EventArgs^ e) {
|
741 |
private: System::Void ButNewCockpit_Click(System::Object^ sender, System::EventArgs^ e) {
|
| 742 |
InputBox ^input = gcnew InputBox("Enter the cockpit id to add", "SS_COCKPIT_");
|
742 |
InputBox ^input = gcnew InputBox("Enter the cockpit id to add", "SS_COCKPIT_");
|
| 743 |
if ( input->ShowDialog(this) == Windows::Forms::DialogResult::OK )
|
743 |
if ( input->ShowDialog(this) == Windows::Forms::DialogResult::OK )
|
| 744 |
{
|
744 |
{
|
| 745 |
m_pShipFile->newCockpit(_WS(input->GetInput()), "4512", 0);
|
745 |
m_pShipFile->newCockpit(_WS(input->GetInput()), L"4512", 0);
|
| 746 |
this->ComboCockpitCustom->Items->Add(input->GetInput());
|
746 |
this->ComboCockpitCustom->Items->Add(input->GetInput());
|
| 747 |
this->ComboCockpitCustom->Text = input->GetInput();
|
747 |
this->ComboCockpitCustom->Text = input->GetInput();
|
| 748 |
this->RadioCockpitCustom->Checked = true;
|
748 |
this->RadioCockpitCustom->Checked = true;
|
| 749 |
this->RadioCockpitCustom->Enabled = true;
|
749 |
this->RadioCockpitCustom->Enabled = true;
|
| 750 |
}
|
750 |
}
|