Subversion Repositories spk

Rev

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

Rev 104 Rev 121
Line 8... Line 8...
8
using namespace System::Windows::Forms;
8
using namespace System::Windows::Forms;
9
using namespace System::Data;
9
using namespace System::Data;
10
using namespace System::Drawing;
10
using namespace System::Drawing;
11
using namespace System::Threading;
11
using namespace System::Threading;
12
 
12
 
-
 
13
#include "DirectoryControl.h"
13
#include "About.h"
14
#include "About.h"
14
#include "PackageInstalled.h"
15
#include "PackageInstalled.h"
15
#include "GameLauncherFlags.h"
16
#include "GameLauncherFlags.h"
16
#include "FakePatchControl.h"
17
#include "FakePatchControl.h"
17
//TODO: remove this, move to a generic shared space
18
//TODO: remove this, move to a generic shared space
Line 19... Line 20...
19
#include "CheckUpdate.h"
20
#include "CheckUpdate.h"
20
#include "MenuBar.h"
21
#include "MenuBar.h"
21
//TODO: remove this, move to a generic shared space
22
//TODO: remove this, move to a generic shared space
22
#include "..\..\Creator\src\Forms\Waiting.h"
23
#include "..\..\Creator\src\Forms\Waiting.h"
23
 
24
 
24
enum {MGUI_BACKGROUND_NONE, MGUI_BACKGROUND_INSTALL, MGUI_BACKGROUND_UNINSTALL, MGUI_BACKGROUND_DISABLE, MGUI_BACKGROUND_CHANGEDIR, MGUI_BACKGROUND_ADDDIR, MGUI_BACKGROUND_INSTALLBUILTIN, MGUI_BACKGROUND_REMOVEDIR};
25
enum {MGUI_BACKGROUND_NONE, MGUI_BACKGROUND_INSTALL, MGUI_BACKGROUND_UNINSTALL, MGUI_BACKGROUND_DISABLE, MGUI_BACKGROUND_CHANGEDIR, MGUI_BACKGROUND_INSTALLBUILTIN, MGUI_BACKGROUND_CLOSEDIR};
25
enum {SORT_NAME, SORT_AUTHOR, SORT_VERSION, SORT_CREATED, SORT_TYPE, SORT_ENABLE, SORT_SIGNED};
26
enum {SORT_NAME, SORT_AUTHOR, SORT_VERSION, SORT_CREATED, SORT_TYPE, SORT_ENABLE, SORT_SIGNED};
26
 
27
 
27
#define MAXTIPS 1
28
#define MAXTIPS 1
28
 
29
 
29
#define TIPSECTION_YESNO		0
30
#define TIPSECTION_YESNO		0
Line 44... Line 45...
44
	///          resources associated with this form.
45
	///          resources associated with this form.
45
	/// </summary>
46
	/// </summary>
46
	public ref class MainGui : public System::Windows::Forms::Form
47
	public ref class MainGui : public System::Windows::Forms::Form
47
	{
48
	{
48
	public:
49
	public:
49
		MainGui(CPackages *p, CyStringList *list, CyStringList *removed, bool advanced)
50
		MainGui(CPackages *p, Utils::CStringList *list, Utils::CStringList *removed, bool advanced)
50
		{
51
		{
51
			InitializeComponent();
52
			InitializeComponent();
52
 
53
 
53
			// additional controls
54
			// additional controls
54
			m_pMenuBar = gcnew MenuBar(this, advanced);
55
			m_pMenuBar = gcnew MenuBar(this, advanced);
Line 97... Line 98...
97
 
98
 
98
			// update the gui
99
			// update the gui
99
			this->UpdateControls();
100
			this->UpdateControls();
100
 
101
 
101
			// update the display
102
			// update the display
102
			this->UpdateDirList();
103
			this->UpdateDirList("");
103
			this->UpdatePackages();
104
			this->UpdatePackages();
104
 
105
 
105
			// setup the events
106
			// setup the events
106
			this->SetupEventHandlers();
107
			this->SetupEventHandlers();
107
 
108
 
108
			//this->ButRun->Hide();
109
			//this->ButRun->Hide();
109
		}
110
		}
110
 
111
 
111
		void DisplayLocked(bool inthread);
112
		void DisplayLocked(bool inthread);
112
		void GetGameDirs(CyString &dir, bool askDir, bool askDirAddon);
-
 
113
		void CheckProtectedDir();
113
		void CheckProtectedDir();
114
		void PrepareSaveGameManager()
114
		void PrepareSaveGameManager()
115
		{
115
		{
116
			// copy save games to each game dir
116
			// copy save games to each game dir
117
		}
117
		}
Line 136... Line 136...
136
				this->backgroundWorker2->RunWorkerAsync();
136
				this->backgroundWorker2->RunWorkerAsync();
137
				m_pWait->ShowDialog(this);
137
				m_pWait->ShowDialog(this);
138
			}
138
			}
139
		}
139
		}
140
 
140
 
141
		void AboutDialog()
141
		void OpenDirectoryControl();
142
		{
-
 
143
			 CBaseFile *pm = m_pPackages->FindScriptByAuthor("PluginManager");
-
 
144
			 System::String ^scriptVer = "None";
-
 
145
			 if ( pm )
-
 
146
			 {
-
 
147
				 scriptVer = _US(pm->version());
-
 
148
				 if ( !pm->creationDate().empty() )
-
 
149
					scriptVer += " (" + _US(pm->creationDate()) + ")";
-
 
150
			 }
-
 
151
			About ^about = gcnew About(GetVersionString(), PMLDATE, scriptVer, m_bAdvanced);
-
 
152
			about->ShowDialog(this);
142
		void AboutDialog();
153
		}
-
 
154
 
143
 
155
		// config
144
		// config
156
		void SetSize(int x, int y) { m_iSizeX = x; m_iSizeY = y; }
145
		void SetSize(int x, int y) { m_iSizeX = x; m_iSizeY = y; }
157
		void SetTipStrings(int section);
146
		void SetTipStrings(int section);
158
		void SetTips(int tip, int done)
147
		void SetTips(int tip, int done)
Line 190... Line 179...
190
		}
179
		}
191
		int GetMaxTips() { return (int)MAXTIPS; }
180
		int GetMaxTips() { return (int)MAXTIPS; }
192
		long GetIgnoreJoy() { return m_pLauncherFlags->iIgnoreJoy; }
181
		long GetIgnoreJoy() { return m_pLauncherFlags->iIgnoreJoy; }
193
 
182
 
194
		// gui updates
183
		// gui updates
195
		void UpdateDirList();
184
		void UpdateDirList(const Utils::String &current);
196
		void UpdatePackages();
185
		void UpdatePackages();
197
		void UpdateControls();
186
		void UpdateControls();
198
		bool UpdateBuiltInPackages();
187
		bool UpdateBuiltInPackages();
199
		void AddIconToPackages(String ^icon);
188
		void AddIconToPackages(String ^icon);
200
 
189
 
Line 210... Line 199...
210
		void SetupEventHandlers();
199
		void SetupEventHandlers();
211
		void StartCheckTimer();
200
		void StartCheckTimer();
212
		
201
		
213
		// control functions
202
		// control functions
214
		bool InstallPackage(System::String ^file, bool straightAway, bool builtin, bool background);
203
		bool InstallPackage(System::String ^file, bool straightAway, bool builtin, bool background);
-
 
204
		void CloseCurrentDirectory();
215
		void ChangeDirectory(CyString dir);
205
		void ChangeDirectory(const Utils::String &dir);
216
 
206
 
217
		void SetGameArgs(System::String ^args) { m_sGameArgs = args; }
207
		void SetGameArgs(System::String ^args) { m_sGameArgs = args; }
218
		void AddGameArgs(System::String ^args) { m_sGameArgs += " " + args; }
208
		void AddGameArgs(System::String ^args) { m_sGameArgs += " " + args; }
219
 
209
 
220
		bool DisplayTip(int tipsection, int tip);
210
		bool DisplayTip(int tipsection, int tip);
Line 238... Line 228...
238
 
228
 
239
		// external control events
229
		// external control events
240
		void InstallEvent(System::Object ^Sender, System::EventArgs ^E);
230
		void InstallEvent(System::Object ^Sender, System::EventArgs ^E);
