| Line 4003... |
Line 4003... |
| 4003 |
{
|
4003 |
{
|
| 4004 |
this->TextExactVersion->Visible = false;
|
4004 |
this->TextExactVersion->Visible = false;
|
| 4005 |
}
|
4005 |
}
|
| 4006 |
}
|
4006 |
}
|
| 4007 |
private: System::Void TextWebsite_TextChanged(System::Object^ sender, System::EventArgs^ e) {
|
4007 |
private: System::Void TextWebsite_TextChanged(System::Object^ sender, System::EventArgs^ e) {
|
| 4008 |
if ( !m_bLoading )
|
- |
|
| 4009 |
m_pPackage->SetWebSite(CyStringFromSystemString(this->TextWebsite->Text));
|
4008 |
if ( !m_bLoading ) m_pPackage->setWebSite(_S(this->TextWebsite->Text));
|
| 4010 |
this->UpdateChanged();
|
4009 |
this->UpdateChanged();
|
| 4011 |
}
|
4010 |
}
|
| 4012 |
private: System::Void TextEmail_TextChanged(System::Object^ sender, System::EventArgs^ e) {
|
4011 |
private: System::Void TextEmail_TextChanged(System::Object^ sender, System::EventArgs^ e) {
|
| 4013 |
if ( !m_bLoading )
|
- |
|
| 4014 |
m_pPackage->SetEmail(CyStringFromSystemString(this->TextEmail->Text));
|
4012 |
if ( !m_bLoading ) m_pPackage->setEmail(_S(this->TextEmail->Text));
|
| 4015 |
this->UpdateChanged();
|
4013 |
this->UpdateChanged();
|
| 4016 |
}
|
4014 |
}
|
| 4017 |
private: System::Void TextForum_TextChanged(System::Object^ sender, System::EventArgs^ e) {
|
4015 |
private: System::Void TextForum_TextChanged(System::Object^ sender, System::EventArgs^ e) {
|
| 4018 |
if ( !m_bLoading )
|
- |
|
| 4019 |
m_pPackage->SetForumLink(CyStringFromSystemString(this->TextForum->Text));
|
4016 |
if ( !m_bLoading ) m_pPackage->setForumLink(_S(this->TextForum->Text));
|
| 4020 |
this->UpdateChanged();
|
4017 |
this->UpdateChanged();
|
| 4021 |
}
|
4018 |
}
|
| 4022 |
private: System::Void ButFromFile_Click(System::Object^ sender, System::EventArgs^ e) {
|
4019 |
private: System::Void ButFromFile_Click(System::Object^ sender, System::EventArgs^ e) {
|
| 4023 |
OpenFileDialog ^ofd = gcnew OpenFileDialog();
|
4020 |
OpenFileDialog ^ofd = gcnew OpenFileDialog();
|
| 4024 |
ofd->Filter = "Package Files (*.spk)|*.spk";
|
4021 |
ofd->Filter = "Package Files (*.spk)|*.spk";
|
| Line 5116... |
Line 5113... |
| 5116 |
C_File *file = m_pPackage->GetFileList()->Get(id);
|
5113 |
C_File *file = m_pPackage->GetFileList()->Get(id);
|
| 5117 |
file->SetDir(CyStringFromSystemString(input->GetInput()));
|
5114 |
file->SetDir(CyStringFromSystemString(input->GetInput()));
|
| 5118 |
}
|
5115 |
}
|
| 5119 |
}
|
5116 |
}
|
| 5120 |
private: System::Void TextWebAddress_TextChanged_1(System::Object^ sender, System::EventArgs^ e) {
|
5117 |
private: System::Void TextWebAddress_TextChanged_1(System::Object^ sender, System::EventArgs^ e) {
|
| 5121 |
if ( !m_bLoading )
|
- |
|
| 5122 |
m_pPackage->SetWebAddress(CyStringFromSystemString(this->TextWebAddress->Text));
|
5118 |
if ( !m_bLoading ) m_pPackage->setWebAddress(_S(this->TextWebAddress->Text));
|
| 5123 |
this->UpdateChanged();
|
5119 |
this->UpdateChanged();
|
| 5124 |
}
|
5120 |
}
|
| 5125 |
private: System::Void TextCustomType_TextChanged(System::Object^ sender, System::EventArgs^ e) {
|
5121 |
private: System::Void TextCustomType_TextChanged(System::Object^ sender, System::EventArgs^ e) {
|
| 5126 |
if ( !m_bLoading )
|
5122 |
if ( !m_bLoading )
|
| 5127 |
((CSpkFile *)m_pPackage)->SetScriptType(_S(this->TextCustomType->Text));
|
5123 |
((CSpkFile *)m_pPackage)->SetScriptType(_S(this->TextCustomType->Text));
|
| Line 5375... |
Line 5371... |
| 5375 |
}
|
5371 |
}
|
| 5376 |
}
|
5372 |
}
|
| 5377 |
}
|
5373 |
}
|
| 5378 |
}
|
5374 |
}
|
| 5379 |
private: System::Void toolStripButton4_Click(System::Object^ sender, System::EventArgs^ e) {
|
5375 |
private: System::Void toolStripButton4_Click(System::Object^ sender, System::EventArgs^ e) {
|
| 5380 |
if ( m_pPackage->GetWebAddress().Empty() )
|
5376 |
if ( m_pPackage->webAddress().empty() )
|
| 5381 |
MessageBox::Show(this, "You dont have a primary web address set, you need an address for automatic updates to work", "No Web Address", MessageBoxButtons::OK, MessageBoxIcon::Asterisk);
|
5377 |
MessageBox::Show(this, "You dont have a primary web address set, you need an address for automatic updates to work", "No Web Address", MessageBoxButtons::OK, MessageBoxIcon::Asterisk);
|
| 5382 |
else
|
5378 |
else
|
| 5383 |
{
|
5379 |
{
|
| 5384 |
FolderBrowserDialog ^fbd = gcnew FolderBrowserDialog;
|
5380 |
FolderBrowserDialog ^fbd = gcnew FolderBrowserDialog;
|
| 5385 |
fbd->Description = "Select the path to save the update file to";
|
5381 |
fbd->Description = "Select the path to save the update file to";
|
| 5386 |
fbd->SelectedPath = SystemStringFromCyString(CFileIO(m_pPackage->GetFilename()).GetDir().FindReplace("/", "\\"));
|
5382 |
fbd->SelectedPath = SystemStringFromCyString(CFileIO(m_pPackage->GetFilename()).GetDir().FindReplace("/", "\\"));
|
| 5387 |
if ( fbd->ShowDialog(this) == System::Windows::Forms::DialogResult::OK )
|
5383 |
if ( fbd->ShowDialog(this) == System::Windows::Forms::DialogResult::OK )
|
| 5388 |
{
|
5384 |
{
|
| 5389 |
CyString file = m_pPackage->CreateUpdateFile(CyStringFromSystemString(fbd->SelectedPath));
|
5385 |
CyString file = m_pPackage->CreateUpdateFile(CyStringFromSystemString(fbd->SelectedPath));
|
| 5390 |
if ( !file.Empty() )
|
5386 |
if ( !file.Empty() )
|
| 5391 |
MessageBox::Show(this, "Update file has been created\n" + SystemStringFromCyString(file) + "\n\nRemember to upload it your web server so its accessable\n" + SystemStringFromCyString(m_pPackage->GetWebAddress()), "Update File Created", MessageBoxButtons::OK, MessageBoxIcon::Information);
|
5387 |
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);
|
| 5392 |
}
|
5388 |
}
|
| 5393 |
}
|
5389 |
}
|
| 5394 |
}
|
5390 |
}
|
| 5395 |
private: System::Void button5_Click(System::Object^ sender, System::EventArgs^ e) {
|
5391 |
private: System::Void button5_Click(System::Object^ sender, System::EventArgs^ e) {
|
| 5396 |
CustomiseShip ^ship = gcnew CustomiseShip((CXspFile *)m_pPackage, this->MdiParent, m_pP, this->imageListSmall, this->imageListLarge, this->GetHighestGame());
|
5392 |
CustomiseShip ^ship = gcnew CustomiseShip((CXspFile *)m_pPackage, this->MdiParent, m_pP, this->imageListSmall, this->imageListLarge, this->GetHighestGame());
|