-
Notifications
You must be signed in to change notification settings - Fork 10
/
DemulInputSelect.h
251 lines (235 loc) · 8.63 KB
/
DemulInputSelect.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
/*This file is part of FFB Arcade Plugin GUI.
FFB Arcade Plugin GUI is free software : you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
FFB Arcade Plugin GUI is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with FFB Arcade Plugin GUI.If not, see < https://www.gnu.org/licenses/>.
*/
#include <Windows.h>
#include <string>
#include "SDL.h"
#include "Helper.h"
#include "DemulNascarInput.h"
#include "DemulInitialDInput.h"
#include "DemulSmashingDriveInput.h"
#include "DemulMaximumSpeedInput.h"
#include "DemulFasterThanSpeedInput.h"
#include "DemulATVTrackInput.h"
namespace FFBPluginGUI {
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;
/// <summary>
/// Summary for DemulInputSelect
/// </summary>
public ref class DemulInputSelect : public MetroFramework::Forms::MetroForm
{
public:
DemulInputSelect(void)
{
InitializeComponent();
//
//TODO: Add the constructor code here
//
}
public:
private: MetroFramework::Controls::MetroButton^ metroButton4;
private: MetroFramework::Controls::MetroButton^ metroButton5;
private: MetroFramework::Controls::MetroButton^ metroButton6;
public:
MetroForm^ obj;
DemulInputSelect(MetroForm^ obj1)
{
obj = obj1;
InitializeComponent();
}
protected:
/// <summary>
/// Clean up any resources being used.
/// </summary>
~DemulInputSelect()
{
if (components)
{
delete components;
}
}
private: MetroFramework::Controls::MetroButton^ metroButton1;
public:
private: MetroFramework::Controls::MetroButton^ metroButton2;
private: MetroFramework::Controls::MetroButton^ metroButton3;
private: MetroFramework::Controls::MetroLink^ metroLink1;
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)
{
this->metroButton1 = (gcnew MetroFramework::Controls::MetroButton());
this->metroButton2 = (gcnew MetroFramework::Controls::MetroButton());
this->metroButton3 = (gcnew MetroFramework::Controls::MetroButton());
this->metroLink1 = (gcnew MetroFramework::Controls::MetroLink());
this->metroButton4 = (gcnew MetroFramework::Controls::MetroButton());
this->metroButton5 = (gcnew MetroFramework::Controls::MetroButton());
this->metroButton6 = (gcnew MetroFramework::Controls::MetroButton());
this->SuspendLayout();
//
// metroButton1
//
this->metroButton1->Location = System::Drawing::Point(14, 64);
this->metroButton1->Name = L"metroButton1";
this->metroButton1->Size = System::Drawing::Size(216, 23);
this->metroButton1->TabIndex = 0;
this->metroButton1->TabStop = false;
this->metroButton1->Text = L"Initial D Arcade Stage Games";
this->metroButton1->UseSelectable = true;
this->metroButton1->Click += gcnew System::EventHandler(this, &DemulInputSelect::metroButton1_Click);
//
// metroButton2
//
this->metroButton2->Location = System::Drawing::Point(14, 93);
this->metroButton2->Name = L"metroButton2";
this->metroButton2->Size = System::Drawing::Size(216, 23);
this->metroButton2->TabIndex = 4;
this->metroButton2->TabStop = false;
this->metroButton2->Text = L"Nascar Racing";
this->metroButton2->UseSelectable = true;
this->metroButton2->Click += gcnew System::EventHandler(this, &DemulInputSelect::metroButton2_Click);
//
// metroButton3
//
this->metroButton3->Location = System::Drawing::Point(254, 93);
this->metroButton3->Name = L"metroButton3";
this->metroButton3->Size = System::Drawing::Size(216, 23);
this->metroButton3->TabIndex = 5;
this->metroButton3->TabStop = false;
this->metroButton3->Text = L"Smashing Drive";
this->metroButton3->UseSelectable = true;
this->metroButton3->Click += gcnew System::EventHandler(this, &DemulInputSelect::metroButton3_Click);
//
// metroLink1
//
this->metroLink1->Location = System::Drawing::Point(160, 6);
this->metroLink1->Name = L"metroLink1";
this->metroLink1->Size = System::Drawing::Size(182, 23);
this->metroLink1->TabIndex = 11;
this->metroLink1->TabStop = false;
this->metroLink1->Text = L"Go Back To Previous Menu";
this->metroLink1->UseSelectable = true;
this->metroLink1->Click += gcnew System::EventHandler(this, &DemulInputSelect::metroLink1_Click);
//
// metroButton4
//
this->metroButton4->Location = System::Drawing::Point(254, 64);
this->metroButton4->Name = L"metroButton4";
this->metroButton4->Size = System::Drawing::Size(216, 23);
this->metroButton4->TabIndex = 44;
this->metroButton4->TabStop = false;
this->metroButton4->Text = L"Maximum Speed";
this->metroButton4->UseSelectable = true;
this->metroButton4->Click += gcnew System::EventHandler(this, &DemulInputSelect::metroButton4_Click);
//
// metroButton5
//
this->metroButton5->Location = System::Drawing::Point(254, 35);
this->metroButton5->Name = L"metroButton5";
this->metroButton5->Size = System::Drawing::Size(216, 23);
this->metroButton5->TabIndex = 45;
this->metroButton5->TabStop = false;
this->metroButton5->Text = L"Faster Than Speed";
this->metroButton5->UseSelectable = true;
this->metroButton5->Click += gcnew System::EventHandler(this, &DemulInputSelect::metroButton5_Click);
//
// metroButton6
//
this->metroButton6->Location = System::Drawing::Point(14, 35);
this->metroButton6->Name = L"metroButton6";
this->metroButton6->Size = System::Drawing::Size(216, 23);
this->metroButton6->TabIndex = 46;
this->metroButton6->TabStop = false;
this->metroButton6->Text = L"ATV Track";
this->metroButton6->UseSelectable = true;
this->metroButton6->Click += gcnew System::EventHandler(this, &DemulInputSelect::metroButton6_Click);
//
// DemulInputSelect
//
this->ClientSize = System::Drawing::Size(493, 132);
this->Controls->Add(this->metroButton6);
this->Controls->Add(this->metroButton5);
this->Controls->Add(this->metroButton4);
this->Controls->Add(this->metroLink1);
this->Controls->Add(this->metroButton3);
this->Controls->Add(this->metroButton2);
this->Controls->Add(this->metroButton1);
this->MaximizeBox = false;
this->Name = L"DemulInputSelect";
this->Resizable = false;
this->FormClosing += gcnew System::Windows::Forms::FormClosingEventHandler(this, &DemulInputSelect::Form1_FormClosing);
this->ResumeLayout(false);
}
#pragma endregion
private: System::Void Form1_FormClosing(System::Object^ sender, System::Windows::Forms::FormClosingEventArgs^ e)
{
if (e->CloseReason == CloseReason::UserClosing)
{
SDL_Quit();
Application::Exit();
}
}
private: System::Void metroLink1_Click(System::Object^ sender, System::EventArgs^ e) //Go Back To Previous Menu
{
this->Hide();
obj->Show();
}
private: System::Void metroButton1_Click(System::Object^ sender, System::EventArgs^ e) //Initial D Games
{
this->Hide();
DemulInitialDInput^ obj1 = gcnew DemulInitialDInput(this);
obj1->ShowDialog();
}
private: System::Void metroButton2_Click(System::Object^ sender, System::EventArgs^ e) //Nascar Racing
{
this->Hide();
DemulNascarInput^ obj1 = gcnew DemulNascarInput(this);
obj1->ShowDialog();
}
private: System::Void metroButton3_Click(System::Object^ sender, System::EventArgs^ e) //Smashing Drive
{
this->Hide();
DemulSmashingDriveInput^ obj1 = gcnew DemulSmashingDriveInput(this);
obj1->ShowDialog();
}
private: System::Void metroButton4_Click(System::Object^ sender, System::EventArgs^ e) //Maximum Speed
{
this->Hide();
DemulMaximumSpeedInput^ obj1 = gcnew DemulMaximumSpeedInput(this);
obj1->ShowDialog();
}
private: System::Void metroButton5_Click(System::Object^ sender, System::EventArgs^ e) //Faster Than Speed
{
this->Hide();
DemulFasterThanSpeedInput^ obj1 = gcnew DemulFasterThanSpeedInput(this);
obj1->ShowDialog();
}
private: System::Void metroButton6_Click(System::Object^ sender, System::EventArgs^ e) //ATV Track
{
this->Hide();
DemulATVTrackInput^ obj1 = gcnew DemulATVTrackInput(this);
obj1->ShowDialog();
}
};
}