241
		void VanillaEvent(System::Object ^Sender, System::EventArgs ^E);
231
		void VanillaEvent(System::Object ^Sender, System::EventArgs ^E);
242
		void ModifiedEvent(System::Object ^Sender, System::EventArgs ^E);
232
		void ModifiedEvent(System::Object ^Sender, System::EventArgs ^E);
243
		void AddDirectoryEvent(System::Object ^Sender, System::EventArgs ^E);
-
 
244
		void ModSelectorEvent(System::Object ^Sender, System::EventArgs ^E);
233
		void ModSelectorEvent(System::Object ^Sender, System::EventArgs ^E);
245
		void PackageBrowserEvent(System::Object ^Sender, System::EventArgs ^E);
234
		void PackageBrowserEvent(System::Object ^Sender, System::EventArgs ^E);
246
 
235
 
247
		void FindPackagesOnline();
236
		void FindPackagesOnline();
248
		void ViewFileLog();
237
		void ViewFileLog();
249
		void EditGlobalsDialog();
238
		void EditGlobalsDialog();
250
		void EditWaresDialog();
239
		void EditWaresDialog();
251
		void CommandSlotsDialog();
240
		void CommandSlotsDialog();
252
		void FakePatchControlDialog();
241
		void FakePatchControlDialog();
253
		void RemoveDirectory();
-
 
254
		void ExportPackageList();
242
		void ExportPackageList();
255
		void VerifyInstalledFiles();
243
		void VerifyInstalledFiles();
256
		CPackages *GetPackageControl() { return m_pPackages; }
244
		CPackages *GetPackageControl() { return m_pPackages; }
257
 
245
 
258
	protected:
246
	protected:
Line 301... Line 289...
301
		bool StartInstalling(bool builtin, bool background) { return StartInstalling(builtin, background, false); }
289
		bool StartInstalling(bool builtin, bool background) { return StartInstalling(builtin, background, false); }
302
		bool StartInstalling(bool builtin, bool background, bool archive);
290
		bool StartInstalling(bool builtin, bool background, bool archive);
303
		void DoInstall(bool builtin, bool frombackground);
291
		void DoInstall(bool builtin, bool frombackground);
304
		void DoUninstall();
292
		void DoUninstall();
305
		void DoDisable();
293
		void DoDisable();
306
		bool RemoveCurrentDirectory();
-
 
307
		CBaseFile *FindPackageFromList(ListViewItem ^item);
294
		CBaseFile *FindPackageFromList(ListViewItem ^item);
308
 
295
 
309
		bool StartBackground(int type);
296
		bool StartBackground(int type);
310
		bool StartBackground(int type, System::String ^info);
297
		bool StartBackground(int type, System::String ^info);
311
		void LaunchGame();
298
		void LaunchGame();
Line 316... Line 303...
316
 
303
 
317
		void RunFromToolItem(ToolStripMenuItem ^item);
304
		void RunFromToolItem(ToolStripMenuItem ^item);
318
 
305
 
319
		MenuBar			^m_pMenuBar;
306
		MenuBar			^m_pMenuBar;
320
		CPackages		*m_pPackages;
307
		CPackages		*m_pPackages;
321
		CyStringList	*m_pDirList;
308
		Utils::CStringList	*m_pDirList;
322
		CyStringList	*m_pRemovedDirList;
309
		Utils::CStringList	*m_pRemovedDirList;
323
		CyStringList	*m_pUpdateList;
310
		CyStringList	*m_pUpdateList;
324
		CyStringList	*m_pFileErrors;
311
		CyStringList	*m_pFileErrors;
325
		int				 m_iBackgroundTask;
312
		int				 m_iBackgroundTask;
326
		int				 m_iSortingColumn;
313
		int				 m_iSortingColumn;
327
		bool			 m_bSortingAsc;
314
		bool			 m_bSortingAsc;
Line 476... Line 463...
476
			this->GroupDir->SuspendLayout();
463
			this->GroupDir->SuspendLayout();
477
			this->contextMenuStrip1->SuspendLayout();
464
			this->contextMenuStrip1->SuspendLayout();
478
			this->panel1->SuspendLayout();
465
			this->panel1->SuspendLayout();
479
			this->GroupPackages->SuspendLayout();
466
			this->GroupPackages->SuspendLayout();
480
			this->PanelDisplay->SuspendLayout();
467
			this->PanelDisplay->SuspendLayout();
481
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->PictureDisplay))->BeginInit();
468
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->PictureDisplay))->BeginInit();
482
			this->panel2->SuspendLayout();
469
			this->panel2->SuspendLayout();
483
			this->statusStrip1->SuspendLayout();
470
			this->statusStrip1->SuspendLayout();
484
			this->SuspendLayout();
471
			this->SuspendLayout();
485
			// 
472
			// 
486
			// GroupDir
473
			// GroupDir
487
			// 
474
			// 
488
			this->GroupDir->Controls->Add(this->ComboDir);
475
			this->GroupDir->Controls->Add(this->ComboDir);
489
			this->GroupDir->Dock = System::Windows::Forms::DockStyle::Top;
476
			this->GroupDir->Dock = System::Windows::Forms::DockStyle::Top;
490
			this->GroupDir->Location = System::Drawing::Point(0, 0);
477
			this->GroupDir->Location = System::Drawing::Point(0, 0);
-
 
478
			this->GroupDir->Margin = System::Windows::Forms::Padding(4);
491
			this->GroupDir->Name = L"GroupDir";
479
			this->GroupDir->Name = L"GroupDir";
492
			this->GroupDir->Padding = System::Windows::Forms::Padding(5);
480
			this->GroupDir->Padding = System::Windows::Forms::Padding(7, 6, 7, 6);
493
			this->GroupDir->Size = System::Drawing::Size(626, 52);
481
			this->GroupDir->Size = System::Drawing::Size(835, 64);
494
			this->GroupDir->TabIndex = 0;
482
			this->GroupDir->TabIndex = 0;
495
			this->GroupDir->TabStop = false;
483
			this->GroupDir->TabStop = false;
496
			this->GroupDir->Text = L"Current Directory";
484
			this->GroupDir->Text = L"Current Directory";
497
			// 
485
			// 
498
			// ComboDir
486
			// ComboDir
499
			// 
487
			// 
500
			this->ComboDir->Dock = System::Windows::Forms::DockStyle::Fill;
488
			this->ComboDir->Dock = System::Windows::Forms::DockStyle::Fill;
501
			this->ComboDir->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
489
			this->ComboDir->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
502
			this->ComboDir->FormattingEnabled = true;
490
			this->ComboDir->FormattingEnabled = true;
503
			this->ComboDir->Location = System::Drawing::Point(5, 18);
491
			this->ComboDir->Location = System::Drawing::Point(7, 21);
504
			this->ComboDir->Margin = System::Windows::Forms::Padding(10);
492
			this->ComboDir->Margin = System::Windows::Forms::Padding(13, 12, 13, 12);
505
			this->ComboDir->Name = L"ComboDir";
493
			this->ComboDir->Name = L"ComboDir";
506
			this->ComboDir->Size = System::Drawing::Size(616, 21);
494
			this->ComboDir->Size = System::Drawing::Size(821, 24);
507
			this->ComboDir->TabIndex = 0;
495
			this->ComboDir->TabIndex = 0;
508
			// 
496
			// 
509
			// ListPackages
497
			// ListPackages
510
			// 
498
			// 
511
			this->ListPackages->AllowDrop = true;
499
			this->ListPackages->AllowDrop = true;
512
			this->ListPackages->Columns->AddRange(gcnew cli::array< System::Windows::Forms::ColumnHeader^  >(6) {this->columnHeader1, 
500
			this->ListPackages->Columns->AddRange(gcnew cli::array< System::Windows::Forms::ColumnHeader^  >(6) {
-
 
501
				this->columnHeader1,
513
				this->columnHeader2, this->columnHeader3, this->columnHeader4, this->columnHeader6, this->columnHeader5});
502
					this->columnHeader2, this->columnHeader3, this->columnHeader4, this->columnHeader6, this->columnHeader5
-
 
503
			});
514
			this->ListPackages->ContextMenuStrip = this->contextMenuStrip1;
504
			this->ListPackages->ContextMenuStrip = this->contextMenuStrip1;
515
			this->ListPackages->Dock = System::Windows::Forms::DockStyle::Fill;
