Subversion Repositories spk

Rev

Rev 191 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 cycrow 1
#pragma once
2
 
3
using namespace System;
4
using namespace System::ComponentModel;
5
using namespace System::Collections;
6
using namespace System::Windows::Forms;
7
using namespace System::Data;
8
using namespace System::Drawing;
9
 
10
 
11
namespace Creator {
12
 
13
	/// <summary>
14
	/// Summary for CustomiseModel
15
	/// </summary>
16
	public ref class CustomiseModel : public System::Windows::Forms::UserControl
17
	{
18
	public:
19
		CustomiseModel(CShipData *shipData)
20
		{
21
			InitializeComponent();
22
 
23
			m_pShipData = shipData;
24
			m_bUpdateing = false;
25
 
26
			this->SetupControls();
27
		}
28
 
29
		void UpdateDisplay() 
30
		{
31
			m_bUpdateing = true;
32
			this->NumPicture->Value = m_pShipData->iPictureID;
33
			this->NumVideo->Value = m_pShipData->iVideoID;
191 cycrow 34
			this->TextBody->Text = _US(m_pShipData->sModel);
1 cycrow 35
			this->NumEffect->Value = m_pShipData->iEngineEffect;
36
			this->NumGlow->Value = m_pShipData->iEngineGlow;
37
			this->NumSound->Value = m_pShipData->iEngineSound;
38
			this->NumSkin->Value = m_pShipData->iSkin;
39
			this->NumSoundMin->Value = m_pShipData->iSoundMin;
40
			this->NumSoundMax->Value = m_pShipData->iSoundMax;
41
			this->NumExplosion->Value = m_pShipData->iExplosionDef;
42
			this->NumBodyDef->Value = m_pShipData->iExplosionBody;
43
			this->NumParticle->Value = m_pShipData->iParticle;
44
			m_bUpdateing = false;
45
		}
46
 
47
	protected:
48
		/// <summary>
49
		/// Clean up any resources being used.
50
		/// </summary>
51
 
52
		void SetupControls() 
53
		{ 
54
			this->Dock = System::Windows::Forms::DockStyle::Fill;
55
		}
56
 
57
		~CustomiseModel()
58
		{
59
			if (components)
60
			{
61
				delete components;
62
			}
63
		}
64
	private: System::Windows::Forms::GroupBox^  groupBox11;
65
	protected: 
66
	private: System::Windows::Forms::TableLayoutPanel^  tableLayoutPanel7;
67
	private: System::Windows::Forms::NumericUpDown^  NumExplosion;
68
	private: System::Windows::Forms::NumericUpDown^  NumBodyDef;
69
	private: System::Windows::Forms::NumericUpDown^  NumParticle;
70
	private: System::Windows::Forms::Label^  label47;
71
	private: System::Windows::Forms::Label^  label49;
72
	private: System::Windows::Forms::Label^  label50;
73
	private: System::Windows::Forms::GroupBox^  groupBox10;
74
	private: System::Windows::Forms::TableLayoutPanel^  tableLayoutPanel6;
75
	private: System::Windows::Forms::NumericUpDown^  NumSoundMin;
76
	private: System::Windows::Forms::NumericUpDown^  NumSoundMax;
77
	private: System::Windows::Forms::Label^  label46;
78
	private: System::Windows::Forms::Label^  label48;
79
	private: System::Windows::Forms::GroupBox^  groupBox9;
80
	private: System::Windows::Forms::TableLayoutPanel^  tableLayoutPanel5;
81
	private: System::Windows::Forms::NumericUpDown^  NumEffect;
82
	private: System::Windows::Forms::NumericUpDown^  NumGlow;
83
	private: System::Windows::Forms::NumericUpDown^  NumSound;
84
	private: System::Windows::Forms::Label^  label43;
85
	private: System::Windows::Forms::Label^  label42;
86
	private: System::Windows::Forms::Label^  label41;
87
	private: System::Windows::Forms::GroupBox^  groupBox8;
88
	private: System::Windows::Forms::Panel^  panel33;
89
	private: System::Windows::Forms::NumericUpDown^  NumSkin;
90
	private: System::Windows::Forms::Label^  label45;
91
	private: System::Windows::Forms::Panel^  panel31;
92
	private: System::Windows::Forms::NumericUpDown^  NumVideo;
93
	private: System::Windows::Forms::Label^  label40;
94
	private: System::Windows::Forms::Panel^  panel30;
95
	private: System::Windows::Forms::NumericUpDown^  NumPicture;
96
	private: System::Windows::Forms::Label^  label39;
97
	private: System::Windows::Forms::Panel^  panel29;
98
	private: System::Windows::Forms::TextBox^  TextBody;
99
	private: System::Windows::Forms::Label^  label38;
100
 
101
	private:
102
		CShipData		*m_pShipData;
103
		bool			 m_bUpdateing;
104
		/// <summary>
105
		/// Required designer variable.
106
		/// </summary>
107
		System::ComponentModel::Container ^components;
108
 
109
#pragma region Windows Form Designer generated code
110
		/// <summary>
111
		/// Required method for Designer support - do not modify
112
		/// the contents of this method with the code editor.
113
		/// </summary>
114
		void InitializeComponent(void)
115
		{
116
			this->groupBox11 = (gcnew System::Windows::Forms::GroupBox());
117
			this->tableLayoutPanel7 = (gcnew System::Windows::Forms::TableLayoutPanel());
118
			this->NumExplosion = (gcnew System::Windows::Forms::NumericUpDown());
119
			this->NumBodyDef = (gcnew System::Windows::Forms::NumericUpDown());
120
			this->NumParticle = (gcnew System::Windows::Forms::NumericUpDown());
121
			this->label47 = (gcnew System::Windows::Forms::Label());
122
			this->label49 = (gcnew System::Windows::Forms::Label());
123
			this->label50 = (gcnew System::Windows::Forms::Label());
124
			this->groupBox10 = (gcnew System::Windows::Forms::GroupBox());
125
			this->tableLayoutPanel6 = (gcnew System::Windows::Forms::TableLayoutPanel());
126
			this->NumSoundMin = (gcnew System::Windows::Forms::NumericUpDown());
127
			this->NumSoundMax = (gcnew System::Windows::Forms::NumericUpDown());
128
			this->label46 = (gcnew System::Windows::Forms::Label());
129
			this->label48 = (gcnew System::Windows::Forms::Label());
130
			this->groupBox9 = (gcnew System::Windows::Forms::GroupBox());
131
			this->tableLayoutPanel5 = (gcnew System::Windows::Forms::TableLayoutPanel());
132
			this->NumEffect = (gcnew System::Windows::Forms::NumericUpDown());
133
			this->NumGlow = (gcnew System::Windows::Forms::NumericUpDown());
134
			this->NumSound = (gcnew System::Windows::Forms::NumericUpDown());
135
			this->label43 = (gcnew System::Windows::Forms::Label());
136
			this->label42 = (gcnew System::Windows::Forms::Label());
137
			this->label41 = (gcnew System::Windows::Forms::Label());
138
			this->groupBox8 = (gcnew System::Windows::Forms::GroupBox());
139
			this->panel33 = (gcnew System::Windows::Forms::Panel());
140
			this->NumSkin = (gcnew System::Windows::Forms::NumericUpDown());
141
			this->label45 = (gcnew System::Windows::Forms::Label());
142
			this->panel31 = (gcnew System::Windows::Forms::Panel());
143
			this->NumVideo = (gcnew System::Windows::Forms::NumericUpDown());
144
			this->label40 = (gcnew System::Windows::Forms::Label());
145
			this->panel30 = (gcnew System::Windows::Forms::Panel());
146
			this->NumPicture = (gcnew System::Windows::Forms::NumericUpDown());
147
			this->label39 = (gcnew System::Windows::Forms::Label());
148
			this->panel29 = (gcnew System::Windows::Forms::Panel());
149
			this->TextBody = (gcnew System::Windows::Forms::TextBox());
150
			this->label38 = (gcnew System::Windows::Forms::Label());
151
			this->groupBox11->SuspendLayout();
152
			this->tableLayoutPanel7->SuspendLayout();
153
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->NumExplosion))->BeginInit();
154
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->NumBodyDef))->BeginInit();
155
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->NumParticle))->BeginInit();
156
			this->groupBox10->SuspendLayout();
