Rev 1 | Blame | Compare with Previous | Last modification | View Log | RSS feed
#pragma once
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;
#include <spk.h>
namespace PluginManager {
/// <summary>
/// Summary for ModSelector
///
/// WARNING: If you change the name of this class, you will need to change the
/// 'Resource File Name' property for the managed resource compiler tool
/// associated with all .resx files this class depends on. Otherwise,
/// the designers will not be able to interact properly with localized
/// resources associated with this form.
/// </summary>
public ref class ModSelector : public System::Windows::Forms::Form
{
public:
ModSelector(CPackages *p, ImageList ^imageList)
{
InitializeComponent();
m_pImageList = imageList;
m_pSelectedPackage = NULL;
m_lAvailablePackages = NULL;
m_pPackages = p;
m_pSelectedMod = NULL;
m_bDetails = true;
ButUninstall->Visible = false;
m_bFoundPackages = false;
this->UpdateControls();
this->SetupEvents();
this->FindPackages();
this->Update();
this->UpdateDetails();
}
void Update();
void UpdatePackages();
void UpdateDetails();
void ShowDetails() { m_bDetails = true; this->UpdateDetails(); }
void HideDetails() { m_bDetails = false; this->UpdateDetails(); this->ListAvailable->Refresh(); }
bool ShowingDetails() { return m_bDetails; }
bool AnyPackages() { return m_bFoundPackages; }
void DownloadPackage();
void UpdateEaseOfUse(bool disable, int value);
void UpdateRecommended(bool disable, int value);
void UpdateGameChanging(bool disable, int value);
void FindPackages();
void FindPackages(String ^dir);
void FindPackages_Directory(String ^dir);
void FindPackages_Current(String ^curDir);
void RemovePackages();
CBaseFile *SelectedMod() { return m_pSelectedMod; }
protected:
/// <summary>
/// Clean up any resources being used.
/// </summary>
~ModSelector()
{
if (components)
{
delete components;
}
this->RemovePackages();
}
private:
void UpdateControls();
void SetupEvents();
void ModSelected(System::Object ^Sender, System::EventArgs ^E);
void SelectModEvent(System::Object ^Sender, System::EventArgs ^E);
void NoModEvent(System::Object ^Sender, System::EventArgs ^E);
void UninstallModEvent(System::Object ^Sender, System::EventArgs ^E);
ImageList ^m_pImageList;
const SAvailablePackage *m_pSelectedPackage;
CPackages *m_pPackages;
CBaseFile *m_pSelectedMod;
CLinkList<CBaseFile> *m_lAvailablePackages;
bool m_bDetails;
bool m_bFoundPackages;
private: System::Windows::Forms::GroupBox^ GroupMod;
protected:
private: System::Windows::Forms::GroupBox^ GroupSelect;
private: System::Windows::Forms::Panel^ panel1;
private: System::Windows::Forms::Label^ label1;
private: System::Windows::Forms::Button^ ButSelect;
private: System::Windows::Forms::Button^ ButClose;
private: System::Windows::Forms::ListView^ ListAvailable;
private: System::Windows::Forms::PictureBox^ PictureBox;
private: System::Windows::Forms::Panel^ panel2;
private: System::Windows::Forms::Label^ label4;
private: System::Windows::Forms::Label^ label3;
private: System::Windows::Forms::Label^ label2;
private: System::Windows::Forms::Label^ label5;
private: System::Windows::Forms::TextBox^ TextMod;
private: System::Windows::Forms::Panel^ panel4;
private: System::Windows::Forms::Panel^ panel3;
private: System::Windows::Forms::TextBox^ TextVersion;
private: System::Windows::Forms::TextBox^ TextAuthor;
private: System::Windows::Forms::ColumnHeader^ Mod;
private: System::Windows::Forms::ColumnHeader^ Author;
private: System::Windows::Forms::ColumnHeader^ Version;
private: System::Windows::Forms::ColumnHeader^ Updated;
private: System::Windows::Forms::RichTextBox^ TextDescSelected;
private: System::Windows::Forms::RichTextBox^ TextDesc;
private: System::Windows::Forms::Label^ label6;
private: System::Windows::Forms::Button^ ButNoMod;
private: System::Windows::Forms::Button^ ButUninstall;
private: System::Windows::Forms::TextBox^ TextCreated;
private: System::Windows::Forms::Panel^ PanelDetails;
private: System::Windows::Forms::PictureBox^ PictureSelected;
private: System::Windows::Forms::Button^ ButDetails;
private: System::Windows::Forms::Panel^ panel6;
private: System::Windows::Forms::Label^ label7;
private: System::Windows::Forms::PictureBox^ PicRec5;
private: System::Windows::Forms::PictureBox^ PicRec4;
private: System::Windows::Forms::PictureBox^ PicRec3;
private: System::Windows::Forms::PictureBox^ PicRec2;
private: System::Windows::Forms::PictureBox^ PicChange5;
private: System::Windows::Forms::PictureBox^ PicChange4;
private: System::Windows::Forms::PictureBox^ PicChange3;
private: System::Windows::Forms::PictureBox^ PicChange2;
private: System::Windows::Forms::PictureBox^ PicEase5;
private: System::Windows::Forms::PictureBox^ PicEase4;
private: System::Windows::Forms::PictureBox^ PicEase3;
private: System::Windows::Forms::PictureBox^ PicEase2;
private: System::Windows::Forms::PictureBox^ PicRec1;
private: System::Windows::Forms::PictureBox^ PicChange1;
private: System::Windows::Forms::PictureBox^ PicEase1;
private: System::Windows::Forms::Label^ label9;
private: System::Windows::Forms::Label^ label8;
private: System::Windows::Forms::Label^ LabelRecNA;
private: System::Windows::Forms::Label^ LabelChangeNA;
private: System::Windows::Forms::Label^ LabEaseNA;
private: System::Windows::Forms::Button^ button1;
private:
/// <summary>
/// Required designer variable.
/// </summary>
System::ComponentModel::Container ^components;
#pragma region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
void InitializeComponent(void)
{
System::ComponentModel::ComponentResourceManager^ resources = (gcnew System::ComponentModel::ComponentResourceManager(ModSelector::typeid));
this->GroupMod = (gcnew System::Windows::Forms::GroupBox());
this->panel2 = (gcnew System::Windows::Forms::Panel());
this->panel4 = (gcnew System::Windows::Forms::Panel());
this->TextDesc = (gcnew System::Windows::Forms::RichTextBox());
this->TextCreated = (gcnew System::Windows::Forms::TextBox());
this->TextVersion = (gcnew System::Windows::Forms::TextBox());
this->TextAuthor = (gcnew System::Windows::Forms::TextBox());
this->TextMod = (gcnew System::Windows::Forms::TextBox());
this->panel3 = (gcnew System::Windows::Forms::Panel());
this->label6 = (gcnew System::Windows::Forms::Label());
this->label3 = (gcnew System::Windows::Forms::Label());
this->label2 = (gcnew System::Windows::Forms::Label());
this->label5 = (gcnew System::Windows::Forms::Label());
this->label4 = (gcnew System::Windows::Forms::Label());
this->PictureBox = (gcnew System::Windows::Forms::PictureBox());
this->GroupSelect = (gcnew System::Windows::Forms::GroupBox());
this->ListAvailable = (gcnew System::Windows::Forms::ListView());
this->Mod = (gcnew System::Windows::Forms::ColumnHeader());
this->Author = (gcnew System::Windows::Forms::ColumnHeader());
this->Version = (gcnew System::Windows::Forms::ColumnHeader());
this->Updated = (gcnew System::Windows::Forms::ColumnHeader());
this->PanelDetails = (gcnew System::Windows::Forms::Panel());
this->TextDescSelected = (gcnew System::Windows::Forms::RichTextBox());
this->panel6 = (gcnew System::Windows::Forms::Panel());
this->LabelRecNA = (gcnew System::Windows::Forms::Label());
this->LabelChangeNA = (gcnew System::Windows::Forms::Label());
this->LabEaseNA = (gcnew System::Windows::Forms::Label());
this->PicRec5 = (gcnew System::Windows::Forms::PictureBox());
this->PicRec4 = (gcnew System::Windows::Forms::PictureBox());
this->PicRec3 = (gcnew System::Windows::Forms::PictureBox());
this->PicRec2 = (gcnew System::Windows::Forms::PictureBox());
this->PicChange5 = (gcnew System::Windows::Forms::PictureBox());
this->PicChange4 = (gcnew System::Windows::Forms::PictureBox());
this->PicChange3 = (gcnew System::Windows::Forms::PictureBox());
this->PicChange2 = (gcnew System::Windows::Forms::PictureBox());
this->PicEase5 = (gcnew System::Windows::Forms::PictureBox());
this->PicEase4 = (gcnew System::Windows::Forms::PictureBox());
this->PicEase3 = (gcnew System::Windows::Forms::PictureBox());
this->PicEase2 = (gcnew System::Windows::Forms::PictureBox());
this->PicRec1 = (gcnew System::Windows::Forms::PictureBox());
this->PicChange1 = (gcnew System::Windows::Forms::PictureBox());
this->PicEase1 = (gcnew System::Windows::Forms::PictureBox());
this->label9 = (gcnew System::Windows::Forms::Label());
this->label8 = (gcnew System::Windows::Forms::Label());
this->label7 = (gcnew System::Windows::Forms::Label());
this->PictureSelected = (gcnew System::Windows::Forms::PictureBox());
this->ButDetails = (gcnew System::Windows::Forms::Button());
this->label1 = (gcnew System::Windows::Forms::Label());
this->panel1 = (gcnew System::Windows::Forms::Panel());
this->button1 = (gcnew System::Windows::Forms::Button());
this->ButUninstall = (gcnew System::Windows::Forms::Button());
this->ButNoMod = (gcnew System::Windows::Forms::Button());
this->ButSelect = (gcnew System::Windows::Forms::Button());
this->ButClose = (gcnew System::Windows::Forms::Button());
this->GroupMod->SuspendLayout();
this->panel2->SuspendLayout();
this->panel4->SuspendLayout();
this->panel3->SuspendLayout();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->PictureBox))->BeginInit();
this->GroupSelect->SuspendLayout();
this->PanelDetails->SuspendLayout();
this->panel6->SuspendLayout();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->PicRec5))->BeginInit();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->PicRec4))->BeginInit();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->PicRec3))->BeginInit();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->PicRec2))->BeginInit();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->PicChange5))->BeginInit();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->PicChange4))->BeginInit();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->PicChange3))->BeginInit();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->PicChange2))->BeginInit();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->PicEase5))->BeginInit();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->PicEase4))->BeginInit();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->PicEase3))->BeginInit();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->PicEase2))->BeginInit();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->PicRec1))->BeginInit();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->PicChange1))->BeginInit();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->PicEase1))->BeginInit();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->PictureSelected))->BeginInit();
this->panel1->SuspendLayout();
this->SuspendLayout();
//
// GroupMod
//
this->GroupMod->Controls->Add(this->panel2);
this->GroupMod->Controls->Add(this->PictureBox);
this->GroupMod->Dock = System::Windows::Forms::DockStyle::Top;
this->GroupMod->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->GroupMod->ForeColor = System::Drawing::SystemColors::Highlight;
this->GroupMod->Location = System::Drawing::Point(8, 8);
this->GroupMod->Name = L"GroupMod";
this->GroupMod->Padding = System::Windows::Forms::Padding(5);
this->GroupMod->Size = System::Drawing::Size(613, 169);
this->GroupMod->TabIndex = 0;
this->GroupMod->TabStop = false;
this->GroupMod->Text = L"Current Loaded Mod";
//
// panel2
//
this->panel2->Controls->Add(this->panel4);
this->panel2->Controls->Add(this->panel3);
this->panel2->Dock = System::Windows::Forms::DockStyle::Fill;
this->panel2->Location = System::Drawing::Point(118, 20);
this->panel2->Name = L"panel2";
this->panel2->Size = System::Drawing::Size(490, 144);
this->panel2->TabIndex = 3;
//
// panel4
//
this->panel4->Controls->Add(this->TextDesc);
this->panel4->Controls->Add(this->TextCreated);
this->panel4->Controls->Add(this->TextVersion);
this->panel4->Controls->Add(this->TextAuthor);
this->panel4->Controls->Add(this->TextMod);
this->panel4->Dock = System::Windows::Forms::DockStyle::Fill;
this->panel4->Location = System::Drawing::Point(118, 0);
this->panel4->Name = L"panel4";
this->panel4->Size = System::Drawing::Size(372, 144);
this->panel4->TabIndex = 11;
//
// TextDesc
//
this->TextDesc->BackColor = System::Drawing::SystemColors::Info;
this->TextDesc->Cursor = System::Windows::Forms::Cursors::Arrow;
this->TextDesc->Dock = System::Windows::Forms::DockStyle::Top;
this->TextDesc->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Italic, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->TextDesc->Location = System::Drawing::Point(0, 88);
this->TextDesc->Name = L"TextDesc";
this->TextDesc->ReadOnly = true;
this->TextDesc->ScrollBars = System::Windows::Forms::RichTextBoxScrollBars::ForcedVertical;
this->TextDesc->Size = System::Drawing::Size(372, 57);
this->TextDesc->TabIndex = 12;
this->TextDesc->Text = L"";
//
// TextCreated
//
this->TextCreated->BackColor = System::Drawing::SystemColors::Info;
this->TextCreated->Cursor = System::Windows::Forms::Cursors::Arrow;
this->TextCreated->Dock = System::Windows::Forms::DockStyle::Top;
this->TextCreated->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->TextCreated->Location = System::Drawing::Point(0, 66);
this->TextCreated->Margin = System::Windows::Forms::Padding(10);
this->TextCreated->Name = L"TextCreated";
this->TextCreated->ReadOnly = true;
this->TextCreated->Size = System::Drawing::Size(372, 22);
this->TextCreated->TabIndex = 13;
//
// TextVersion
//
this->TextVersion->BackColor = System::Drawing::SystemColors::Info;
this->TextVersion->Cursor = System::Windows::Forms::Cursors::Arrow;
this->TextVersion->Dock = System::Windows::Forms::DockStyle::Top;
this->TextVersion->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->TextVersion->Location = System::Drawing::Point(0, 44);
this->TextVersion->Margin = System::Windows::Forms::Padding(10);
this->TextVersion->Name = L"TextVersion";
this->TextVersion->ReadOnly = true;
this->TextVersion->Size = System::Drawing::Size(372, 22);
this->TextVersion->TabIndex = 11;
//
// TextAuthor
//
this->TextAuthor->BackColor = System::Drawing::SystemColors::Info;
this->TextAuthor->Cursor = System::Windows::Forms::Cursors::Arrow;
this->TextAuthor->Dock = System::Windows::Forms::DockStyle::Top;
this->TextAuthor->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->TextAuthor->Location = System::Drawing::Point(0, 22);
this->TextAuthor->Margin = System::Windows::Forms::Padding(10);
this->TextAuthor->Name = L"TextAuthor";
this->TextAuthor->ReadOnly = true;
this->TextAuthor->Size = System::Drawing::Size(372, 22);
this->TextAuthor->TabIndex = 10;
//
// TextMod
//
this->TextMod->BackColor = System::Drawing::SystemColors::Info;
this->TextMod->Cursor = System::Windows::Forms::Cursors::Arrow;
this->TextMod->Dock = System::Windows::Forms::DockStyle::Top;
this->TextMod->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->TextMod->Location = System::Drawing::Point(0, 0);
this->TextMod->Name = L"TextMod";
this->TextMod->ReadOnly = true;
this->TextMod->Size = System::Drawing::Size(372, 22);
this->TextMod->TabIndex = 6;
//
// panel3
//
this->panel3->Controls->Add(this->label6);
this->panel3->Controls->Add(this->label3);
this->panel3->Controls->Add(this->label2);
this->panel3->Controls->Add(this->label5);
this->panel3->Controls->Add(this->label4);
this->panel3->Dock = System::Windows::Forms::DockStyle::Left;
this->panel3->Location = System::Drawing::Point(0, 0);
this->panel3->Name = L"panel3";
this->panel3->Size = System::Drawing::Size(118, 144);
this->panel3->TabIndex = 10;
//
// label6
//
this->label6->AutoSize = true;
this->label6->Font = (gcnew System::Drawing::Font(L"Comic Sans MS", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->label6->ForeColor = System::Drawing::SystemColors::ControlText;
this->label6->Location = System::Drawing::Point(5, 100);
this->label6->Name = L"label6";
this->label6->Size = System::Drawing::Size(85, 19);
this->label6->TabIndex = 8;
this->label6->Text = L"Description:";
//
// label3
//
this->label3->AutoSize = true;
this->label3->Font = (gcnew System::Drawing::Font(L"Comic Sans MS", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->label3->ForeColor = System::Drawing::SystemColors::ControlText;
this->label3->Location = System::Drawing::Point(3, 25);
this->label3->Name = L"label3";
this->label3->Size = System::Drawing::Size(59, 19);
this->label3->TabIndex = 3;
this->label3->Text = L"Author:";
//
// label2
//
this->label2->AutoSize = true;
this->label2->Font = (gcnew System::Drawing::Font(L"Comic Sans MS", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->label2->ForeColor = System::Drawing::SystemColors::ControlText;
this->label2->Location = System::Drawing::Point(6, 3);
this->label2->Name = L"label2";
this->label2->Size = System::Drawing::Size(41, 19);
this->label2->TabIndex = 2;
this->label2->Text = L"Mod:";
//
// label5
//
this->label5->AutoSize = true;
this->label5->Font = (gcnew System::Drawing::Font(L"Comic Sans MS", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->label5->ForeColor = System::Drawing::SystemColors::ControlText;
this->label5->Location = System::Drawing::Point(5, 66);
this->label5->Name = L"label5";
this->label5->Size = System::Drawing::Size(68, 19);
this->label5->TabIndex = 7;
this->label5->Text = L"Updated:";
//
// label4
//
this->label4->AutoSize = true;
this->label4->Font = (gcnew System::Drawing::Font(L"Comic Sans MS", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->label4->ForeColor = System::Drawing::SystemColors::ControlText;
this->label4->Location = System::Drawing::Point(5, 47);
this->label4->Name = L"label4";
this->label4->Size = System::Drawing::Size(61, 19);
this->label4->TabIndex = 4;
this->label4->Text = L"Version:";
//
// PictureBox
//
this->PictureBox->Dock = System::Windows::Forms::DockStyle::Left;
this->PictureBox->Location = System::Drawing::Point(5, 20);
this->PictureBox->Name = L"PictureBox";
this->PictureBox->Size = System::Drawing::Size(113, 144);
this->PictureBox->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
this->PictureBox->TabIndex = 0;
this->PictureBox->TabStop = false;
//
// GroupSelect
//
this->GroupSelect->Controls->Add(this->ListAvailable);
this->GroupSelect->Controls->Add(this->PanelDetails);
this->GroupSelect->Controls->Add(this->ButDetails);
this->GroupSelect->Controls->Add(this->label1);
this->GroupSelect->Dock = System::Windows::Forms::DockStyle::Fill;
this->GroupSelect->Location = System::Drawing::Point(8, 177);
this->GroupSelect->Name = L"GroupSelect";
this->GroupSelect->Padding = System::Windows::Forms::Padding(6);
this->GroupSelect->Size = System::Drawing::Size(613, 429);
this->GroupSelect->TabIndex = 1;
this->GroupSelect->TabStop = false;
this->GroupSelect->Text = L"Available Mods";
//
// ListAvailable
//
this->ListAvailable->Columns->AddRange(gcnew cli::array< System::Windows::Forms::ColumnHeader^ >(4) {this->Mod, this->Author,
this->Version, this->Updated});
this->ListAvailable->Dock = System::Windows::Forms::DockStyle::Fill;
this->ListAvailable->Location = System::Drawing::Point(6, 19);
this->ListAvailable->MultiSelect = false;
this->ListAvailable->Name = L"ListAvailable";
this->ListAvailable->Size = System::Drawing::Size(601, 250);
this->ListAvailable->TabIndex = 1;
this->ListAvailable->UseCompatibleStateImageBehavior = false;
this->ListAvailable->View = System::Windows::Forms::View::Details;
//
// Mod
//
this->Mod->Text = L"Mod";
this->Mod->Width = 150;
//
// Author
//
this->Author->Text = L"Author";
this->Author->Width = 100;
//
// Version
//
this->Version->Text = L"Version";
this->Version->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;
//
// Updated
//
this->Updated->Text = L"Updated";
//
// PanelDetails
//
this->PanelDetails->Controls->Add(this->TextDescSelected);
this->PanelDetails->Controls->Add(this->panel6);
this->PanelDetails->Controls->Add(this->PictureSelected);
this->PanelDetails->Dock = System::Windows::Forms::DockStyle::Bottom;
this->PanelDetails->Location = System::Drawing::Point(6, 269);
this->PanelDetails->Name = L"PanelDetails";
this->PanelDetails->Size = System::Drawing::Size(601, 131);
this->PanelDetails->TabIndex = 3;
this->PanelDetails->Visible = false;
//
// TextDescSelected
//
this->TextDescSelected->BackColor = System::Drawing::SystemColors::Info;
this->TextDescSelected->Cursor = System::Windows::Forms::Cursors::Arrow;
this->TextDescSelected->Dock = System::Windows::Forms::DockStyle::Fill;
this->TextDescSelected->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Italic, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->TextDescSelected->Location = System::Drawing::Point(113, 77);
this->TextDescSelected->Name = L"TextDescSelected";
this->TextDescSelected->ReadOnly = true;
this->TextDescSelected->ScrollBars = System::Windows::Forms::RichTextBoxScrollBars::Vertical;
this->TextDescSelected->Size = System::Drawing::Size(488, 54);
this->TextDescSelected->TabIndex = 2;
this->TextDescSelected->Text = L"";
//
// panel6
//
this->panel6->Controls->Add(this->LabelRecNA);
this->panel6->Controls->Add(this->LabelChangeNA);
this->panel6->Controls->Add(this->LabEaseNA);
this->panel6->Controls->Add(this->PicRec5);
this->panel6->Controls->Add(this->PicRec4);
this->panel6->Controls->Add(this->PicRec3);
this->panel6->Controls->Add(this->PicRec2);
this->panel6->Controls->Add(this->PicChange5);
this->panel6->Controls->Add(this->PicChange4);
this->panel6->Controls->Add(this->PicChange3);
this->panel6->Controls->Add(this->PicChange2);
this->panel6->Controls->Add(this->PicEase5);
this->panel6->Controls->Add(this->PicEase4);
this->panel6->Controls->Add(this->PicEase3);
this->panel6->Controls->Add(this->PicEase2);
this->panel6->Controls->Add(this->PicRec1);
this->panel6->Controls->Add(this->PicChange1);
this->panel6->Controls->Add(this->PicEase1);
this->panel6->Controls->Add(this->label9);
this->panel6->Controls->Add(this->label8);
this->panel6->Controls->Add(this->label7);
this->panel6->Dock = System::Windows::Forms::DockStyle::Top;
this->panel6->Location = System::Drawing::Point(113, 0);
this->panel6->Name = L"panel6";
this->panel6->Size = System::Drawing::Size(488, 77);
this->panel6->TabIndex = 4;
//
// LabelRecNA
//
this->LabelRecNA->AutoSize = true;
this->LabelRecNA->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->LabelRecNA->Location = System::Drawing::Point(140, 52);
this->LabelRecNA->Name = L"LabelRecNA";
this->LabelRecNA->Size = System::Drawing::Size(34, 16);
this->LabelRecNA->TabIndex = 31;
this->LabelRecNA->Text = L"N/A";
//
// LabelChangeNA
//
this->LabelChangeNA->AutoSize = true;
this->LabelChangeNA->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->LabelChangeNA->Location = System::Drawing::Point(140, 29);
this->LabelChangeNA->Name = L"LabelChangeNA";
this->LabelChangeNA->Size = System::Drawing::Size(34, 16);
this->LabelChangeNA->TabIndex = 30;
this->LabelChangeNA->Text = L"N/A";
//
// LabEaseNA
//
this->LabEaseNA->AutoSize = true;
this->LabEaseNA->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->LabEaseNA->Location = System::Drawing::Point(140, 6);
this->LabEaseNA->Name = L"LabEaseNA";
this->LabEaseNA->Size = System::Drawing::Size(34, 16);
this->LabEaseNA->TabIndex = 29;
this->LabEaseNA->Text = L"N/A";
//
// PicRec5
//
this->PicRec5->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"PicRec5.Image")));
this->PicRec5->Location = System::Drawing::Point(230, 48);
this->PicRec5->Name = L"PicRec5";
this->PicRec5->Size = System::Drawing::Size(24, 24);
this->PicRec5->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
this->PicRec5->TabIndex = 28;
this->PicRec5->TabStop = false;
//
// PicRec4
//
this->PicRec4->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"PicRec4.Image")));
this->PicRec4->Location = System::Drawing::Point(207, 48);
this->PicRec4->Name = L"PicRec4";
this->PicRec4->Size = System::Drawing::Size(24, 24);
this->PicRec4->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
this->PicRec4->TabIndex = 27;
this->PicRec4->TabStop = false;
//
// PicRec3
//
this->PicRec3->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"PicRec3.Image")));
this->PicRec3->Location = System::Drawing::Point(184, 48);
this->PicRec3->Name = L"PicRec3";
this->PicRec3->Size = System::Drawing::Size(24, 24);
this->PicRec3->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
this->PicRec3->TabIndex = 26;
this->PicRec3->TabStop = false;
//
// PicRec2
//
this->PicRec2->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"PicRec2.Image")));
this->PicRec2->Location = System::Drawing::Point(161, 48);
this->PicRec2->Name = L"PicRec2";
this->PicRec2->Size = System::Drawing::Size(24, 24);
this->PicRec2->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
this->PicRec2->TabIndex = 25;
this->PicRec2->TabStop = false;
//
// PicChange5
//
this->PicChange5->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"PicChange5.Image")));
this->PicChange5->Location = System::Drawing::Point(230, 25);
this->PicChange5->Name = L"PicChange5";
this->PicChange5->Size = System::Drawing::Size(24, 24);
this->PicChange5->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
this->PicChange5->TabIndex = 24;
this->PicChange5->TabStop = false;
//
// PicChange4
//
this->PicChange4->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"PicChange4.Image")));
this->PicChange4->Location = System::Drawing::Point(207, 25);
this->PicChange4->Name = L"PicChange4";
this->PicChange4->Size = System::Drawing::Size(24, 24);
this->PicChange4->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
this->PicChange4->TabIndex = 23;
this->PicChange4->TabStop = false;
//
// PicChange3
//
this->PicChange3->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"PicChange3.Image")));
this->PicChange3->Location = System::Drawing::Point(184, 25);
this->PicChange3->Name = L"PicChange3";
this->PicChange3->Size = System::Drawing::Size(24, 24);
this->PicChange3->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
this->PicChange3->TabIndex = 22;
this->PicChange3->TabStop = false;
//
// PicChange2
//
this->PicChange2->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"PicChange2.Image")));
this->PicChange2->Location = System::Drawing::Point(161, 25);
this->PicChange2->Name = L"PicChange2";
this->PicChange2->Size = System::Drawing::Size(24, 24);
this->PicChange2->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
this->PicChange2->TabIndex = 21;
this->PicChange2->TabStop = false;
//
// PicEase5
//
this->PicEase5->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"PicEase5.Image")));
this->PicEase5->Location = System::Drawing::Point(230, 2);
this->PicEase5->Name = L"PicEase5";
this->PicEase5->Size = System::Drawing::Size(24, 24);
this->PicEase5->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
this->PicEase5->TabIndex = 20;
this->PicEase5->TabStop = false;
//
// PicEase4
//
this->PicEase4->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"PicEase4.Image")));
this->PicEase4->Location = System::Drawing::Point(207, 2);
this->PicEase4->Name = L"PicEase4";
this->PicEase4->Size = System::Drawing::Size(24, 24);
this->PicEase4->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
this->PicEase4->TabIndex = 19;
this->PicEase4->TabStop = false;
//
// PicEase3
//
this->PicEase3->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"PicEase3.Image")));
this->PicEase3->Location = System::Drawing::Point(184, 2);
this->PicEase3->Name = L"PicEase3";
this->PicEase3->Size = System::Drawing::Size(24, 24);
this->PicEase3->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
this->PicEase3->TabIndex = 18;
this->PicEase3->TabStop = false;
//
// PicEase2
//
this->PicEase2->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"PicEase2.Image")));
this->PicEase2->Location = System::Drawing::Point(161, 2);
this->PicEase2->Name = L"PicEase2";
this->PicEase2->Size = System::Drawing::Size(24, 24);
this->PicEase2->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
this->PicEase2->TabIndex = 17;
this->PicEase2->TabStop = false;
//
// PicRec1
//
this->PicRec1->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"PicRec1.Image")));
this->PicRec1->Location = System::Drawing::Point(138, 48);
this->PicRec1->Name = L"PicRec1";
this->PicRec1->Size = System::Drawing::Size(24, 24);
this->PicRec1->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
this->PicRec1->TabIndex = 16;
this->PicRec1->TabStop = false;
//
// PicChange1
//
this->PicChange1->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"PicChange1.Image")));
this->PicChange1->Location = System::Drawing::Point(138, 25);
this->PicChange1->Name = L"PicChange1";
this->PicChange1->Size = System::Drawing::Size(24, 24);
this->PicChange1->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
this->PicChange1->TabIndex = 15;
this->PicChange1->TabStop = false;
//
// PicEase1
//
this->PicEase1->Image = (cli::safe_cast<System::Drawing::Image^ >(resources->GetObject(L"PicEase1.Image")));
this->PicEase1->Location = System::Drawing::Point(138, 2);
this->PicEase1->Name = L"PicEase1";
this->PicEase1->Size = System::Drawing::Size(24, 24);
this->PicEase1->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
this->PicEase1->TabIndex = 14;
this->PicEase1->TabStop = false;
//
// label9
//
this->label9->AutoSize = true;
this->label9->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->label9->Location = System::Drawing::Point(4, 53);
this->label9->Name = L"label9";
this->label9->Size = System::Drawing::Size(113, 16);
this->label9->TabIndex = 13;
this->label9->Text = L"Recommended";
//
// label8
//
this->label8->AutoSize = true;
this->label8->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->label8->Location = System::Drawing::Point(4, 30);
this->label8->Name = L"label8";
this->label8->Size = System::Drawing::Size(118, 16);
this->label8->TabIndex = 12;
this->label8->Text = L"Game Changing";
//
// label7
//
this->label7->AutoSize = true;
this->label7->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
static_cast<System::Byte>(0)));
this->label7->Location = System::Drawing::Point(4, 8);
this->label7->Name = L"label7";
this->label7->Size = System::Drawing::Size(93, 16);
this->label7->TabIndex = 11;
this->label7->Text = L"Ease of Use";
//
// PictureSelected
//
this->PictureSelected->Dock = System::Windows::Forms::DockStyle::Left;
this->PictureSelected->Location = System::Drawing::Point(0, 0);
this->PictureSelected->Name = L"PictureSelected";
this->PictureSelected->Size = System::Drawing::Size(113, 131);
this->PictureSelected->SizeMode = System::Windows::Forms::PictureBoxSizeMode::StretchImage;
this->PictureSelected->TabIndex = 3;
this->PictureSelected->TabStop = false;
//
// ButDetails
//
this->ButDetails->Dock = System::Windows::Forms::DockStyle::Bottom;
this->ButDetails->Location = System::Drawing::Point(6, 400);
this->ButDetails->Name = L"ButDetails";
this->ButDetails->Size = System::Drawing::Size(601, 23);
this->ButDetails->TabIndex = 4;
this->ButDetails->Text = L"Show Details >>>";
this->ButDetails->UseVisualStyleBackColor = true;
this->ButDetails->Click += gcnew System::EventHandler(this, &ModSelector::ButDetails_Click);
//
// label1
//
this->label1->AutoSize = true;
this->label1->Location = System::Drawing::Point(72, 37);
this->label1->Name = L"label1";
this->label1->Size = System::Drawing::Size(0, 13);
this->label1->TabIndex = 0;
//
// panel1
//
this->panel1->Controls->Add(this->button1);
this->panel1->Controls->Add(this->ButUninstall);
this->panel1->Controls->Add(this->ButNoMod);
this->panel1->Controls->Add(this->ButSelect);
this->panel1->Controls->Add(this->ButClose);
this->panel1->Dock = System::Windows::Forms::DockStyle::Bottom;
this->panel1->Location = System::Drawing::Point(8, 606);
this->panel1->Name = L"panel1";
this->panel1->Padding = System::Windows::Forms::Padding(5);
this->panel1->Size = System::Drawing::Size(613, 40);
this->panel1->TabIndex = 2;
//
// button1
//
this->button1->Dock = System::Windows::Forms::DockStyle::Left;
this->button1->Location = System::Drawing::Point(218, 5);
this->button1->Name = L"button1";
this->button1->Size = System::Drawing::Size(108, 30);
this->button1->TabIndex = 4;
this->button1->Text = L"Download Mod";
this->button1->UseVisualStyleBackColor = true;
this->button1->Visible = false;
this->button1->Click += gcnew System::EventHandler(this, &ModSelector::button1_Click);
//
// ButUninstall
//
this->ButUninstall->DialogResult = System::Windows::Forms::DialogResult::Retry;
this->ButUninstall->Dock = System::Windows::Forms::DockStyle::Left;
this->ButUninstall->Location = System::Drawing::Point(121, 5);
this->ButUninstall->Name = L"ButUninstall";
this->ButUninstall->Size = System::Drawing::Size(97, 30);
this->ButUninstall->TabIndex = 3;
this->ButUninstall->Text = L"Uninstall";
this->ButUninstall->UseVisualStyleBackColor = true;
//
// ButNoMod
//
this->ButNoMod->DialogResult = System::Windows::Forms::DialogResult::Abort;
this->ButNoMod->Dock = System::Windows::Forms::DockStyle::Right;
this->ButNoMod->Location = System::Drawing::Point(398, 5);
this->ButNoMod->Name = L"ButNoMod";
this->ButNoMod->Size = System::Drawing::Size(135, 30);
this->ButNoMod->TabIndex = 2;
this->ButNoMod->Text = L"Disable Current Mod";
this->ButNoMod->UseVisualStyleBackColor = true;
//
// ButSelect
//
this->ButSelect->DialogResult = System::Windows::Forms::DialogResult::OK;
this->ButSelect->Dock = System::Windows::Forms::DockStyle::Left;
this->ButSelect->Location = System::Drawing::Point(5, 5);
this->ButSelect->Name = L"ButSelect";
this->ButSelect->Size = System::Drawing::Size(116, 30);
this->ButSelect->TabIndex = 1;
this->ButSelect->Text = L"Select Mod";
this->ButSelect->UseVisualStyleBackColor = true;
//
// ButClose
//
this->ButClose->DialogResult = System::Windows::Forms::DialogResult::Cancel;
this->ButClose->Dock = System::Windows::Forms::DockStyle::Right;
this->ButClose->Location = System::Drawing::Point(533, 5);
this->ButClose->Name = L"ButClose";
this->ButClose->Size = System::Drawing::Size(75, 30);
this->ButClose->TabIndex = 0;
this->ButClose->Text = L"Close";
this->ButClose->UseVisualStyleBackColor = true;
//
// ModSelector
//
this->AcceptButton = this->ButSelect;
this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
this->AutoSize = true;
this->CancelButton = this->ButClose;
this->ClientSize = System::Drawing::Size(629, 654);
this->Controls->Add(this->GroupSelect);
this->Controls->Add(this->panel1);
this->Controls->Add(this->GroupMod);
this->Icon = (cli::safe_cast<System::Drawing::Icon^ >(resources->GetObject(L"$this.Icon")));
this->Name = L"ModSelector";
this->Padding = System::Windows::Forms::Padding(8);
this->ShowInTaskbar = false;
this->StartPosition = System::Windows::Forms::FormStartPosition::CenterParent;
this->Text = L"ModSelector";
this->Load += gcnew System::EventHandler(this, &ModSelector::ModSelector_Load);
this->GroupMod->ResumeLayout(false);
this->panel2->ResumeLayout(false);
this->panel4->ResumeLayout(false);
this->panel4->PerformLayout();
this->panel3->ResumeLayout(false);
this->panel3->PerformLayout();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->PictureBox))->EndInit();
this->GroupSelect->ResumeLayout(false);
this->GroupSelect->PerformLayout();
this->PanelDetails->ResumeLayout(false);
this->panel6->ResumeLayout(false);
this->panel6->PerformLayout();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->PicRec5))->EndInit();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->PicRec4))->EndInit();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->PicRec3))->EndInit();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->PicRec2))->EndInit();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->PicChange5))->EndInit();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->PicChange4))->EndInit();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->PicChange3))->EndInit();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->PicChange2))->EndInit();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->PicEase5))->EndInit();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->PicEase4))->EndInit();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->PicEase3))->EndInit();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->PicEase2))->EndInit();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->PicRec1))->EndInit();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->PicChange1))->EndInit();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->PicEase1))->EndInit();
(cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->PictureSelected))->EndInit();
this->panel1->ResumeLayout(false);
this->ResumeLayout(false);
}
#pragma endregion
private: System::Void ButDetails_Click(System::Object^ sender, System::EventArgs^ e) {
m_bDetails = !m_bDetails;
this->UpdateDetails();
}
private: System::Void ModSelector_Load(System::Object^ sender, System::EventArgs^ e) {
if ( !m_bDetails )
{
this->ShowDetails();
this->HideDetails();
}
}
private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {
this->DownloadPackage();
}
};
}