505
			this->ListPackages->Dock = System::Windows::Forms::DockStyle::Fill;
516
			this->ListPackages->FullRowSelect = true;
506
			this->ListPackages->FullRowSelect = true;
517
			this->ListPackages->HideSelection = false;
507
			this->ListPackages->HideSelection = false;
518
			this->ListPackages->Location = System::Drawing::Point(3, 16);
508
			this->ListPackages->Location = System::Drawing::Point(4, 19);
-
 
509
			this->ListPackages->Margin = System::Windows::Forms::Padding(4);
519
			this->ListPackages->Name = L"ListPackages";
510
			this->ListPackages->Name = L"ListPackages";
520
			this->ListPackages->ShowItemToolTips = true;
511
			this->ListPackages->ShowItemToolTips = true;
521
			this->ListPackages->Size = System::Drawing::Size(620, 386);
512
			this->ListPackages->Size = System::Drawing::Size(827, 478);
522
			this->ListPackages->TabIndex = 0;
513
			this->ListPackages->TabIndex = 0;
523
			this->ListPackages->UseCompatibleStateImageBehavior = false;
514
			this->ListPackages->UseCompatibleStateImageBehavior = false;
524
			this->ListPackages->View = System::Windows::Forms::View::Details;
515
			this->ListPackages->View = System::Windows::Forms::View::Details;
525
			this->ListPackages->MouseDoubleClick += gcnew System::Windows::Forms::MouseEventHandler(this, &MainGui::ListPackages_MouseDoubleClick);
516
			this->ListPackages->DrawSubItem += gcnew System::Windows::Forms::DrawListViewSubItemEventHandler(this, &MainGui::ListPackages_DrawSubItem);
526
			this->ListPackages->DragDrop += gcnew System::Windows::Forms::DragEventHandler(this, &MainGui::ListPackages_DragDrop);
517
			this->ListPackages->DragDrop += gcnew System::Windows::Forms::DragEventHandler(this, &MainGui::ListPackages_DragDrop);
527
			this->ListPackages->DragOver += gcnew System::Windows::Forms::DragEventHandler(this, &MainGui::ListPackages_DragOver);
518
			this->ListPackages->DragOver += gcnew System::Windows::Forms::DragEventHandler(this, &MainGui::ListPackages_DragOver);
528
			this->ListPackages->DrawSubItem += gcnew System::Windows::Forms::DrawListViewSubItemEventHandler(this, &MainGui::ListPackages_DrawSubItem);
519
			this->ListPackages->MouseDoubleClick += gcnew System::Windows::Forms::MouseEventHandler(this, &MainGui::ListPackages_MouseDoubleClick);
529
			// 
520
			// 
530
			// columnHeader1
521
			// columnHeader1
531
			// 
522
			// 
532
			this->columnHeader1->Text = L"Package";
523
			this->columnHeader1->Text = L"Package";
533
			// 
524
			// 
Line 556... Line 547...
556
			this->columnHeader5->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;
547
			this->columnHeader5->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;
557
			// 
548
			// 
558
			// contextMenuStrip1
549
			// contextMenuStrip1
559
			// 
550
			// 
560
			this->contextMenuStrip1->ImageScalingSize = System::Drawing::Size(24, 24);
551
			this->contextMenuStrip1->ImageScalingSize = System::Drawing::Size(24, 24);
561
			this->contextMenuStrip1->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(15) {this->ContextName, 
552
			this->contextMenuStrip1->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(15) {
-
 
553
				this->ContextName,
562
				this->toolStripSeparator3, this->uninstallToolStripMenuItem, this->UninstallSelectedContext, this->ContextEnable, this->ContextDisable, 
554
					this->toolStripSeparator3, this->uninstallToolStripMenuItem, this->UninstallSelectedContext, this->ContextEnable, this->ContextDisable,
563
				this->ContextSeperator, this->viewReadmeToolStripMenuItem, this->extrasToolStripMenuItem, this->ContextSeperator2, this->emailAuthorToolStripMenuItem, 
555
					this->ContextSeperator, this->viewReadmeToolStripMenuItem, this->extrasToolStripMenuItem, this->ContextSeperator2, this->emailAuthorToolStripMenuItem,
564
				this->visitForumPageToolStripMenuItem, this->visitWebSiteToolStripMenuItem, this->toolStripSeparator2, this->checkForUpdatesToolStripMenuItem});
556
					this->visitForumPageToolStripMenuItem, this->visitWebSiteToolStripMenuItem, this->toolStripSeparator2, this->checkForUpdatesToolStripMenuItem
-
 
557
			});
565
			this->contextMenuStrip1->Name = L"contextMenuStrip1";
558
			this->contextMenuStrip1->Name = L"contextMenuStrip1";
566
			this->contextMenuStrip1->Size = System::Drawing::Size(216, 578);
559
			this->contextMenuStrip1->Size = System::Drawing::Size(244, 578);
567
			this->contextMenuStrip1->Opening += gcnew System::ComponentModel::CancelEventHandler(this, &MainGui::contextMenuStrip1_Opening);
560
			this->contextMenuStrip1->Opening += gcnew System::ComponentModel::CancelEventHandler(this, &MainGui::contextMenuStrip1_Opening);
568
			// 
561
			// 
569
			// ContextName
562
			// ContextName
570
			// 
563
			// 
571
			this->ContextName->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"ContextName.Image")));
564
			this->ContextName->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"ContextName.Image")));
572
			this->ContextName->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
565
			this->ContextName->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
573
			this->ContextName->Name = L"ContextName";
566
			this->ContextName->Name = L"ContextName";
574
			this->ContextName->Size = System::Drawing::Size(215, 50);
567
			this->ContextName->Size = System::Drawing::Size(243, 50);
575
			this->ContextName->Text = L"Name";
568
			this->ContextName->Text = L"Name";
576
			this->ContextName->Click += gcnew System::EventHandler(this, &MainGui::ContextName_Click);
569
			this->ContextName->Click += gcnew System::EventHandler(this, &MainGui::ContextName_Click);
577
			// 
570
			// 
578
			// toolStripSeparator3
571
			// toolStripSeparator3
579
			// 
572
			// 
580
			this->toolStripSeparator3->Name = L"toolStripSeparator3";
573
			this->toolStripSeparator3->Name = L"toolStripSeparator3";
581
			this->toolStripSeparator3->Size = System::Drawing::Size(212, 6);
574
			this->toolStripSeparator3->Size = System::Drawing::Size(240, 6);
582
			// 
575
			// 
583
			// uninstallToolStripMenuItem
576
			// uninstallToolStripMenuItem
584
			// 
577
			// 
585
			this->uninstallToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"uninstallToolStripMenuItem.Image")));
578
			this->uninstallToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"uninstallToolStripMenuItem.Image")));
586
			this->uninstallToolStripMenuItem->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
579
			this->uninstallToolStripMenuItem->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
587
			this->uninstallToolStripMenuItem->Name = L"uninstallToolStripMenuItem";
580
			this->uninstallToolStripMenuItem->Name = L"uninstallToolStripMenuItem";
588
			this->uninstallToolStripMenuItem->Size = System::Drawing::Size(215, 50);
581
			this->uninstallToolStripMenuItem->Size = System::Drawing::Size(243, 50);
589
			this->uninstallToolStripMenuItem->Text = L"Uninstall";
582
			this->uninstallToolStripMenuItem->Text = L"Uninstall";
590
			this->uninstallToolStripMenuItem->Click += gcnew System::EventHandler(this, &MainGui::uninstallToolStripMenuItem_Click);
583
			this->uninstallToolStripMenuItem->Click += gcnew System::EventHandler(this, &MainGui::uninstallToolStripMenuItem_Click);
591
			// 
584
			// 
592
			// UninstallSelectedContext
585
			// UninstallSelectedContext
593
			// 
586
			// 
594
			this->UninstallSelectedContext->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"UninstallSelectedContext.Image")));
587
			this->UninstallSelectedContext->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"UninstallSelectedContext.Image")));
595
			this->UninstallSelectedContext->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
588
			this->UninstallSelectedContext->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
596
			this->UninstallSelectedContext->Name = L"UninstallSelectedContext";
589
			this->UninstallSelectedContext->Name = L"UninstallSelectedContext";