157
			this->tableLayoutPanel6->SuspendLayout();
158
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->NumSoundMin))->BeginInit();
159
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->NumSoundMax))->BeginInit();
160
			this->groupBox9->SuspendLayout();
161
			this->tableLayoutPanel5->SuspendLayout();
162
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->NumEffect))->BeginInit();
163
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->NumGlow))->BeginInit();
164
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->NumSound))->BeginInit();
165
			this->groupBox8->SuspendLayout();
166
			this->panel33->SuspendLayout();
167
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->NumSkin))->BeginInit();
168
			this->panel31->SuspendLayout();
169
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->NumVideo))->BeginInit();
170
			this->panel30->SuspendLayout();
171
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->NumPicture))->BeginInit();
172
			this->panel29->SuspendLayout();
173
			this->SuspendLayout();
174
			// 
175
			// groupBox11
176
			// 
177
			this->groupBox11->Controls->Add(this->tableLayoutPanel7);
178
			this->groupBox11->Dock = System::Windows::Forms::DockStyle::Top;
179
			this->groupBox11->Location = System::Drawing::Point(0, 316);
180
			this->groupBox11->Name = L"groupBox11";
181
			this->groupBox11->Padding = System::Windows::Forms::Padding(6);
182
			this->groupBox11->Size = System::Drawing::Size(447, 81);
183
			this->groupBox11->TabIndex = 3;
184
			this->groupBox11->TabStop = false;
185
			this->groupBox11->Text = L"Explosion";
186
			// 
187
			// tableLayoutPanel7
188
			// 
