|
| 1 | +#pragma once |
| 2 | + |
| 3 | +namespace XRay |
| 4 | +{ |
| 5 | +namespace ECore |
| 6 | +{ |
| 7 | +namespace Props |
| 8 | +{ |
| 9 | +ref class GameType; |
| 10 | +} |
| 11 | +} |
| 12 | +} |
| 13 | + |
| 14 | +struct GameTypeChooser; |
| 15 | + |
| 16 | +namespace XRay |
| 17 | +{ |
| 18 | +namespace ECore |
| 19 | +{ |
| 20 | +namespace Props |
| 21 | +{ |
| 22 | +using namespace System; |
| 23 | +using namespace System::ComponentModel; |
| 24 | +using namespace System::Collections; |
| 25 | +using namespace System::Windows::Forms; |
| 26 | +using namespace System::Data; |
| 27 | +using namespace System::Drawing; |
| 28 | + |
| 29 | +public ref class GameType : public System::Windows::Forms::Form |
| 30 | +{ |
| 31 | +public: |
| 32 | + GameType(void) |
| 33 | + { |
| 34 | + InitializeComponent(); |
| 35 | + } |
| 36 | + |
| 37 | +protected: |
| 38 | + ~GameType() |
| 39 | + { |
| 40 | + if (components) |
| 41 | + { |
| 42 | + delete components; |
| 43 | + } |
| 44 | + } |
| 45 | + |
| 46 | +public: |
| 47 | + bool Run(pcstr title, GameTypeChooser* data); |
| 48 | + |
| 49 | +private: |
| 50 | + GameTypeChooser* gameTypes; |
| 51 | + |
| 52 | +private: System::Void buttonOk_Click(System::Object^ sender, System::EventArgs^ e); |
| 53 | + |
| 54 | +private: System::Windows::Forms::CheckBox^ checkSingle; |
| 55 | +private: System::Windows::Forms::CheckBox^ checkDM; |
| 56 | +private: System::Windows::Forms::CheckBox^ checkTDM; |
| 57 | +private: System::Windows::Forms::CheckBox^ checkAfHunt; |
| 58 | +private: System::Windows::Forms::CheckBox^ checkCTA; |
| 59 | + |
| 60 | +private: System::Windows::Forms::Button^ buttonOk; |
| 61 | +private: System::Windows::Forms::Button^ buttonCancel; |
| 62 | + |
| 63 | +private: System::Windows::Forms::Panel^ panel1; |
| 64 | +private: |
| 65 | + System::ComponentModel::Container^ components; |
| 66 | + |
| 67 | +#pragma region Windows Form Designer generated code |
| 68 | + void InitializeComponent(void) |
| 69 | + { |
| 70 | + this->checkSingle = (gcnew System::Windows::Forms::CheckBox()); |
| 71 | + this->checkDM = (gcnew System::Windows::Forms::CheckBox()); |
| 72 | + this->checkTDM = (gcnew System::Windows::Forms::CheckBox()); |
| 73 | + this->checkAfHunt = (gcnew System::Windows::Forms::CheckBox()); |
| 74 | + this->checkCTA = (gcnew System::Windows::Forms::CheckBox()); |
| 75 | + this->buttonOk = (gcnew System::Windows::Forms::Button()); |
| 76 | + this->buttonCancel = (gcnew System::Windows::Forms::Button()); |
| 77 | + this->panel1 = (gcnew System::Windows::Forms::Panel()); |
| 78 | + this->panel1->SuspendLayout(); |
| 79 | + this->SuspendLayout(); |
| 80 | + this->checkSingle->AutoSize = true; |
| 81 | + this->checkSingle->Location = System::Drawing::Point(3, 3); |
| 82 | + this->checkSingle->Name = L"checkSingle"; |
| 83 | + this->checkSingle->Size = System::Drawing::Size(55, 17); |
| 84 | + this->checkSingle->TabIndex = 0; |
| 85 | + this->checkSingle->Text = L"Single"; |
| 86 | + this->checkSingle->UseVisualStyleBackColor = true; |
| 87 | + this->checkDM->AutoSize = true; |
| 88 | + this->checkDM->Location = System::Drawing::Point(3, 26); |
| 89 | + this->checkDM->Name = L"checkDM"; |
| 90 | + this->checkDM->Size = System::Drawing::Size(78, 17); |
| 91 | + this->checkDM->TabIndex = 1; |
| 92 | + this->checkDM->Text = L"Deathmatch"; |
| 93 | + this->checkDM->UseVisualStyleBackColor = true; |
| 94 | + this->checkTDM->AutoSize = true; |
| 95 | + this->checkTDM->Location = System::Drawing::Point(3, 49); |
| 96 | + this->checkTDM->Name = L"checkTDM"; |
| 97 | + this->checkTDM->Size = System::Drawing::Size(108, 17); |
| 98 | + this->checkTDM->TabIndex = 2; |
| 99 | + this->checkTDM->Text = L"Team Deathmatch"; |
| 100 | + this->checkTDM->UseVisualStyleBackColor = true; |
| 101 | + this->checkAfHunt->AutoSize = true; |
| 102 | + this->checkAfHunt->Location = System::Drawing::Point(3, 72); |
| 103 | + this->checkAfHunt->Name = L"checkAfHunt"; |
| 104 | + this->checkAfHunt->Size = System::Drawing::Size(89, 17); |
| 105 | + this->checkAfHunt->TabIndex = 3; |
| 106 | + this->checkAfHunt->Text = L"Artefact Hunt"; |
| 107 | + this->checkAfHunt->UseVisualStyleBackColor = true; |
| 108 | + this->checkCTA->AutoSize = true; |
| 109 | + this->checkCTA->Location = System::Drawing::Point(3, 95); |
| 110 | + this->checkCTA->Name = L"checkCTA"; |
| 111 | + this->checkCTA->Size = System::Drawing::Size(121, 17); |
| 112 | + this->checkCTA->TabIndex = 4; |
| 113 | + this->checkCTA->Text = L"Capture the Artefact"; |
| 114 | + this->checkCTA->UseVisualStyleBackColor = true; |
| 115 | + this->buttonOk->DialogResult = System::Windows::Forms::DialogResult::OK; |
| 116 | + this->buttonOk->Location = System::Drawing::Point(0, 115); |
| 117 | + this->buttonOk->Name = L"buttonOk"; |
| 118 | + this->buttonOk->Size = System::Drawing::Size(64, 23); |
| 119 | + this->buttonOk->TabIndex = 5; |
| 120 | + this->buttonOk->Text = L"Ok"; |
| 121 | + this->buttonOk->UseVisualStyleBackColor = true; |
| 122 | + this->buttonOk->Click += gcnew System::EventHandler(this, &GameType::buttonOk_Click); |
| 123 | + this->buttonCancel->DialogResult = System::Windows::Forms::DialogResult::Cancel; |
| 124 | + this->buttonCancel->Location = System::Drawing::Point(63, 115); |
| 125 | + this->buttonCancel->Name = L"buttonCancel"; |
| 126 | + this->buttonCancel->Size = System::Drawing::Size(64, 23); |
| 127 | + this->buttonCancel->TabIndex = 6; |
| 128 | + this->buttonCancel->Text = L"Cancel"; |
| 129 | + this->buttonCancel->UseVisualStyleBackColor = true; |
| 130 | + this->panel1->Controls->Add(this->checkSingle); |
| 131 | + this->panel1->Controls->Add(this->checkDM); |
| 132 | + this->panel1->Controls->Add(this->checkTDM); |
| 133 | + this->panel1->Controls->Add(this->checkCTA); |
| 134 | + this->panel1->Controls->Add(this->checkAfHunt); |
| 135 | + this->panel1->Location = System::Drawing::Point(0, 0); |
| 136 | + this->panel1->Name = L"panel1"; |
| 137 | + this->panel1->Size = System::Drawing::Size(127, 115); |
| 138 | + this->panel1->TabIndex = 7; |
| 139 | + this->AcceptButton = this->buttonOk; |
| 140 | + this->AutoScaleDimensions = System::Drawing::SizeF(6, 13); |
| 141 | + this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font; |
| 142 | + this->CancelButton = this->buttonCancel; |
| 143 | + this->ClientSize = System::Drawing::Size(127, 138); |
| 144 | + this->Controls->Add(this->panel1); |
| 145 | + this->Controls->Add(this->buttonOk); |
| 146 | + this->Controls->Add(this->buttonCancel); |
| 147 | + this->FormBorderStyle = System::Windows::Forms::FormBorderStyle::FixedToolWindow; |
| 148 | + this->Name = L"GameType"; |
| 149 | + this->Text = L"GameType"; |
| 150 | + this->panel1->ResumeLayout(false); |
| 151 | + this->panel1->PerformLayout(); |
| 152 | + this->ResumeLayout(false); |
| 153 | + |
| 154 | + } |
| 155 | +#pragma endregion |
| 156 | +}; |
| 157 | +} // namespace Props |
| 158 | +} // namespace ECore |
| 159 | +} // namespace XRay |
0 commit comments