597
			this->UninstallSelectedContext->Size = System::Drawing::Size(215, 50);
590
			this->UninstallSelectedContext->Size = System::Drawing::Size(243, 50);
598
			this->UninstallSelectedContext->Text = L"Uninstall Selected";
591
			this->UninstallSelectedContext->Text = L"Uninstall Selected";
599
			this->UninstallSelectedContext->Click += gcnew System::EventHandler(this, &MainGui::UninstallSelectedContext_Click);
592
			this->UninstallSelectedContext->Click += gcnew System::EventHandler(this, &MainGui::UninstallSelectedContext_Click);
600
			// 
593
			// 
601
			// ContextEnable
594
			// ContextEnable
602
			// 
595
			// 
603
			this->ContextEnable->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"ContextEnable.Image")));
596
			this->ContextEnable->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"ContextEnable.Image")));
604
			this->ContextEnable->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
597
			this->ContextEnable->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
605
			this->ContextEnable->Name = L"ContextEnable";
598
			this->ContextEnable->Name = L"ContextEnable";
606
			this->ContextEnable->Size = System::Drawing::Size(215, 50);
599
			this->ContextEnable->Size = System::Drawing::Size(243, 50);
607
			this->ContextEnable->Text = L"Enable";
600
			this->ContextEnable->Text = L"Enable";
608
			this->ContextEnable->Click += gcnew System::EventHandler(this, &MainGui::ContextEnable_Click);
601
			this->ContextEnable->Click += gcnew System::EventHandler(this, &MainGui::ContextEnable_Click);
609
			// 
602
			// 
610
			// ContextDisable
603
			// ContextDisable
611
			// 
604
			// 
612
			this->ContextDisable->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"ContextDisable.Image")));
605
			this->ContextDisable->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"ContextDisable.Image")));
613
			this->ContextDisable->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
606
			this->ContextDisable->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
614
			this->ContextDisable->Name = L"ContextDisable";
607
			this->ContextDisable->Name = L"ContextDisable";
615
			this->ContextDisable->Size = System::Drawing::Size(215, 50);
608
			this->ContextDisable->Size = System::Drawing::Size(243, 50);
616
			this->ContextDisable->Text = L"Disable";
609
			this->ContextDisable->Text = L"Disable";
617
			this->ContextDisable->Click += gcnew System::EventHandler(this, &MainGui::ContextDisable_Click);
610
			this->ContextDisable->Click += gcnew System::EventHandler(this, &MainGui::ContextDisable_Click);
618
			// 
611
			// 
619
			// ContextSeperator
612
			// ContextSeperator
620
			// 
613
			// 
621
			this->ContextSeperator->Name = L"ContextSeperator";
614
			this->ContextSeperator->Name = L"ContextSeperator";
622
			this->ContextSeperator->Size = System::Drawing::Size(212, 6);
615
			this->ContextSeperator->Size = System::Drawing::Size(240, 6);
623
			// 
616
			// 
624
			// viewReadmeToolStripMenuItem
617
			// viewReadmeToolStripMenuItem
625
			// 
618
			// 
626
			this->viewReadmeToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"viewReadmeToolStripMenuItem.Image")));
619
			this->viewReadmeToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"viewReadmeToolStripMenuItem.Image")));
627
			this->viewReadmeToolStripMenuItem->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
620
			this->viewReadmeToolStripMenuItem->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
628
			this->viewReadmeToolStripMenuItem->Name = L"viewReadmeToolStripMenuItem";
621
			this->viewReadmeToolStripMenuItem->Name = L"viewReadmeToolStripMenuItem";
629
			this->viewReadmeToolStripMenuItem->Size = System::Drawing::Size(215, 50);
622
			this->viewReadmeToolStripMenuItem->Size = System::Drawing::Size(243, 50);
630
			this->viewReadmeToolStripMenuItem->Text = L"View Readme";
623
			this->viewReadmeToolStripMenuItem->Text = L"View Readme";
631
			// 
624
			// 
632
			// extrasToolStripMenuItem
625
			// extrasToolStripMenuItem
633
			// 
626
			// 
634
			this->extrasToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"extrasToolStripMenuItem.Image")));
627
			this->extrasToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"extrasToolStripMenuItem.Image")));
635
			this->extrasToolStripMenuItem->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
628
			this->extrasToolStripMenuItem->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
636
			this->extrasToolStripMenuItem->Name = L"extrasToolStripMenuItem";
629
			this->extrasToolStripMenuItem->Name = L"extrasToolStripMenuItem";
637
			this->extrasToolStripMenuItem->Size = System::Drawing::Size(215, 50);
630
			this->extrasToolStripMenuItem->Size = System::Drawing::Size(243, 50);
638
			this->extrasToolStripMenuItem->Text = L"Extras";
631
			this->extrasToolStripMenuItem->Text = L"Extras";
639
			// 
632
			// 
640
			// ContextSeperator2
633
			// ContextSeperator2
641
			// 
634
			// 
642
			this->ContextSeperator2->Name = L"ContextSeperator2";
635
			this->ContextSeperator2->Name = L"ContextSeperator2";
643
			this->ContextSeperator2->Size = System::Drawing::Size(212, 6);
636
			this->ContextSeperator2->Size = System::Drawing::Size(240, 6);
644
			// 
637
			// 
645
			// emailAuthorToolStripMenuItem
638
			// emailAuthorToolStripMenuItem
646
			// 
639
			// 
647
			this->emailAuthorToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"emailAuthorToolStripMenuItem.Image")));
640
			this->emailAuthorToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"emailAuthorToolStripMenuItem.Image")));
648
			this->emailAuthorToolStripMenuItem->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
641
			this->emailAuthorToolStripMenuItem->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
649
			this->emailAuthorToolStripMenuItem->Name = L"emailAuthorToolStripMenuItem";
642
			this->emailAuthorToolStripMenuItem->Name = L"emailAuthorToolStripMenuItem";
650
			this->emailAuthorToolStripMenuItem->Size = System::Drawing::Size(215, 50);
643
			this->emailAuthorToolStripMenuItem->Size = System::Drawing::Size(243, 50);
651
			this->emailAuthorToolStripMenuItem->Text = L"Email Author";
644
			this->emailAuthorToolStripMenuItem->Text = L"Email Author";
652
			this->emailAuthorToolStripMenuItem->Click += gcnew System::EventHandler(this, &MainGui::emailAuthorToolStripMenuItem_Click);
645
			this->emailAuthorToolStripMenuItem->Click += gcnew System::EventHandler(this, &MainGui::emailAuthorToolStripMenuItem_Click);
653
			// 
646
			// 
654
			// visitForumPageToolStripMenuItem
647
			// visitForumPageToolStripMenuItem
655
			// 
648
			// 
656
			this->visitForumPageToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"visitForumPageToolStripMenuItem.Image")));
649
			this->visitForumPageToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"visitForumPageToolStripMenuItem.Image")));
657
			this->visitForumPageToolStripMenuItem->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
650
			this->visitForumPageToolStripMenuItem->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
658
			this->visitForumPageToolStripMenuItem->Name = L"visitForumPageToolStripMenuItem";
651
			this->visitForumPageToolStripMenuItem->Name = L"visitForumPageToolStripMenuItem";
659
			this->visitForumPageToolStripMenuItem->Size = System::Drawing::Size(215, 50);
652
			this->visitForumPageToolStripMenuItem->Size = System::Drawing::Size(243, 50);
660
			this->visitForumPageToolStripMenuItem->Text = L"Visit Forum Page";
653
			this->visitForumPageToolStripMenuItem->Text = L"Visit Forum Page";
661
			this->visitForumPageToolStripMenuItem->Click += gcnew System::EventHandler(this, &MainGui::visitForumPageToolStripMenuItem_Click);
654
			this->visitForumPageToolStripMenuItem->Click += gcnew System::EventHandler(this, &MainGui::visitForumPageToolStripMenuItem_Click);
662
			// 
655
			// 
663
			// visitWebSiteToolStripMenuItem
656
			// visitWebSiteToolStripMenuItem
664
			// 
657
			// 
665
			this->visitWebSiteToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"visitWebSiteToolStripMenuItem.Image")));
658
			this->visitWebSiteToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"visitWebSiteToolStripMenuItem.Image")));
666
			this->visitWebSiteToolStripMenuItem->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