189
			this->tableLayoutPanel7->ColumnCount = 3;
190
			this->tableLayoutPanel7->ColumnStyles->Add((gcnew System::Windows::Forms::ColumnStyle(System::Windows::Forms::SizeType::Percent, 
191
				33.33333F)));
192
			this->tableLayoutPanel7->ColumnStyles->Add((gcnew System::Windows::Forms::ColumnStyle(System::Windows::Forms::SizeType::Percent, 
193
				33.33333F)));
194
			this->tableLayoutPanel7->ColumnStyles->Add((gcnew System::Windows::Forms::ColumnStyle(System::Windows::Forms::SizeType::Percent, 
195
				33.33333F)));
196
			this->tableLayoutPanel7->Controls->Add(this->NumExplosion, 0, 1);
197
			this->tableLayoutPanel7->Controls->Add(this->NumBodyDef, 0, 1);
198
			this->tableLayoutPanel7->Controls->Add(this->NumParticle, 0, 1);
199
			this->tableLayoutPanel7->Controls->Add(this->label47, 1, 0);
200
			this->tableLayoutPanel7->Controls->Add(this->label49, 2, 0);
201
			this->tableLayoutPanel7->Controls->Add(this->label50, 0, 0);
202
			this->tableLayoutPanel7->Dock = System::Windows::Forms::DockStyle::Fill;
203
			this->tableLayoutPanel7->Location = System::Drawing::Point(6, 19);
204
			this->tableLayoutPanel7->Name = L"tableLayoutPanel7";
205
			this->tableLayoutPanel7->RowCount = 2;
206
			this->tableLayoutPanel7->RowStyles->Add((gcnew System::Windows::Forms::RowStyle(System::Windows::Forms::SizeType::Percent, 50)));
207
			this->tableLayoutPanel7->RowStyles->Add((gcnew System::Windows::Forms::RowStyle(System::Windows::Forms::SizeType::Percent, 50)));
208
			this->tableLayoutPanel7->Size = System::Drawing::Size(435, 56);
209
			this->tableLayoutPanel7->TabIndex = 0;
210
			// 
211
			// NumExplosion
212
			// 
213
			this->NumExplosion->Dock = System::Windows::Forms::DockStyle::Fill;
214
			this->NumExplosion->Location = System::Drawing::Point(3, 31);
215
			this->NumExplosion->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {10000, 0, 0, 0});
216
			this->NumExplosion->Name = L"NumExplosion";
217
			this->NumExplosion->Size = System::Drawing::Size(139, 20);
218
			this->NumExplosion->TabIndex = 8;
219
			this->NumExplosion->ThousandsSeparator = true;
220
			this->NumExplosion->ValueChanged += gcnew System::EventHandler(this, &CustomiseModel::NumExplosion_ValueChanged);
221
			// 
222
			// NumBodyDef
223
			// 
224
			this->NumBodyDef->Dock = System::Windows::Forms::DockStyle::Fill;
225
			this->NumBodyDef->Location = System::Drawing::Point(148, 31);
226
			this->NumBodyDef->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {10000, 0, 0, 0});
227
			this->NumBodyDef->Name = L"NumBodyDef";
228
			this->NumBodyDef->Size = System::Drawing::Size(139, 20);
229
			this->NumBodyDef->TabIndex = 7;
230
			this->NumBodyDef->ThousandsSeparator = true;
231
			this->NumBodyDef->ValueChanged += gcnew System::EventHandler(this, &CustomiseModel::NumBodyDef_ValueChanged);
232
			// 
233
			// NumParticle
234
			// 
235
			this->NumParticle->Dock = System::Windows::Forms::DockStyle::Fill;
236
			this->NumParticle->Location = System::Drawing::Point(293, 31);
237
			this->NumParticle->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {10000, 0, 0, 0});
238
			this->NumParticle->Name = L"NumParticle";
239
			this->NumParticle->Size = System::Drawing::Size(139, 20);
240
			this->NumParticle->TabIndex = 6;
241
			this->NumParticle->ThousandsSeparator = true;
242
			this->NumParticle->ValueChanged += gcnew System::EventHandler(this, &CustomiseModel::NumParticle_ValueChanged);
243
			// 
244
			// label47
245
			// 
246
			this->label47->Dock = System::Windows::Forms::DockStyle::Fill;
247
			this->label47->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
248
				static_cast<System::Byte>(0)));
249
			this->label47->Location = System::Drawing::Point(148, 0);
250
			this->label47->Name = L"label47";
251
			this->label47->Size = System::Drawing::Size(139, 28);
252
			this->label47->TabIndex = 3;
253
			this->label47->Text = L"Body Def";
254
			this->label47->TextAlign = System::Drawing::ContentAlignment::MiddleCenter;
255
			// 
256
			// label49
257
			// 
258
			this->label49->Dock = System::Windows::Forms::DockStyle::Fill;
259
			this->label49->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
260
				static_cast<System::Byte>(0)));
261
			this->label49->Location = System::Drawing::Point(293, 0);
