Subversion Repositories spk

Rev

Rev 197 | Rev 225 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 197 Rev 224
Line 16... Line 16...
16
	this->multiPackageToolStripMenuItem->Image = this->imageList1->Images[this->imageList1->Images->IndexOfKey("multi")];
16
	this->multiPackageToolStripMenuItem->Image = this->imageList1->Images[this->imageList1->Images->IndexOfKey("multi")];
17
	this->Closed += gcnew System::EventHandler(this, &Form1::CloseEvent);
17
	this->Closed += gcnew System::EventHandler(this, &Form1::CloseEvent);
18
 
18
 
19
	this->Text = "Package Creator " + GetVersionString();
19
	this->Text = "Package Creator " + GetVersionString();
20
	m_pLoadedList = new Utils::WStringList;
20
	m_pLoadedList = new Utils::WStringList;
21
	_pGameDir = new CGameDirectories(_S(mydoc));
21
	_pGameDir = new CGameDirectories(_WS(mydoc));
22
	_pGameDir->setLanguage(44);
22
	_pGameDir->setLanguage(44);
23
 
23
 
24
	// default settings
24
	// default settings
25
	m_settings = new SSettings;
25
	m_settings = new SSettings;
26
	m_settings->bGenerateUpdate = false;
26
	m_settings->bGenerateUpdate = false;
Line 28... Line 28...
28
	m_iLocX = m_iLocY = -1;
28
	m_iLocX = m_iLocY = -1;
29
 
29
 
30
	this->toolTip1->SetToolTip(this->button1, "Closes all open windows, will ask about saving any that have been modified when they close");
30
	this->toolTip1->SetToolTip(this->button1, "Closes all open windows, will ask about saving any that have been modified when they close");
31
 
31
 
32
	m_pPackages = new CPackages;
32
	m_pPackages = new CPackages;
33
	m_pPackages->startup(".", _S(IO::Path::GetTempPath()), _S(Environment::GetFolderPath(Environment::SpecialFolder::Personal )));
33
	m_pPackages->startup(".", _WS(IO::Path::GetTempPath()), _WS(Environment::GetFolderPath(Environment::SpecialFolder::Personal )));
34
	m_pPackages->SetLanguage(44);
34
	m_pPackages->SetLanguage(44);
35
 
35
 
36
	this->LoadData();
36
	this->LoadData();
37
 
37
 
38
	this->UpdateDisplay();
38
	this->UpdateDisplay();
Line 136... Line 136...
136
				text = text + " " + _US(pVfs->findText(0, 17, 10000 + variation));
136
				text = text + " " + _US(pVfs->findText(0, 17, 10000 + variation));
137
			ls->AddShip(_US(str->data), text);
137
			ls->AddShip(_US(str->data), text);
138
		}
138
		}
139
 
139
 
140
		if ( ls->ShowDialog(this) == System::Windows::Forms::DialogResult::OK )	{
140
		if ( ls->ShowDialog(this) == System::Windows::Forms::DialogResult::OK )	{
141
			Utils::WString line = pVfs->getTShipsEntry(_S(ls->GetData()));
141
			Utils::WString line = pVfs->getTShipsEntry(_WS(ls->GetData()));
142
	
142
	
143
			if ( !line.empty() ) {
143
			if ( !line.empty() ) {
144
				if ( shipName ) {
144
				if ( shipName ) {
145
					(*shipName) = ls->GetShipName();
145
					(*shipName) = ls->GetShipName();
146
				}
146
				}