659
			this->visitWebSiteToolStripMenuItem->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
667
			this->visitWebSiteToolStripMenuItem->Name = L"visitWebSiteToolStripMenuItem";
660
			this->visitWebSiteToolStripMenuItem->Name = L"visitWebSiteToolStripMenuItem";
668
			this->visitWebSiteToolStripMenuItem->Size = System::Drawing::Size(215, 50);
661
			this->visitWebSiteToolStripMenuItem->Size = System::Drawing::Size(243, 50);
669
			this->visitWebSiteToolStripMenuItem->Text = L"Visit Web Site";
662
			this->visitWebSiteToolStripMenuItem->Text = L"Visit Web Site";
670
			this->visitWebSiteToolStripMenuItem->Click += gcnew System::EventHandler(this, &MainGui::visitWebSiteToolStripMenuItem_Click);
663
			this->visitWebSiteToolStripMenuItem->Click += gcnew System::EventHandler(this, &MainGui::visitWebSiteToolStripMenuItem_Click);
671
			// 
664
			// 
672
			// toolStripSeparator2
665
			// toolStripSeparator2
673
			// 
666
			// 
674
			this->toolStripSeparator2->Name = L"toolStripSeparator2";
667
			this->toolStripSeparator2->Name = L"toolStripSeparator2";
675
			this->toolStripSeparator2->Size = System::Drawing::Size(212, 6);
668
			this->toolStripSeparator2->Size = System::Drawing::Size(240, 6);
676
			// 
669
			// 
677
			// checkForUpdatesToolStripMenuItem
670
			// checkForUpdatesToolStripMenuItem
678
			// 
671
			// 
679
			this->checkForUpdatesToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"checkForUpdatesToolStripMenuItem.Image")));
672
			this->checkForUpdatesToolStripMenuItem->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"checkForUpdatesToolStripMenuItem.Image")));
680
			this->checkForUpdatesToolStripMenuItem->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
673
			this->checkForUpdatesToolStripMenuItem->ImageScaling = System::Windows::Forms::ToolStripItemImageScaling::None;
681
			this->checkForUpdatesToolStripMenuItem->Name = L"checkForUpdatesToolStripMenuItem";
674
			this->checkForUpdatesToolStripMenuItem->Name = L"checkForUpdatesToolStripMenuItem";
682
			this->checkForUpdatesToolStripMenuItem->Size = System::Drawing::Size(215, 50);
675
			this->checkForUpdatesToolStripMenuItem->Size = System::Drawing::Size(243, 50);
683
			this->checkForUpdatesToolStripMenuItem->Text = L"Check For Updates";
676
			this->checkForUpdatesToolStripMenuItem->Text = L"Check For Updates";
684
			this->checkForUpdatesToolStripMenuItem->Click += gcnew System::EventHandler(this, &MainGui::checkForUpdatesToolStripMenuItem_Click);
677
			this->checkForUpdatesToolStripMenuItem->Click += gcnew System::EventHandler(this, &MainGui::checkForUpdatesToolStripMenuItem_Click);
685
			// 
678
			// 
686
			// panel1
679
			// panel1
687
			// 
680
			// 
688
			this->panel1->AllowDrop = true;
681
			this->panel1->AllowDrop = true;
689
			this->panel1->Controls->Add(this->ProgressBar);
682
			this->panel1->Controls->Add(this->ProgressBar);
690
			this->panel1->Controls->Add(this->ButRun);
683
			this->panel1->Controls->Add(this->ButRun);
691
			this->panel1->Controls->Add(this->ButClose);
684
			this->panel1->Controls->Add(this->ButClose);
692
			this->panel1->Dock = System::Windows::Forms::DockStyle::Bottom;
685
			this->panel1->Dock = System::Windows::Forms::DockStyle::Bottom;
693
			this->panel1->Location = System::Drawing::Point(0, 551);
686
			this->panel1->Location = System::Drawing::Point(0, 681);
694
			this->panel1->Margin = System::Windows::Forms::Padding(5, 10, 5, 10);
687
			this->panel1->Margin = System::Windows::Forms::Padding(7, 12, 7, 12);
695
			this->panel1->Name = L"panel1";
688
			this->panel1->Name = L"panel1";
696
			this->panel1->Size = System::Drawing::Size(626, 37);
689
			this->panel1->Size = System::Drawing::Size(835, 46);
697
			this->panel1->TabIndex = 2;
690
			this->panel1->TabIndex = 2;
698
			// 
691
			// 
699
			// ProgressBar
692
			// ProgressBar
700
			// 
693
			// 
701
			this->ProgressBar->Dock = System::Windows::Forms::DockStyle::Fill;
694
			this->ProgressBar->Dock = System::Windows::Forms::DockStyle::Fill;
702
			this->ProgressBar->Location = System::Drawing::Point(0, 0);
695
			this->ProgressBar->Location = System::Drawing::Point(0, 0);
703
			this->ProgressBar->Margin = System::Windows::Forms::Padding(10);
696
			this->ProgressBar->Margin = System::Windows::Forms::Padding(13, 12, 13, 12);
704
			this->ProgressBar->MarqueeAnimationSpeed = 5;
697
			this->ProgressBar->MarqueeAnimationSpeed = 5;
705
			this->ProgressBar->Name = L"ProgressBar";
698
			this->ProgressBar->Name = L"ProgressBar";
706
			this->ProgressBar->Size = System::Drawing::Size(432, 37);
699
			this->ProgressBar->Size = System::Drawing::Size(576, 46);
707
			this->ProgressBar->Style = System::Windows::Forms::ProgressBarStyle::Marquee;
700
			this->ProgressBar->Style = System::Windows::Forms::ProgressBarStyle::Marquee;
708
			this->ProgressBar->TabIndex = 1;
701
			this->ProgressBar->TabIndex = 1;
709
			this->ProgressBar->Visible = false;
702
			this->ProgressBar->Visible = false;
710
			// 
703
			// 
711
			// ButRun
704
			// ButRun
712
			// 
705
			// 
713
			this->ButRun->AutoSize = true;
706
			this->ButRun->AutoSize = true;
714
			this->ButRun->Dock = System::Windows::Forms::DockStyle::Right;
707
			this->ButRun->Dock = System::Windows::Forms::DockStyle::Right;
715
			this->ButRun->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"ButRun.Image")));
708
			this->ButRun->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"ButRun.Image")));
716
			this->ButRun->Location = System::Drawing::Point(432, 0);
709
			this->ButRun->Location = System::Drawing::Point(576, 0);
-
 
710
			this->ButRun->Margin = System::Windows::Forms::Padding(4);
717
			this->ButRun->Name = L"ButRun";
711
			this->ButRun->Name = L"ButRun";
718
			this->ButRun->Size = System::Drawing::Size(119, 37);
712
			this->ButRun->Size = System::Drawing::Size(159, 46);
719
			this->ButRun->TabIndex = 2;
713
			this->ButRun->TabIndex = 2;
720
			this->ButRun->Text = L"Run Game";
714
			this->ButRun->Text = L"Run Game";
721
			this->ButRun->TextImageRelation = System::Windows::Forms::TextImageRelation::ImageBeforeText;
715
			this->ButRun->TextImageRelation = System::Windows::Forms::TextImageRelation::ImageBeforeText;
722
			this->ButRun->UseVisualStyleBackColor = true;
716
			this->ButRun->UseVisualStyleBackColor = true;
723
			this->ButRun->Click += gcnew System::EventHandler(this, &MainGui::ButRun_Click);
717
			this->ButRun->Click += gcnew System::EventHandler(this, &MainGui::ButRun_Click);
724
			// 
718
			// 
725
			// ButClose
719
			// ButClose
726
			// 
720
			// 
727
			this->ButClose->Dock = System::Windows::Forms::DockStyle::Right;
721
			this->ButClose->Dock = System::Windows::Forms::DockStyle::Right;
728
			this->ButClose->Location = System::Drawing::Point(551, 0);
722
			this->ButClose->Location = System::Drawing::Point(735, 0);
-
 
723
			this->ButClose->Margin = System::Windows::Forms::Padding(4);
729
			this->ButClose->Name = L"ButClose";
724
			this->ButClose->Name = L"ButClose";
730
			this->ButClose->Size = System::Drawing::Size(75, 37);