262
			this->label49->Name = L"label49";
263
			this->label49->Size = System::Drawing::Size(139, 28);
264
			this->label49->TabIndex = 2;
265
			this->label49->Text = L"Particle Emitter";
266
			this->label49->TextAlign = System::Drawing::ContentAlignment::MiddleCenter;
267
			// 
268
			// label50
269
			// 
270
			this->label50->Dock = System::Windows::Forms::DockStyle::Fill;
271
			this->label50->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
272
				static_cast<System::Byte>(0)));
273
			this->label50->Location = System::Drawing::Point(3, 0);
274
			this->label50->Name = L"label50";
275
			this->label50->Size = System::Drawing::Size(139, 28);
276
			this->label50->TabIndex = 1;
277
			this->label50->Text = L"Explosion Def";
278
			this->label50->TextAlign = System::Drawing::ContentAlignment::MiddleCenter;
279
			// 
280
			// groupBox10
281
			// 
282
			this->groupBox10->Controls->Add(this->tableLayoutPanel6);
283
			this->groupBox10->Dock = System::Windows::Forms::DockStyle::Top;
284
			this->groupBox10->Location = System::Drawing::Point(0, 235);
285
			this->groupBox10->Name = L"groupBox10";
286
			this->groupBox10->Padding = System::Windows::Forms::Padding(6);
287
			this->groupBox10->Size = System::Drawing::Size(447, 81);
288
			this->groupBox10->TabIndex = 2;
289
			this->groupBox10->TabStop = false;
290
			this->groupBox10->Text = L"Sound Volumn";
291
			// 
292
			// tableLayoutPanel6
293
			// 
294
			this->tableLayoutPanel6->ColumnCount = 2;
295
			this->tableLayoutPanel6->ColumnStyles->Add((gcnew System::Windows::Forms::ColumnStyle(System::Windows::Forms::SizeType::Percent, 
296
				33.33333F)));
297
			this->tableLayoutPanel6->ColumnStyles->Add((gcnew System::Windows::Forms::ColumnStyle(System::Windows::Forms::SizeType::Percent, 
298
				33.33333F)));
299
			this->tableLayoutPanel6->Controls->Add(this->NumSoundMin, 0, 1);
300
			this->tableLayoutPanel6->Controls->Add(this->NumSoundMax, 0, 1);
301
			this->tableLayoutPanel6->Controls->Add(this->label46, 1, 0);
302
			this->tableLayoutPanel6->Controls->Add(this->label48, 0, 0);
303
			this->tableLayoutPanel6->Dock = System::Windows::Forms::DockStyle::Fill;
304
			this->tableLayoutPanel6->Location = System::Drawing::Point(6, 19);
305
			this->tableLayoutPanel6->Name = L"tableLayoutPanel6";
306
			this->tableLayoutPanel6->RowCount = 2;
307
			this->tableLayoutPanel6->RowStyles->Add((gcnew System::Windows::Forms::RowStyle(System::Windows::Forms::SizeType::Percent, 50)));
308
			this->tableLayoutPanel6->RowStyles->Add((gcnew System::Windows::Forms::RowStyle(System::Windows::Forms::SizeType::Percent, 50)));
309
			this->tableLayoutPanel6->Size = System::Drawing::Size(435, 56);
310
			this->tableLayoutPanel6->TabIndex = 0;
311
			// 
312
			// NumSoundMin
313
			// 
314
			this->NumSoundMin->Dock = System::Windows::Forms::DockStyle::Fill;
315
			this->NumSoundMin->Location = System::Drawing::Point(3, 31);
316
			this->NumSoundMin->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {10000, 0, 0, 0});
317
			this->NumSoundMin->Name = L"NumSoundMin";
318
			this->NumSoundMin->Size = System::Drawing::Size(211, 20);
319
			this->NumSoundMin->TabIndex = 8;
320
			this->NumSoundMin->ThousandsSeparator = true;
321
			this->NumSoundMin->ValueChanged += gcnew System::EventHandler(this, &CustomiseModel::NumSoundMin_ValueChanged);
322
			// 
323
			// NumSoundMax
324
			// 
325
			this->NumSoundMax->Dock = System::Windows::Forms::DockStyle::Fill;
326
			this->NumSoundMax->Location = System::Drawing::Point(220, 31);
327
			this->NumSoundMax->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {10000, 0, 0, 0});
328
			this->NumSoundMax->Name = L"NumSoundMax";
329
			this->NumSoundMax->Size = System::Drawing::Size(212, 20);
330
			this->NumSoundMax->TabIndex = 7;
331
			this->NumSoundMax->ThousandsSeparator = true;
332
			this->NumSoundMax->ValueChanged += gcnew System::EventHandler(this, &CustomiseModel::NumSoundMax_ValueChanged);
333
			// 
334
			// label46
335
			// 
336
			this->label46->Dock = System::Windows::Forms::DockStyle::Fill;
337
			this->label46->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
338
				static_cast<System::Byte>(0)));
