| Line 98... |
Line 98... |
| 98 |
this->ListFiles->SmallImageList = this->imageListFiles;
|
98 |
this->ListFiles->SmallImageList = this->imageListFiles;
|
| 99 |
|
99 |
|
| 100 |
this->Setup();
|
100 |
this->Setup();
|
| 101 |
}
|
101 |
}
|
| 102 |
|
102 |
|
| 103 |
int GetHighestGame();
|
103 |
CGameDirectories *gameDirectories();
|
| 104 |
|
104 |
|
| 105 |
void CreateShip() {
|
105 |
void CreateShip() {
|
| 106 |
if ( m_pPackage ) delete m_pPackage;
|
106 |
if ( m_pPackage ) delete m_pPackage;
|
| 107 |
m_pPackage = new CXspFile;
|
107 |
m_pPackage = new CXspFile;
|
| 108 |
((CXspFile *)m_pPackage)->SetShipData("0;0;0;0;0;0;0;0;0;106;1;5;37;0;112;202;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;35;36;1;0;0;0;0;0;1;0;25;1;0;0;0;0;0;SC_NEW_SHIP;");
|
108 |
((CXspFile *)m_pPackage)->SetShipData("0;0;0;0;0;0;0;0;0;106;1;5;37;0;112;202;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;1;0;35;36;1;0;0;0;0;0;1;0;25;1;0;0;0;0;0;SC_NEW_SHIP;");
|
| 109 |
}
|
109 |
}
|
| 110 |
void CreatePackage() {
|
110 |
void CreatePackage() {
|
| 111 |
System::ComponentModel::ComponentResourceManager^ resources = (gcnew System::ComponentModel::ComponentResourceManager(PackageForm::typeid));
|
111 |
System::ComponentModel::ComponentResourceManager^ resources = (gcnew System::ComponentModel::ComponentResourceManager(PackageForm::typeid));
|
| 112 |
this->Icon = (cli::safe_cast<System::Drawing::Icon^ >(resources->GetObject(L"$this.Icon")));
|
112 |
this->Icon = (cli::safe_cast<System::Drawing::Icon^ >(resources->GetObject(L"$this.Icon")));
|
| 113 |
if ( m_pPackage ) delete m_pPackage;
|
113 |
if ( m_pPackage ) delete m_pPackage;
|
| Line 5385... |
Line 5385... |
| 5385 |
MessageBox::Show(this, "Update file has been created\n" + SystemStringFromCyString(file) + "\n\nRemember to upload it your web server so its accessable\n" + _US(m_pPackage->webAddress()), "Update File Created", MessageBoxButtons::OK, MessageBoxIcon::Information);
|
5385 |
MessageBox::Show(this, "Update file has been created\n" + SystemStringFromCyString(file) + "\n\nRemember to upload it your web server so its accessable\n" + _US(m_pPackage->webAddress()), "Update File Created", MessageBoxButtons::OK, MessageBoxIcon::Information);
|
| 5386 |
}
|
5386 |
}
|
| 5387 |
}
|
5387 |
}
|
| 5388 |
}
|
5388 |
}
|
| 5389 |
private: System::Void button5_Click(System::Object^ sender, System::EventArgs^ e) {
|
5389 |
private: System::Void button5_Click(System::Object^ sender, System::EventArgs^ e) {
|
| 5390 |
CustomiseShip ^ship = gcnew CustomiseShip((CXspFile *)m_pPackage, this->MdiParent, m_pP, this->imageListSmall, this->imageListLarge, this->GetHighestGame());
|
5390 |
CustomiseShip ^ship = gcnew CustomiseShip((CXspFile *)m_pPackage, this->MdiParent, m_pP, this->imageListSmall, this->imageListLarge, this->gameDirectories());
|
| 5391 |
if ( ship->ShowDialog(this) == Windows::Forms::DialogResult::OK )
|
5391 |
if ( ship->ShowDialog(this) == Windows::Forms::DialogResult::OK )
|
| 5392 |
this->UpdateView();
|
5392 |
this->UpdateView();
|
| 5393 |
}
|
5393 |
}
|
| 5394 |
private: System::Void ToolCustomise_Click(System::Object^ sender, System::EventArgs^ e) {
|
5394 |
private: System::Void ToolCustomise_Click(System::Object^ sender, System::EventArgs^ e) {
|
| 5395 |
CustomiseShip ^ship = gcnew CustomiseShip((CXspFile *)m_pPackage, this->MdiParent, m_pP, this->imageListSmall, this->imageListLarge, this->GetHighestGame());
|
5395 |
CustomiseShip ^ship = gcnew CustomiseShip((CXspFile *)m_pPackage, this->MdiParent, m_pP, this->imageListSmall, this->imageListLarge, this->gameDirectories());
|
| 5396 |
if ( ship->ShowDialog(this) == Windows::Forms::DialogResult::OK )
|
5396 |
if ( ship->ShowDialog(this) == Windows::Forms::DialogResult::OK )
|
| 5397 |
this->UpdateView();
|
5397 |
this->UpdateView();
|
| 5398 |
}
|
5398 |
}
|
| 5399 |
private: System::Void PackageForm_Load(System::Object^ sender, System::EventArgs^ e) {
|
5399 |
private: System::Void PackageForm_Load(System::Object^ sender, System::EventArgs^ e) {
|
| 5400 |
this->UpdateView();
|
5400 |
this->UpdateView();
|