725
			this->ButClose->Size = System::Drawing::Size(100, 46);
731
			this->ButClose->TabIndex = 0;
726
			this->ButClose->TabIndex = 0;
732
			this->ButClose->Text = L"Close";
727
			this->ButClose->Text = L"Close";
733
			this->ButClose->UseVisualStyleBackColor = true;
728
			this->ButClose->UseVisualStyleBackColor = true;
734
			// 
729
			// 
735
			// GroupPackages
730
			// GroupPackages
736
			// 
731
			// 
737
			this->GroupPackages->Controls->Add(this->ListPackages);
732
			this->GroupPackages->Controls->Add(this->ListPackages);
738
			this->GroupPackages->Controls->Add(this->PanelDisplay);
733
			this->GroupPackages->Controls->Add(this->PanelDisplay);
739
			this->GroupPackages->Controls->Add(this->panel2);
734
			this->GroupPackages->Controls->Add(this->panel2);
740
			this->GroupPackages->Dock = System::Windows::Forms::DockStyle::Fill;
735
			this->GroupPackages->Dock = System::Windows::Forms::DockStyle::Fill;
741
			this->GroupPackages->Location = System::Drawing::Point(0, 52);
736
			this->GroupPackages->Location = System::Drawing::Point(0, 64);
-
 
737
			this->GroupPackages->Margin = System::Windows::Forms::Padding(4);
742
			this->GroupPackages->Name = L"GroupPackages";
738
			this->GroupPackages->Name = L"GroupPackages";
-
 
739
			this->GroupPackages->Padding = System::Windows::Forms::Padding(4);
743
			this->GroupPackages->Size = System::Drawing::Size(626, 499);
740
			this->GroupPackages->Size = System::Drawing::Size(835, 617);
744
			this->GroupPackages->TabIndex = 3;
741
			this->GroupPackages->TabIndex = 3;
745
			this->GroupPackages->TabStop = false;
742
			this->GroupPackages->TabStop = false;
746
			this->GroupPackages->Text = L"Installed Packages";
743
			this->GroupPackages->Text = L"Installed Packages";
747
			// 
744
			// 
748
			// PanelDisplay
745
			// PanelDisplay
749
			// 
746
			// 
750
			this->PanelDisplay->AllowDrop = true;
747
			this->PanelDisplay->AllowDrop = true;
751
			this->PanelDisplay->Controls->Add(this->TextDesc);
748
			this->PanelDisplay->Controls->Add(this->TextDesc);
752
			this->PanelDisplay->Controls->Add(this->PictureDisplay);
749
			this->PanelDisplay->Controls->Add(this->PictureDisplay);
753
			this->PanelDisplay->Dock = System::Windows::Forms::DockStyle::Bottom;
750
			this->PanelDisplay->Dock = System::Windows::Forms::DockStyle::Bottom;
754
			this->PanelDisplay->Location = System::Drawing::Point(3, 402);
751
			this->PanelDisplay->Location = System::Drawing::Point(4, 497);
-
 
752
			this->PanelDisplay->Margin = System::Windows::Forms::Padding(4);
755
			this->PanelDisplay->Name = L"PanelDisplay";
753
			this->PanelDisplay->Name = L"PanelDisplay";
756
			this->PanelDisplay->Size = System::Drawing::Size(620, 68);
754
			this->PanelDisplay->Size = System::Drawing::Size(827, 84);
757
			this->PanelDisplay->TabIndex = 2;
755
			this->PanelDisplay->TabIndex = 2;
758
			// 
756
			// 
759
			// TextDesc
757
			// TextDesc
760
			// 
758
			// 
761
			this->TextDesc->Dock = System::Windows::Forms::DockStyle::Fill;
759
			this->TextDesc->Dock = System::Windows::Forms::DockStyle::Fill;
762
			this->TextDesc->Location = System::Drawing::Point(72, 0);
760
			this->TextDesc->Location = System::Drawing::Point(96, 0);
-
 
761
			this->TextDesc->Margin = System::Windows::Forms::Padding(4);
763
			this->TextDesc->Name = L"TextDesc";
762
			this->TextDesc->Name = L"TextDesc";
764
			this->TextDesc->ReadOnly = true;
763
			this->TextDesc->ReadOnly = true;
765
			this->TextDesc->Size = System::Drawing::Size(548, 68);
764
			this->TextDesc->Size = System::Drawing::Size(731, 84);
766
			this->TextDesc->TabIndex = 1;
765
			this->TextDesc->TabIndex = 1;
767
			this->TextDesc->Text = L"";
766
			this->TextDesc->Text = L"";
768
			// 
767
			// 
769
			// PictureDisplay
768
			// PictureDisplay
770
			// 
769
			// 
771
			this->PictureDisplay->Dock = System::Windows::Forms::DockStyle::Left;
770
			this->PictureDisplay->Dock = System::Windows::Forms::DockStyle::Left;
772
			this->PictureDisplay->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"PictureDisplay.Image")));
771
			this->PictureDisplay->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"PictureDisplay.Image")));
773
			this->PictureDisplay->Location = System::Drawing::Point(0, 0);
772
			this->PictureDisplay->Location = System::Drawing::Point(0, 0);
-
 
773
			this->PictureDisplay->Margin = System::Windows::Forms::Padding(4);
774
			this->PictureDisplay->Name = L"PictureDisplay";
774
			this->PictureDisplay->Name = L"PictureDisplay";
775
			this->PictureDisplay->Size = System::Drawing::Size(72, 68);
775
			this->PictureDisplay->Size = System::Drawing::Size(96, 84);
776
			this->PictureDisplay->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
776
			this->PictureDisplay->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
777
			this->PictureDisplay->TabIndex = 2;
777
			this->PictureDisplay->TabIndex = 2;
778
			this->PictureDisplay->TabStop = false;
778
			this->PictureDisplay->TabStop = false;
779
			// 
779
			// 
780
			// panel2
780
			// panel2
Line 783... Line 783...
783
			this->panel2->Controls->Add(this->button1);
783
			this->panel2->Controls->Add(this->button1);
784
			this->panel2->Controls->Add(this->ButUninstall);
784
			this->panel2->Controls->Add(this->ButUninstall);
785
			this->panel2->Controls->Add(this->ButDisable);
785
			this->panel2->Controls->Add(this->ButDisable);
786
			this->panel2->Controls->Add(this->ButInstall);
786
			this->panel2->Controls->Add(this->ButInstall);
787
			this->panel2->Dock = System::Windows::Forms::DockStyle::Bottom;
787
			this->panel2->Dock = System::Windows::Forms::DockStyle::Bottom;
788
			this->panel2->Location = System::Drawing::Point(3, 470);
788
			this->panel2->Location = System::Drawing::Point(4, 581);
-
 
789
			this->panel2->Margin = System::Windows::Forms::Padding(4);
789
			this->panel2->Name = L"panel2";
790
			this->panel2->Name = L"panel2";
790
			this->panel2->Size = System::Drawing::Size(620, 26);
791
			this->panel2->Size = System::Drawing::Size(827, 32);
791
			this->panel2->TabIndex = 0;
792
			this->panel2->TabIndex = 0;
792
			// 
793
			// 
793
			// button1
794
			// button1
794
			// 
795
			// 
795
			this->button1->Dock = System::Windows::Forms::DockStyle::Left;
796
			this->button1->Dock = System::Windows::Forms::DockStyle::Left;
796
			this->button1->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"button1.Image")));
797
			this->button1->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"button1.Image")));
797
			this->button1->Location = System::Drawing::Point(122, 0);
798
			this->button1->Location = System::Drawing::Point(172, 0);
-
 
799
			this->button1->Margin = System::Windows::Forms::Padding(4);
798
			this->button1->Name = L"button1";
800
			this->button1->Name = L"button1";
799
			this->button1->Size = System::Drawing::Size(121, 26);
801
			this->button1->Size = System::Drawing::Size(161, 32);
800
			this->button1->TabIndex = 3;
802
			this->button1->TabIndex = 3;
801
			this->button1->Text = L"Install Archive";
803
			this->button1->Text = L"Install Archive";
802
			this->button1->TextImageRelation = System::Windows::Forms::TextImageRelation::ImageBeforeText;
804
			this->button1->TextImageRelation = System::Windows::Forms::TextImageRelation::ImageBeforeText;