339
			this->label46->Location = System::Drawing::Point(220, 0);
340
			this->label46->Name = L"label46";
341
			this->label46->Size = System::Drawing::Size(212, 28);
342
			this->label46->TabIndex = 3;
343
			this->label46->Text = L"Maximum";
344
			this->label46->TextAlign = System::Drawing::ContentAlignment::MiddleCenter;
345
			// 
346
			// label48
347
			// 
348
			this->label48->Dock = System::Windows::Forms::DockStyle::Fill;
349
			this->label48->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
350
				static_cast<System::Byte>(0)));
351
			this->label48->Location = System::Drawing::Point(3, 0);
352
			this->label48->Name = L"label48";
353
			this->label48->Size = System::Drawing::Size(211, 28);
354
			this->label48->TabIndex = 1;
355
			this->label48->Text = L"Minimum";
356
			this->label48->TextAlign = System::Drawing::ContentAlignment::MiddleCenter;
357
			// 
358
			// groupBox9
359
			// 
360
			this->groupBox9->Controls->Add(this->tableLayoutPanel5);
361
			this->groupBox9->Dock = System::Windows::Forms::DockStyle::Top;
362
			this->groupBox9->Location = System::Drawing::Point(0, 154);
363
			this->groupBox9->Name = L"groupBox9";
364
			this->groupBox9->Padding = System::Windows::Forms::Padding(6);
365
			this->groupBox9->Size = System::Drawing::Size(447, 81);
366
			this->groupBox9->TabIndex = 1;
367
			this->groupBox9->TabStop = false;
368
			this->groupBox9->Text = L"Engine Effects";
369
			// 
370
			// tableLayoutPanel5
371
			// 
372
			this->tableLayoutPanel5->ColumnCount = 3;
373
			this->tableLayoutPanel5->ColumnStyles->Add((gcnew System::Windows::Forms::ColumnStyle(System::Windows::Forms::SizeType::Percent, 
374
				33.33333F)));
375
			this->tableLayoutPanel5->ColumnStyles->Add((gcnew System::Windows::Forms::ColumnStyle(System::Windows::Forms::SizeType::Percent, 
376
				33.33333F)));
377
			this->tableLayoutPanel5->ColumnStyles->Add((gcnew System::Windows::Forms::ColumnStyle(System::Windows::Forms::SizeType::Percent, 
378
				33.33333F)));
379
			this->tableLayoutPanel5->Controls->Add(this->NumEffect, 0, 1);
380
			this->tableLayoutPanel5->Controls->Add(this->NumGlow, 0, 1);
381
			this->tableLayoutPanel5->Controls->Add(this->NumSound, 0, 1);
382
			this->tableLayoutPanel5->Controls->Add(this->label43, 1, 0);
383
			this->tableLayoutPanel5->Controls->Add(this->label42, 2, 0);
384
			this->tableLayoutPanel5->Controls->Add(this->label41, 0, 0);
385
			this->tableLayoutPanel5->Dock = System::Windows::Forms::DockStyle::Fill;
386
			this->tableLayoutPanel5->Location = System::Drawing::Point(6, 19);
387
			this->tableLayoutPanel5->Name = L"tableLayoutPanel5";
388
			this->tableLayoutPanel5->RowCount = 2;
389
			this->tableLayoutPanel5->RowStyles->Add((gcnew System::Windows::Forms::RowStyle(System::Windows::Forms::SizeType::Percent, 50)));
390
			this->tableLayoutPanel5->RowStyles->Add((gcnew System::Windows::Forms::RowStyle(System::Windows::Forms::SizeType::Percent, 50)));
391
			this->tableLayoutPanel5->Size = System::Drawing::Size(435, 56);
392
			this->tableLayoutPanel5->TabIndex = 0;
393
			// 
394
			// NumEffect
395
			// 
396
			this->NumEffect->Dock = System::Windows::Forms::DockStyle::Fill;
397
			this->NumEffect->Location = System::Drawing::Point(3, 31);
398
			this->NumEffect->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {10000, 0, 0, 0});
399
			this->NumEffect->Name = L"NumEffect";
400
			this->NumEffect->Size = System::Drawing::Size(139, 20);
401
			this->NumEffect->TabIndex = 8;
402
			this->NumEffect->ThousandsSeparator = true;
403
			this->NumEffect->ValueChanged += gcnew System::EventHandler(this, &CustomiseModel::NumEffect_ValueChanged);
404
			// 
405
			// NumGlow
406
			// 
407
			this->NumGlow->Dock = System::Windows::Forms::DockStyle::Fill;
408
			this->NumGlow->Location = System::Drawing::Point(148, 31);
409
			this->NumGlow->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {10000, 0, 0, 0});
410
			this->NumGlow->Name = L"NumGlow";
411
			this->NumGlow->Size = System::Drawing::Size(139, 20);
412
			this->NumGlow->TabIndex = 7;
413
			this->NumGlow->ThousandsSeparator = true;
414
			this->NumGlow->ValueChanged += gcnew System::EventHandler(this, &CustomiseModel::NumGlow_ValueChanged);
415
			// 
416
			// NumSound
417
			// 
418
			this->NumSound->Dock = System::Windows::Forms::DockStyle::Fill;
419
			this->NumSound->Location = System::Drawing::Point(293, 31);
420
			this->NumSound->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {10000, 0, 0, 0});
421
			this->NumSound->Name = L"NumSound";
422
			this->NumSound->Size = System::Drawing::Size(139, 20);
423
			this->NumSound->TabIndex = 6;
424
			this->NumSound->ThousandsSeparator = true;
425
			this->NumSound->ValueChanged += gcnew System::EventHandler(this, &CustomiseModel::NumSound_ValueChanged);
426
			// 
427
			// label43
428
			// 
429
			this->label43->Dock = System::Windows::Forms::DockStyle::Fill;
430
			this->label43->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
431
				static_cast<System::Byte>(0)));
432
			this->label43->Location = System::Drawing::Point(148, 0);
433
			this->label43->Name = L"label43";
434
			this->label43->Size = System::Drawing::Size(139, 28);
435
			this->label43->TabIndex = 3;
436
			this->label43->Text = L"Glow Effect";
437
			this->label43->TextAlign = System::Drawing::ContentAlignment::MiddleCenter;
438
			// 
439
			// label42
440
			// 
441
			this->label42->Dock = System::Windows::Forms::DockStyle::Fill;
442
			this->label42->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
443
				static_cast<System::Byte>(0)));
444
			this->label42->Location = System::Drawing::Point(293, 0);
445
			this->label42->Name = L"label42";
446
			this->label42->Size = System::Drawing::Size(139, 28);
447
			this->label42->TabIndex = 2;
448
			this->label42->Text = L"Sound";
449
			this->label42->TextAlign = System::Drawing::ContentAlignment::MiddleCenter;
450
			// 
451
			// label41
452
			// 
453
			this->label41->Dock = System::Windows::Forms::DockStyle::Fill;
454
			this->label41->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
455
				static_cast<System::Byte>(0)));
456
			this->label41->Location = System::Drawing::Point(3, 0);
457
			this->label41->Name = L"label41";
458
			this->label41->Size = System::Drawing::Size(139, 28);
459
			this->label41->TabIndex = 1;
460
			this->label41->Text = L"Effect (colour)";
461
			this->label41->TextAlign = System::Drawing::ContentAlignment::MiddleCenter;
462
			// 
463
			// groupBox8
464
			// 
465
			this->groupBox8->Controls->Add(this->panel33);
466
			this->groupBox8->Controls->Add(this->panel31);
467
			this->groupBox8->Controls->Add(this->panel30);
468
			this->groupBox8->Controls->Add(this->panel29);
469
			this->groupBox8->Dock = System::Windows::Forms::DockStyle::Top;
470
			this->groupBox8->Location = System::Drawing::Point(0, 0);
471
			this->groupBox8->Name = L"groupBox8";
472
			this->groupBox8->Padding = System::Windows::Forms::Padding(6);
473
			this->groupBox8->Size = System::Drawing::Size(447, 154);
474
			this->groupBox8->TabIndex = 0;
475
			this->groupBox8->TabStop = false;
476
			this->groupBox8->Text = L"ID\'s";
477
			// 
478
			// panel33
479
			// 
480
			this->panel33->Controls->Add(this->NumSkin);
481
			this->panel33->Controls->Add(this->label45);
482
			this->panel33->Dock = System::Windows::Forms::DockStyle::Top;
483
			this->panel33->Location = System::Drawing::Point(6, 115);
484
			this->panel33->Name = L"panel33";
485
			this->panel33->Padding = System::Windows::Forms::Padding(5);
486
			this->panel33->Size = System::Drawing::Size(435, 31);
487
			this->panel33->TabIndex = 10;
488
			// 
489
			// NumSkin
490
			// 
491
			this->NumSkin->Dock = System::Windows::Forms::DockStyle::Left;
492
			this->NumSkin->Location = System::Drawing::Point(145, 5);
493
			this->NumSkin->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {10000, 0, 0, 0});
494
			this->NumSkin->Name = L"NumSkin";
495
			this->NumSkin->Size = System::Drawing::Size(118, 20);
496
			this->NumSkin->TabIndex = 1;
497
			this->NumSkin->ThousandsSeparator = true;
498
			this->NumSkin->ValueChanged += gcnew System::EventHandler(this, &CustomiseModel::NumSkin_ValueChanged);
499
			// 
500
			// label45
501
			// 
502
			this->label45->Dock = System::Windows::Forms::DockStyle::Left;
503
			this->label45->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
504
				static_cast<System::Byte>(0)));
505
			this->label45->Location = System::Drawing::Point(5, 5);
506
			this->label45->Name = L"label45";
507
			this->label45->Size = System::Drawing::Size(140, 21);
508
			this->label45->TabIndex = 0;
509
			this->label45->Text = L"Skin Index";