803
			this->button1->UseVisualStyleBackColor = true;
805
			this->button1->UseVisualStyleBackColor = true;
804
			this->button1->Click += gcnew System::EventHandler(this, &MainGui::button1_Click);
806
			this->button1->Click += gcnew System::EventHandler(this, &MainGui::button1_Click);
805
			// 
807
			// 
806
			// ButUninstall
808
			// ButUninstall
807
			// 
809
			// 
808
			this->ButUninstall->AutoSize = true;
810
			this->ButUninstall->AutoSize = true;
809
			this->ButUninstall->Dock = System::Windows::Forms::DockStyle::Right;
811
			this->ButUninstall->Dock = System::Windows::Forms::DockStyle::Right;
810
			this->ButUninstall->Location = System::Drawing::Point(357, 0);
812
			this->ButUninstall->Location = System::Drawing::Point(476, 0);
-
 
813
			this->ButUninstall->Margin = System::Windows::Forms::Padding(4);
811
			this->ButUninstall->Name = L"ButUninstall";
814
			this->ButUninstall->Name = L"ButUninstall";
812
			this->ButUninstall->Size = System::Drawing::Size(122, 26);
815
			this->ButUninstall->Size = System::Drawing::Size(163, 32);
813
			this->ButUninstall->TabIndex = 2;
816
			this->ButUninstall->TabIndex = 2;
814
			this->ButUninstall->Text = L"Uninstall";
817
			this->ButUninstall->Text = L"Uninstall";
815
			this->ButUninstall->UseVisualStyleBackColor = true;
818
			this->ButUninstall->UseVisualStyleBackColor = true;
816
			// 
819
			// 
817
			// ButDisable
820
			// ButDisable
818
			// 
821
			// 
819
			this->ButDisable->AutoSize = true;
822
			this->ButDisable->AutoSize = true;
820
			this->ButDisable->Dock = System::Windows::Forms::DockStyle::Right;
823
			this->ButDisable->Dock = System::Windows::Forms::DockStyle::Right;
821
			this->ButDisable->Location = System::Drawing::Point(479, 0);
824
			this->ButDisable->Location = System::Drawing::Point(639, 0);
-
 
825
			this->ButDisable->Margin = System::Windows::Forms::Padding(4);
822
			this->ButDisable->Name = L"ButDisable";
826
			this->ButDisable->Name = L"ButDisable";
823
			this->ButDisable->Size = System::Drawing::Size(141, 26);
827
			this->ButDisable->Size = System::Drawing::Size(188, 32);
824
			this->ButDisable->TabIndex = 1;
828
			this->ButDisable->TabIndex = 1;
825
			this->ButDisable->Text = L"Disable";
829
			this->ButDisable->Text = L"Disable";
826
			this->ButDisable->UseVisualStyleBackColor = true;
830
			this->ButDisable->UseVisualStyleBackColor = true;
827
			// 
831
			// 
828
			// ButInstall
832
			// ButInstall
829
			// 
833
			// 
830
			this->ButInstall->AutoSize = true;
834
			this->ButInstall->AutoSize = true;
831
			this->ButInstall->Dock = System::Windows::Forms::DockStyle::Left;
835
			this->ButInstall->Dock = System::Windows::Forms::DockStyle::Left;
832
			this->ButInstall->Image = (cli::safe_cast<System::Drawing::Image^  >(resources->GetObject(L"ButInstall.Image")));
836
			this->ButInstall->Image = (cli::safe_cast<System::Drawing::Image^>(resources->GetObject(L"ButInstall.Image")));
833
			this->ButInstall->Location = System::Drawing::Point(0, 0);
837
			this->ButInstall->Location = System::Drawing::Point(0, 0);
-
 
838
			this->ButInstall->Margin = System::Windows::Forms::Padding(4);
834
			this->ButInstall->Name = L"ButInstall";
839
			this->ButInstall->Name = L"ButInstall";
835
			this->ButInstall->Size = System::Drawing::Size(122, 26);
840
			this->ButInstall->Size = System::Drawing::Size(172, 32);
836
			this->ButInstall->TabIndex = 0;
841
			this->ButInstall->TabIndex = 0;
837
			this->ButInstall->Text = L"Install Package";
842
			this->ButInstall->Text = L"Install Package";
838
			this->ButInstall->TextImageRelation = System::Windows::Forms::TextImageRelation::ImageBeforeText;
843
			this->ButInstall->TextImageRelation = System::Windows::Forms::TextImageRelation::ImageBeforeText;
839
			this->ButInstall->UseVisualStyleBackColor = true;
844
			this->ButInstall->UseVisualStyleBackColor = true;
840
			// 
845
			// 
841
			// statusStrip1
846
			// statusStrip1
842
			// 
847
			// 
-
 
848
			this->statusStrip1->ImageScalingSize = System::Drawing::Size(20, 20);
843
			this->statusStrip1->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(1) {this->LabelStatus});
849
			this->statusStrip1->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(1) { this->LabelStatus });
844
			this->statusStrip1->Location = System::Drawing::Point(0, 588);
850
			this->statusStrip1->Location = System::Drawing::Point(0, 727);
845
			this->statusStrip1->Name = L"statusStrip1";
851
			this->statusStrip1->Name = L"statusStrip1";
-
 
852
			this->statusStrip1->Padding = System::Windows::Forms::Padding(1, 0, 19, 0);
846
			this->statusStrip1->Size = System::Drawing::Size(626, 22);
853
			this->statusStrip1->Size = System::Drawing::Size(835, 24);
847
			this->statusStrip1->TabIndex = 5;
854
			this->statusStrip1->TabIndex = 5;
848
			this->statusStrip1->Text = L"statusStrip1";
855
			this->statusStrip1->Text = L"statusStrip1";
849
			// 
856
			// 
850
			// LabelStatus
857
			// LabelStatus
851
			// 
858
			// 
852
			this->LabelStatus->Name = L"LabelStatus";
859
			this->LabelStatus->Name = L"LabelStatus";
853
			this->LabelStatus->Size = System::Drawing::Size(0, 17);
860
			this->LabelStatus->Size = System::Drawing::Size(0, 19);
854
			// 
861
			// 
855
			// imageList1
862
			// imageList1
856
			// 
863
			// 
857
			this->imageList1->ImageStream = (cli::safe_cast<System::Windows::Forms::ImageListStreamer^  >(resources->GetObject(L"imageList1.ImageStream")));
864
			this->imageList1->ImageStream = (cli::safe_cast<System::Windows::Forms::ImageListStreamer^>(resources->GetObject(L"imageList1.ImageStream")));
858
			this->imageList1->TransparentColor = System::Drawing::Color::Transparent;
865
			this->imageList1->TransparentColor = System::Drawing::Color::Transparent;
859
			this->imageList1->Images->SetKeyName(0, L"ship.png");
866
			this->imageList1->Images->SetKeyName(0, L"ship.png");
860
			this->imageList1->Images->SetKeyName(1, L"package.png");
867
			this->imageList1->Images->SetKeyName(1, L"package.png");
861
			this->imageList1->Images->SetKeyName(2, L"fake.png");
868
			this->imageList1->Images->SetKeyName(2, L"fake.png");
862
			this->imageList1->Images->SetKeyName(3, L"library.png");
869
			this->imageList1->Images->SetKeyName(3, L"library.png");
Line 864... Line 871...
864
			this->imageList1->Images->SetKeyName(5, L"tick.png");
871
			this->imageList1->Images->SetKeyName(5, L"tick.png");
865
			this->imageList1->Images->SetKeyName(6, L"no.png");
872
			this->imageList1->Images->SetKeyName(6, L"no.png");
866
			// 
873
			// 
867
			// imageList2
874
			// imageList2
868
			// 
875
			// 
869
			this->imageList2->ImageStream = (cli::safe_cast<System::Windows::Forms::ImageListStreamer^  >(resources->GetObject(L"imageList2.ImageStream")));
876
			this->imageList2->ImageStream = (cli::safe_cast<System::Windows::Forms::ImageListStreamer^>(resources->GetObject(L"imageList2.ImageStream")));
870
			this->imageList2->TransparentColor = System::Drawing::Color::Transparent;
877
			this->imageList2->TransparentColor = System::Drawing::Color::Transparent;
871
			this->imageList2->Images->SetKeyName(0, L"application");