510
			this->label45->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
511
			// 
512
			// panel31
513
			// 
514
			this->panel31->Controls->Add(this->NumVideo);
515
			this->panel31->Controls->Add(this->label40);
516
			this->panel31->Dock = System::Windows::Forms::DockStyle::Top;
517
			this->panel31->Location = System::Drawing::Point(6, 83);
518
			this->panel31->Name = L"panel31";
519
			this->panel31->Padding = System::Windows::Forms::Padding(5);
520
			this->panel31->Size = System::Drawing::Size(435, 32);
521
			this->panel31->TabIndex = 9;
522
			// 
523
			// NumVideo
524
			// 
525
			this->NumVideo->Dock = System::Windows::Forms::DockStyle::Left;
526
			this->NumVideo->Location = System::Drawing::Point(145, 5);
527
			this->NumVideo->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {10000, 0, 0, 0});
528
			this->NumVideo->Name = L"NumVideo";
529
			this->NumVideo->Size = System::Drawing::Size(118, 20);
530
			this->NumVideo->TabIndex = 1;
531
			this->NumVideo->ThousandsSeparator = true;
532
			this->NumVideo->ValueChanged += gcnew System::EventHandler(this, &CustomiseModel::NumVideo_ValueChanged);
533
			// 
534
			// label40
535
			// 
536
			this->label40->Dock = System::Windows::Forms::DockStyle::Left;
537
			this->label40->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
538
				static_cast<System::Byte>(0)));
539
			this->label40->Location = System::Drawing::Point(5, 5);
540
			this->label40->Name = L"label40";
541
			this->label40->Size = System::Drawing::Size(140, 22);
542
			this->label40->TabIndex = 0;
543
			this->label40->Text = L"Video ID";
544
			this->label40->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
545
			// 
546
			// panel30
547
			// 
548
			this->panel30->Controls->Add(this->NumPicture);
549
			this->panel30->Controls->Add(this->label39);
550
			this->panel30->Dock = System::Windows::Forms::DockStyle::Top;
551
			this->panel30->Location = System::Drawing::Point(6, 51);
552
			this->panel30->Name = L"panel30";
553
			this->panel30->Padding = System::Windows::Forms::Padding(5);
554
			this->panel30->Size = System::Drawing::Size(435, 32);
555
			this->panel30->TabIndex = 8;
556
			// 
557
			// NumPicture
558
			// 
559
			this->NumPicture->Dock = System::Windows::Forms::DockStyle::Left;
560
			this->NumPicture->Location = System::Drawing::Point(145, 5);
561
			this->NumPicture->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {10000, 0, 0, 0});
562
			this->NumPicture->Name = L"NumPicture";
563
			this->NumPicture->Size = System::Drawing::Size(118, 20);
564
			this->NumPicture->TabIndex = 1;
565
			this->NumPicture->ThousandsSeparator = true;
566
			this->NumPicture->ValueChanged += gcnew System::EventHandler(this, &CustomiseModel::NumPicture_ValueChanged);
567
			// 
568
			// label39
569
			// 
570
			this->label39->Dock = System::Windows::Forms::DockStyle::Left;
571
			this->label39->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
572
				static_cast<System::Byte>(0)));
573
			this->label39->Location = System::Drawing::Point(5, 5);
574
			this->label39->Name = L"label39";
575
			this->label39->Size = System::Drawing::Size(140, 22);
576
			this->label39->TabIndex = 0;
577
			this->label39->Text = L"Picture ID";
578
			this->label39->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
579
			// 
580
			// panel29
581
			// 
582
			this->panel29->Controls->Add(this->TextBody);
583
			this->panel29->Controls->Add(this->label38);
584
			this->panel29->Dock = System::Windows::Forms::DockStyle::Top;
585
			this->panel29->Location = System::Drawing::Point(6, 19);
586
			this->panel29->Name = L"panel29";
587
			this->panel29->Padding = System::Windows::Forms::Padding(5);
588
			this->panel29->Size = System::Drawing::Size(435, 32);
589
			this->panel29->TabIndex = 7;
590
			// 
591
			// TextBody
592
			// 
593
			this->TextBody->Dock = System::Windows::Forms::DockStyle::Fill;
594
			this->TextBody->Location = System::Drawing::Point(145, 5);
595
			this->TextBody->Name = L"TextBody";
596
			this->TextBody->Size = System::Drawing::Size(285, 20);
597
			this->TextBody->TabIndex = 1;
598
			this->TextBody->TextChanged += gcnew System::EventHandler(this, &CustomiseModel::TextBody_TextChanged);
599
			// 
600
			// label38
601
			// 
602
			this->label38->Dock = System::Windows::Forms::DockStyle::Left;
603
			this->label38->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
604
				static_cast<System::Byte>(0)));
605
			this->label38->Location = System::Drawing::Point(5, 5);
606
			this->label38->Name = L"label38";
607
			this->label38->Size = System::Drawing::Size(140, 22);
608
			this->label38->TabIndex = 0;
609
			this->label38->Text = L"Body File";
610
			this->label38->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
611
			// 
612
			// CustomiseModel
613
			// 
614
			this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
615
			this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
616
			this->Controls->Add(this->groupBox11);
617
			this->Controls->Add(this->groupBox10);
618
			this->Controls->Add(this->groupBox9);
619
			this->Controls->Add(this->groupBox8);
620
			this->Name = L"CustomiseModel";
621
			this->Size = System::Drawing::Size(447, 418);
622
			this->groupBox11->ResumeLayout(false);
623
			this->tableLayoutPanel7->ResumeLayout(false);
624
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->NumExplosion))->EndInit();
625
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->NumBodyDef))->EndInit();
626
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->NumParticle))->EndInit();
627
			this->groupBox10->ResumeLayout(false);
628
			this->tableLayoutPanel6->ResumeLayout(false);
629
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->NumSoundMin))->EndInit();
630
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->NumSoundMax))->EndInit();
631
			this->groupBox9->ResumeLayout(false);
632
			this->tableLayoutPanel5->ResumeLayout(false);
633
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->NumEffect))->EndInit();
634
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->NumGlow))->EndInit();
635
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->NumSound))->EndInit();
636
			this->groupBox8->ResumeLayout(false);
637
			this->panel33->ResumeLayout(false);
638
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->NumSkin))->EndInit();
639
			this->panel31->ResumeLayout(false);
640
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->NumVideo))->EndInit();
641
			this->panel30->ResumeLayout(false);
642
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->NumPicture))->EndInit();
643
			this->panel29->ResumeLayout(false);
644
			this->panel29->PerformLayout();
645
			this->ResumeLayout(false);
646
 
647
		}
648
#pragma endregion
649
private: System::Void TextBody_TextChanged(System::Object^  sender, System::EventArgs^  e) {
650
			 if ( !m_bUpdateing )
211 cycrow 651
				m_pShipData->sModel = _WS(this->TextBody->Text);
1 cycrow 652
		 }
653
private: System::Void NumPicture_ValueChanged(System::Object^  sender, System::EventArgs^  e) {
654
			 if ( !m_bUpdateing )
655
				m_pShipData->iPictureID = Convert::ToInt32(this->NumPicture->Value);
656
		 }
657
private: System::Void NumVideo_ValueChanged(System::Object^  sender, System::EventArgs^  e) {
658
			 if ( !m_bUpdateing )
659
				m_pShipData->iVideoID = Convert::ToInt32(this->NumVideo->Value);
660
		 }
661
private: System::Void NumEffect_ValueChanged(System::Object^  sender, System::EventArgs^  e) {
662
			 if ( !m_bUpdateing )
663
				m_pShipData->iEngineEffect = Convert::ToInt32(this->NumEffect->Value);
664
		 }
665
private: System::Void NumGlow_ValueChanged(System::Object^  sender, System::EventArgs^  e) {
666
			 if ( !m_bUpdateing )
667
				m_pShipData->iEngineGlow = Convert::ToInt32(this->NumGlow->Value);
668
		 }
669
private: System::Void NumSound_ValueChanged(System::Object^  sender, System::EventArgs^  e) {
670
			 if ( !m_bUpdateing )
671
				m_pShipData->iEngineSound = Convert::ToInt32(this->NumSound->Value);
672
		 }
673
private: System::Void NumSkin_ValueChanged(System::Object^  sender, System::EventArgs^  e) {
674
			 if ( !m_bUpdateing )
675
				m_pShipData->iSkin = Convert::ToInt32(this->NumSkin->Value);
676
		 }
677
private: System::Void NumSoundMin_ValueChanged(System::Object^  sender, System::EventArgs^  e) {
678
			 if ( !m_bUpdateing )
679
				 m_pShipData->iSoundMin = Convert::ToInt32(this->NumSoundMin->Value);
680
		 }
681
private: System::Void NumSoundMax_ValueChanged(System::Object^  sender, System::EventArgs^  e) {
682
			 if ( !m_bUpdateing )
683
				m_pShipData->iSoundMax = Convert::ToInt32(this->NumSoundMax->Value);
684
		 }
685
private: System::Void NumExplosion_ValueChanged(System::Object^  sender, System::EventArgs^  e) {
686
			 if ( !m_bUpdateing )
687
				m_pShipData->iExplosionDef = Convert::ToInt32(this->NumExplosion->Value);
688
		 }
689
private: System::Void NumBodyDef_ValueChanged(System::Object^  sender, System::EventArgs^  e) {
690
			 if ( !m_bUpdateing )
691
				m_pShipData->iExplosionBody = Convert::ToInt32(this->NumBodyDef->Value);
692
		 }
693
private: System::Void NumParticle_ValueChanged(System::Object^  sender, System::EventArgs^  e) {
694
			 if ( !m_bUpdateing )
695
				m_pShipData->iParticle = Convert::ToInt32(this->NumParticle->Value);
696
		 }
697
};
698
}