878
			this->imageList2->Images->SetKeyName(0, L"application");
872
			this->imageList2->Images->SetKeyName(1, L"exe");
879
			this->imageList2->Images->SetKeyName(1, L"exe");
873
			this->imageList2->Images->SetKeyName(2, L"doc");
880
			this->imageList2->Images->SetKeyName(2, L"doc");
874
			this->imageList2->Images->SetKeyName(3, L"pdf");
881
			this->imageList2->Images->SetKeyName(3, L"pdf");
Line 889... Line 896...
889
			this->backgroundWorker2->RunWorkerCompleted += gcnew System::ComponentModel::RunWorkerCompletedEventHandler(this, &MainGui::backgroundWorker2_RunWorkerCompleted);
896
			this->backgroundWorker2->RunWorkerCompleted += gcnew System::ComponentModel::RunWorkerCompletedEventHandler(this, &MainGui::backgroundWorker2_RunWorkerCompleted);
890
			// 
897
			// 
891
			// MainGui
898
			// MainGui
892
			// 
899
			// 
893
			this->AllowDrop = true;
900
			this->AllowDrop = true;
894
			this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
901
			this->AutoScaleDimensions = System::Drawing::SizeF(8, 16);
895
			this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
902
			this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
896
			this->ClientSize = System::Drawing::Size(626, 610);
903
			this->ClientSize = System::Drawing::Size(835, 751);
897
			this->Controls->Add(this->GroupPackages);
904
			this->Controls->Add(this->GroupPackages);
898
			this->Controls->Add(this->panel1);
905
			this->Controls->Add(this->panel1);
899
			this->Controls->Add(this->GroupDir);
906
			this->Controls->Add(this->GroupDir);
900
			this->Controls->Add(this->statusStrip1);
907
			this->Controls->Add(this->statusStrip1);
901
			this->Icon = (cli::safe_cast<System::Drawing::Icon^  >(resources->GetObject(L"$this.Icon")));
908
			this->Icon = (cli::safe_cast<System::Drawing::Icon^>(resources->GetObject(L"$this.Icon")));
-
 
909
			this->Margin = System::Windows::Forms::Padding(4);
902
			this->Name = L"MainGui";
910
			this->Name = L"MainGui";
903
			this->StartPosition = System::Windows::Forms::FormStartPosition::Manual;
911
			this->StartPosition = System::Windows::Forms::FormStartPosition::Manual;
904
			this->Text = L"X-Universe Plugin Manager Lite";
912
			this->Text = L"X-Universe Plugin Manager Lite";
905
			this->Load += gcnew System::EventHandler(this, &MainGui::MainGui_Load);
913
			this->Load += gcnew System::EventHandler(this, &MainGui::MainGui_Load);
-
 
914
			this->Shown += gcnew System::EventHandler(this, &MainGui::MainGui_Shown);
906
			this->GroupDir->ResumeLayout(false);
915
			this->GroupDir->ResumeLayout(false);
907
			this->contextMenuStrip1->ResumeLayout(false);
916
			this->contextMenuStrip1->ResumeLayout(false);
908
			this->panel1->ResumeLayout(false);
917
			this->panel1->ResumeLayout(false);
909
			this->panel1->PerformLayout();
918
			this->panel1->PerformLayout();
910
			this->GroupPackages->ResumeLayout(false);
919
			this->GroupPackages->ResumeLayout(false);
911
			this->PanelDisplay->ResumeLayout(false);
920
			this->PanelDisplay->ResumeLayout(false);
912
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->PictureDisplay))->EndInit();
921
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->PictureDisplay))->EndInit();
913
			this->panel2->ResumeLayout(false);
922
			this->panel2->ResumeLayout(false);
914
			this->panel2->PerformLayout();
923
			this->panel2->PerformLayout();
915
			this->statusStrip1->ResumeLayout(false);
924
			this->statusStrip1->ResumeLayout(false);
916
			this->statusStrip1->PerformLayout();
925
			this->statusStrip1->PerformLayout();
917
			this->ResumeLayout(false);
926
			this->ResumeLayout(false);
918
			this->PerformLayout();
927
			this->PerformLayout();
919
 
928
 
920
		}
929
		}
921
#pragma endregion
930
#pragma endregion
922
private: System::Void MainGui_Load(System::Object^  sender, System::EventArgs^  e) {
931
private: System::Void MainGui_Load(System::Object^  sender, System::EventArgs^  e);
923
			 if ( m_iSaveGameManager == -1 )
-
 
924
			 {
-
 
925
				 if ( MessageBox::Show(this, "The save game manager will keep seperate save games for each directory and keeps vanilla and modified save games seperate\n\nDo you want to enable the save game manager?", "Save Game Manager", MessageBoxButtons::YesNo, MessageBoxIcon::Question) == Windows::Forms::DialogResult::Yes )
932
private: System::Void MainGui_Shown(System::Object^  sender, System::EventArgs^  e);
926
				 {
-
 
927
					 m_iSaveGameManager = 1;
-
 
928
					 this->PrepareSaveGameManager();
-
 
929
				 }
-
 
930
				 else
-
 
931
					 m_iSaveGameManager = 0;
-
 
932
			 }
-
 
933
 
-
 
934
			 m_pMenuBar->SetSaveGameManager((m_iSaveGameManager == 1) ? true : false);
-
 
935
 
-
 
936
 			// auto update
-
 
937
			if ( m_iSizeX != -1 && m_iSizeY != -1 )
-
 
938
				this->Size = System::Drawing::Size(m_iSizeX, m_iSizeY);
-
 
939
 
-
 
940
			this->UpdateBuiltInPackages();
-
 
941
			this->AutoUpdate();
-
 
942
 
-
 
943
		 }
-
 
944
private: System::Void ButRun_Click(System::Object^  sender, System::EventArgs^  e) {
933
private: System::Void ButRun_Click(System::Object^  sender, System::EventArgs^  e) {
945
			 this->LaunchGame();
934
			 this->LaunchGame();
946
		 }
935
		 }
947
private: System::Void uninstallToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
936
private: System::Void uninstallToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
948
			 if ( m_pListItem )
937
			 if ( m_pListItem )
Line 1046... Line 1035...
1046
					int errorNum = m_pPackages->PrepareInstallPackage(m_pConverted, false, false, IC_ALL);
1035
					int errorNum = m_pPackages->PrepareInstallPackage(m_pConverted, false, false, IC_ALL);
1047
					if ( errorNum != INSTALLCHECK_OK )
1036
					if ( errorNum != INSTALLCHECK_OK )
1048
					{
1037
					{
1049
						if ( errorNum == INSTALLCHECK_NOSHIP )
1038
						if ( errorNum == INSTALLCHECK_NOSHIP )
1050
						{
1039
						{
1051
							this->DisplayMessageBox(false, "No Ships", "Ships are not supported for " + SystemStringFromCyString(m_pPackages->GetGameName()), MessageBoxButtons::OK, MessageBoxIcon::Stop);
1040
							this->DisplayMessageBox(false, "No Ships", "Ships are not supported for " + _US(m_pPackages->getGameName()), MessageBoxButtons::OK, MessageBoxIcon::Stop);
1052
							errored = true;
1041
							errored = true;
1053
						}
1042
						}
1054
						else if ( m_pPackages->PrepareInstallPackage(m_pConverted, false, false, IC_MODIFIED) != INSTALLCHECK_OK )
1043
						else if ( m_pPackages->PrepareInstallPackage(m_pConverted, false, false, IC_MODIFIED) != INSTALLCHECK_OK )
1055
						{
1044
						{
1056
							this->DisplayMessageBox(false, "Installing", "Currently in Vanilla Mode, Package is not an Vanilla Package\n" + SystemStringFromCyString(m_pConverted->GetLanguageName(m_pPackages->GetLanguage())) + "\n\nSwitch to modified mode if you wish to install this package", MessageBoxButtons::OK, MessageBoxIcon::Question);
1045
							this->DisplayMessageBox(false, "Installing", "Currently in Vanilla Mode, Package is not an Vanilla Package\n" + SystemStringFromCyString(m_pConverted->GetLanguageName(m_pPackages->GetLanguage())) + "\n\nSwitch to modified mode if you wish to install this package", MessageBoxButtons::OK, MessageBoxIcon::Question);