Subversion Repositories spk

Rev

Rev 94 | 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 CustomiseWeapons1
15
	/// </summary>
16
	public ref class CustomiseWeapons1 : public System::Windows::Forms::UserControl
17
	{
18
	public:
19
		CustomiseWeapons1(Windows::Forms::Form ^parent, CShipData *shipData)
20
		{
21
			InitializeComponent();
22
 
23
			m_pParent = parent;
24
			m_pShipData = shipData;
25
			m_bUpdateing = false;
26
 
27
			this->Dock = System::Windows::Forms::DockStyle::Fill;
28
		}
29
 
30
		void UpdateDisplay();
31
		void UpdateShields();
32
 
33
	protected:
34
		/// <summary>
35
		/// Clean up any resources being used.
36
		/// </summary>
37
		~CustomiseWeapons1()
38
		{
39
			if (components)
40
			{
41
				delete components;
42
			}
43
		}
44
	private: System::Windows::Forms::GroupBox^  groupBox6;
45
	protected: 
46
	private: System::Windows::Forms::Panel^  panel23;
47
	private: System::Windows::Forms::NumericUpDown^  NumHull;
48
	private: System::Windows::Forms::Label^  label29;
49
	private: System::Windows::Forms::Panel^  panel22;
50
	private: System::Windows::Forms::NumericUpDown^  NumShieldMax;
51
	private: System::Windows::Forms::Label^  label28;
52
	private: System::Windows::Forms::Panel^  panel21;
53
	private: System::Windows::Forms::ComboBox^  ComboShield;
54
	private: System::Windows::Forms::Label^  label27;
55
	private: System::Windows::Forms::GroupBox^  groupBox7;
56
	private: System::Windows::Forms::Panel^  panel28;
57
	private: System::Windows::Forms::NumericUpDown^  NumReaction;
58
	private: System::Windows::Forms::Label^  label37;
59
	private: System::Windows::Forms::Panel^  panel27;
60
	private: System::Windows::Forms::NumericUpDown^  NumMissiles;
61
	private: System::Windows::Forms::Label^  label36;
62
	private: System::Windows::Forms::Panel^  panel26;
63
	private: System::Windows::Forms::TextBox^  TextRecharge;
64
	private: System::Windows::Forms::Label^  label34;
65
	private: System::Windows::Forms::NumericUpDown^  NumRecharge;
66
	private: System::Windows::Forms::Label^  label35;
67
	private: System::Windows::Forms::Panel^  panel25;
68
	private: System::Windows::Forms::Label^  label32;
69
	private: System::Windows::Forms::NumericUpDown^  NumWeaponEnergy;
70
	private: System::Windows::Forms::Label^  label33;
71
	private: System::Windows::Forms::Panel^  panel24;
72
	private: System::Windows::Forms::Label^  label31;
73
	private: System::Windows::Forms::NumericUpDown^  NumReactor;
74
	private: System::Windows::Forms::Label^  label30;
75
 
76
	private:
77
		CShipData				*m_pShipData;
78
		bool					 m_bUpdateing;
79
		Windows::Forms::Form	^m_pParent;
80
		/// <summary>
81
		/// Required designer variable.
82
		/// </summary>
83
		System::ComponentModel::Container ^components;
84
 
85
#pragma region Windows Form Designer generated code
86
		/// <summary>
87
		/// Required method for Designer support - do not modify
88
		/// the contents of this method with the code editor.
89
		/// </summary>
90
		void InitializeComponent(void)
91
		{
92
			this->groupBox6 = (gcnew System::Windows::Forms::GroupBox());
93
			this->panel23 = (gcnew System::Windows::Forms::Panel());
94
			this->NumHull = (gcnew System::Windows::Forms::NumericUpDown());
95
			this->label29 = (gcnew System::Windows::Forms::Label());
96
			this->panel22 = (gcnew System::Windows::Forms::Panel());
97
			this->NumShieldMax = (gcnew System::Windows::Forms::NumericUpDown());
98
			this->label28 = (gcnew System::Windows::Forms::Label());
99
			this->panel21 = (gcnew System::Windows::Forms::Panel());
100
			this->ComboShield = (gcnew System::Windows::Forms::ComboBox());
101
			this->label27 = (gcnew System::Windows::Forms::Label());
102
			this->groupBox7 = (gcnew System::Windows::Forms::GroupBox());
103
			this->panel28 = (gcnew System::Windows::Forms::Panel());
104
			this->NumReaction = (gcnew System::Windows::Forms::NumericUpDown());
105
			this->label37 = (gcnew System::Windows::Forms::Label());
106
			this->panel27 = (gcnew System::Windows::Forms::Panel());
107
			this->NumMissiles = (gcnew System::Windows::Forms::NumericUpDown());
108
			this->label36 = (gcnew System::Windows::Forms::Label());
109
			this->panel26 = (gcnew System::Windows::Forms::Panel());
110
			this->TextRecharge = (gcnew System::Windows::Forms::TextBox());
111
			this->label34 = (gcnew System::Windows::Forms::Label());
112
			this->NumRecharge = (gcnew System::Windows::Forms::NumericUpDown());
113
			this->label35 = (gcnew System::Windows::Forms::Label());
114
			this->panel25 = (gcnew System::Windows::Forms::Panel());
115
			this->label32 = (gcnew System::Windows::Forms::Label());
116
			this->NumWeaponEnergy = (gcnew System::Windows::Forms::NumericUpDown());
117
			this->label33 = (gcnew System::Windows::Forms::Label());
118
			this->panel24 = (gcnew System::Windows::Forms::Panel());
119
			this->label31 = (gcnew System::Windows::Forms::Label());
120
			this->NumReactor = (gcnew System::Windows::Forms::NumericUpDown());
121
			this->label30 = (gcnew System::Windows::Forms::Label());
122
			this->groupBox6->SuspendLayout();
123
			this->panel23->SuspendLayout();
124
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->NumHull))->BeginInit();
125
			this->panel22->SuspendLayout();
126
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->NumShieldMax))->BeginInit();
127
			this->panel21->SuspendLayout();
128
			this->groupBox7->SuspendLayout();
129
			this->panel28->SuspendLayout();
130
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->NumReaction))->BeginInit();
131
			this->panel27->SuspendLayout();
132
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->NumMissiles))->BeginInit();
133
			this->panel26->SuspendLayout();
134
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->NumRecharge))->BeginInit();
135
			this->panel25->SuspendLayout();
136
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->NumWeaponEnergy))->BeginInit();
137
			this->panel24->SuspendLayout();
138
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->NumReactor))->BeginInit();
139
			this->SuspendLayout();
140
			// 
141
			// groupBox6
142
			// 
143
			this->groupBox6->Controls->Add(this->panel23);
144
			this->groupBox6->Controls->Add(this->panel22);
145
			this->groupBox6->Controls->Add(this->panel21);
146
			this->groupBox6->Dock = System::Windows::Forms::DockStyle::Top;
147
			this->groupBox6->Location = System::Drawing::Point(0, 0);
148
			this->groupBox6->Name = L"groupBox6";
149
			this->groupBox6->Size = System::Drawing::Size(439, 125);
150
			this->groupBox6->TabIndex = 1;
151
			this->groupBox6->TabStop = false;
152
			this->groupBox6->Text = L"Shields";
153
			// 
154
			// panel23
155
			// 
156
			this->panel23->Controls->Add(this->NumHull);
157
			this->panel23->Controls->Add(this->label29);
158
			this->panel23->Dock = System::Windows::Forms::DockStyle::Top;
159
			this->panel23->Location = System::Drawing::Point(3, 80);
160
			this->panel23->Name = L"panel23";
161
			this->panel23->Padding = System::Windows::Forms::Padding(5);
162
			this->panel23->Size = System::Drawing::Size(433, 32);
163
			this->panel23->TabIndex = 6;
164
			// 
165
			// NumHull
166
			// 
167
			this->NumHull->Dock = System::Windows::Forms::DockStyle::Left;
168
			this->NumHull->Location = System::Drawing::Point(195, 5);
169
			this->NumHull->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {2000000000, 0, 0, 0});
170
			this->NumHull->Name = L"NumHull";
171
			this->NumHull->Size = System::Drawing::Size(118, 20);
172
			this->NumHull->TabIndex = 1;
173
			this->NumHull->ThousandsSeparator = true;
174
			this->NumHull->ValueChanged += gcnew System::EventHandler(this, &CustomiseWeapons1::NumHull_ValueChanged);
175
			// 
176
			// label29
177
			// 
178
			this->label29->Dock = System::Windows::Forms::DockStyle::Left;
179
			this->label29->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
180
				static_cast<System::Byte>(0)));
181
			this->label29->Location = System::Drawing::Point(5, 5);
182
			this->label29->Name = L"label29";
183
			this->label29->Size = System::Drawing::Size(190, 22);
184
			this->label29->TabIndex = 0;
185
			this->label29->Text = L"Hull Stength";
186
			this->label29->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
187
			// 
188
			// panel22
189
			// 
190
			this->panel22->Controls->Add(this->NumShieldMax);
191
			this->panel22->Controls->Add(this->label28);
192
			this->panel22->Dock = System::Windows::Forms::DockStyle::Top;
193
			this->panel22->Location = System::Drawing::Point(3, 48);
194
			this->panel22->Name = L"panel22";
195
			this->panel22->Padding = System::Windows::Forms::Padding(5);
196
			this->panel22->Size = System::Drawing::Size(433, 32);
197
			this->panel22->TabIndex = 5;
198
			// 
199
			// NumShieldMax
200
			// 
201
			this->NumShieldMax->Dock = System::Windows::Forms::DockStyle::Left;
202
			this->NumShieldMax->Location = System::Drawing::Point(195, 5);
203
			this->NumShieldMax->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {1000, 0, 0, 0});
204
			this->NumShieldMax->Name = L"NumShieldMax";
205
			this->NumShieldMax->Size = System::Drawing::Size(118, 20);
206
			this->NumShieldMax->TabIndex = 1;
207
			this->NumShieldMax->ValueChanged += gcnew System::EventHandler(this, &CustomiseWeapons1::NumShieldMax_ValueChanged);
208
			// 
209
			// label28
210
			// 
211
			this->label28->Dock = System::Windows::Forms::DockStyle::Left;
212
			this->label28->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
213
				static_cast<System::Byte>(0)));
214
			this->label28->Location = System::Drawing::Point(5, 5);
215
			this->label28->Name = L"label28";
216
			this->label28->Size = System::Drawing::Size(190, 22);
217
			this->label28->TabIndex = 0;
218
			this->label28->Text = L"Maximum Shield Count";
219
			this->label28->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
220
			// 
221
			// panel21
222
			// 
223
			this->panel21->Controls->Add(this->ComboShield);
224
			this->panel21->Controls->Add(this->label27);
225
			this->panel21->Dock = System::Windows::Forms::DockStyle::Top;
226
			this->panel21->Location = System::Drawing::Point(3, 16);
227
			this->panel21->Name = L"panel21";
228
			this->panel21->Padding = System::Windows::Forms::Padding(5);
229
			this->panel21->Size = System::Drawing::Size(433, 32);
230
			this->panel21->TabIndex = 2;
231
			// 
232
			// ComboShield
233
			// 
234
			this->ComboShield->Dock = System::Windows::Forms::DockStyle::Fill;
235
			this->ComboShield->DropDownStyle = System::Windows::Forms::ComboBoxStyle::DropDownList;
236
			this->ComboShield->FormattingEnabled = true;
237
			this->ComboShield->Location = System::Drawing::Point(195, 5);
238
			this->ComboShield->Name = L"ComboShield";
239
			this->ComboShield->Size = System::Drawing::Size(233, 21);
240
			this->ComboShield->TabIndex = 1;
241
			this->ComboShield->SelectedIndexChanged += gcnew System::EventHandler(this, &CustomiseWeapons1::ComboShield_SelectedIndexChanged);
242
			// 
243
			// label27
244
			// 
245
			this->label27->Dock = System::Windows::Forms::DockStyle::Left;
246
			this->label27->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
247
				static_cast<System::Byte>(0)));
248
			this->label27->Location = System::Drawing::Point(5, 5);
249
			this->label27->Name = L"label27";
250
			this->label27->Size = System::Drawing::Size(190, 22);
251
			this->label27->TabIndex = 0;
252
			this->label27->Text = L"Shield Type";
253
			this->label27->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
254
			// 
255
			// groupBox7
256
			// 
257
			this->groupBox7->Controls->Add(this->panel28);
258
			this->groupBox7->Controls->Add(this->panel27);
259
			this->groupBox7->Controls->Add(this->panel26);
260
			this->groupBox7->Controls->Add(this->panel25);
261
			this->groupBox7->Controls->Add(this->panel24);
262
			this->groupBox7->Dock = System::Windows::Forms::DockStyle::Top;
263
			this->groupBox7->Location = System::Drawing::Point(0, 125);
264
			this->groupBox7->Name = L"groupBox7";
265
			this->groupBox7->Size = System::Drawing::Size(439, 185);
266
			this->groupBox7->TabIndex = 2;
267
			this->groupBox7->TabStop = false;
268
			this->groupBox7->Text = L"Reactor Output";
269
			// 
270
			// panel28
271
			// 
272
			this->panel28->Controls->Add(this->NumReaction);
273
			this->panel28->Controls->Add(this->label37);
274
			this->panel28->Dock = System::Windows::Forms::DockStyle::Top;
275
			this->panel28->Location = System::Drawing::Point(3, 144);
276
			this->panel28->Name = L"panel28";
277
			this->panel28->Padding = System::Windows::Forms::Padding(5);
278
			this->panel28->Size = System::Drawing::Size(433, 32);
279
			this->panel28->TabIndex = 11;
280
			// 
281
			// NumReaction
282
			// 
283
			this->NumReaction->Dock = System::Windows::Forms::DockStyle::Left;
284
			this->NumReaction->Location = System::Drawing::Point(240, 5);
285
			this->NumReaction->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {2000000000, 0, 0, 0});
286
			this->NumReaction->Name = L"NumReaction";
287
			this->NumReaction->Size = System::Drawing::Size(118, 20);
288
			this->NumReaction->TabIndex = 1;
289
			this->NumReaction->ThousandsSeparator = true;
290
			this->NumReaction->ValueChanged += gcnew System::EventHandler(this, &CustomiseWeapons1::NumReaction_ValueChanged);
291
			// 
292
			// label37
293
			// 
294
			this->label37->Dock = System::Windows::Forms::DockStyle::Left;
295
			this->label37->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
296
				static_cast<System::Byte>(0)));
297
			this->label37->Location = System::Drawing::Point(5, 5);
298
			this->label37->Name = L"label37";
299
			this->label37->Size = System::Drawing::Size(235, 22);
300
			this->label37->TabIndex = 0;
301
			this->label37->Text = L"Average Reaction Delay";
302
			this->label37->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
303
			// 
304
			// panel27
305
			// 
306
			this->panel27->Controls->Add(this->NumMissiles);
307
			this->panel27->Controls->Add(this->label36);
308
			this->panel27->Dock = System::Windows::Forms::DockStyle::Top;
309
			this->panel27->Location = System::Drawing::Point(3, 112);
310
			this->panel27->Name = L"panel27";
311
			this->panel27->Padding = System::Windows::Forms::Padding(5);
312
			this->panel27->Size = System::Drawing::Size(433, 32);
313
			this->panel27->TabIndex = 10;
314
			// 
315
			// NumMissiles
316
			// 
317
			this->NumMissiles->Dock = System::Windows::Forms::DockStyle::Left;
318
			this->NumMissiles->Location = System::Drawing::Point(240, 5);
319
			this->NumMissiles->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {1000, 0, 0, 0});
320
			this->NumMissiles->Name = L"NumMissiles";
321
			this->NumMissiles->Size = System::Drawing::Size(118, 20);
322
			this->NumMissiles->TabIndex = 1;
323
			this->NumMissiles->ThousandsSeparator = true;
324
			this->NumMissiles->ValueChanged += gcnew System::EventHandler(this, &CustomiseWeapons1::NumMissiles_ValueChanged);
325
			// 
326
			// label36
327
			// 
328
			this->label36->Dock = System::Windows::Forms::DockStyle::Left;
329
			this->label36->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
330
				static_cast<System::Byte>(0)));
331
			this->label36->Location = System::Drawing::Point(5, 5);
332
			this->label36->Name = L"label36";
333
			this->label36->Size = System::Drawing::Size(235, 22);
334
			this->label36->TabIndex = 0;
335
			this->label36->Text = L"Number of Missiles (NPC)";
336
			this->label36->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
337
			// 
338
			// panel26
339
			// 
340
			this->panel26->Controls->Add(this->TextRecharge);
341
			this->panel26->Controls->Add(this->label34);
342
			this->panel26->Controls->Add(this->NumRecharge);
343
			this->panel26->Controls->Add(this->label35);
344
			this->panel26->Dock = System::Windows::Forms::DockStyle::Top;
345
			this->panel26->Location = System::Drawing::Point(3, 80);
346
			this->panel26->Name = L"panel26";
347
			this->panel26->Padding = System::Windows::Forms::Padding(5);
348
			this->panel26->Size = System::Drawing::Size(433, 32);
349
			this->panel26->TabIndex = 9;
350
			// 
351
			// TextRecharge
352
			// 
353
			this->TextRecharge->Dock = System::Windows::Forms::DockStyle::Fill;
354
			this->TextRecharge->Location = System::Drawing::Point(354, 5);
355
			this->TextRecharge->Name = L"TextRecharge";
356
			this->TextRecharge->Size = System::Drawing::Size(74, 20);
357
			this->TextRecharge->TabIndex = 3;
358
			this->TextRecharge->TextChanged += gcnew System::EventHandler(this, &CustomiseWeapons1::TextRecharge_TextChanged);
359
			// 
360
			// label34
361
			// 
362
			this->label34->Dock = System::Windows::Forms::DockStyle::Left;
363
			this->label34->Location = System::Drawing::Point(313, 5);
364
			this->label34->Name = L"label34";
365
			this->label34->Size = System::Drawing::Size(41, 22);
366
			this->label34->TabIndex = 2;
367
			this->label34->Text = L"Kw/s";
368
			this->label34->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
369
			// 
370
			// NumRecharge
371
			// 
372
			this->NumRecharge->DecimalPlaces = 3;
373
			this->NumRecharge->Dock = System::Windows::Forms::DockStyle::Left;
374
			this->NumRecharge->Location = System::Drawing::Point(195, 5);
375
			this->NumRecharge->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {2000000000, 0, 0, 0});
376
			this->NumRecharge->Name = L"NumRecharge";
377
			this->NumRecharge->Size = System::Drawing::Size(118, 20);
378
			this->NumRecharge->TabIndex = 1;
379
			this->NumRecharge->ThousandsSeparator = true;
380
			this->NumRecharge->ValueChanged += gcnew System::EventHandler(this, &CustomiseWeapons1::NumRecharge_ValueChanged);
381
			// 
382
			// label35
383
			// 
384
			this->label35->Dock = System::Windows::Forms::DockStyle::Left;
385
			this->label35->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
386
				static_cast<System::Byte>(0)));
387
			this->label35->Location = System::Drawing::Point(5, 5);
388
			this->label35->Name = L"label35";
389
			this->label35->Size = System::Drawing::Size(190, 22);
390
			this->label35->TabIndex = 0;
391
			this->label35->Text = L"Recharge Rate";
392
			this->label35->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
393
			// 
394
			// panel25
395
			// 
396
			this->panel25->Controls->Add(this->label32);
397
			this->panel25->Controls->Add(this->NumWeaponEnergy);
398
			this->panel25->Controls->Add(this->label33);
399
			this->panel25->Dock = System::Windows::Forms::DockStyle::Top;
400
			this->panel25->Location = System::Drawing::Point(3, 48);
401
			this->panel25->Name = L"panel25";
402
			this->panel25->Padding = System::Windows::Forms::Padding(5);
403
			this->panel25->Size = System::Drawing::Size(433, 32);
404
			this->panel25->TabIndex = 8;
405
			// 
406
			// label32
407
			// 
408
			this->label32->Dock = System::Windows::Forms::DockStyle::Left;
409
			this->label32->Location = System::Drawing::Point(313, 5);
410
			this->label32->Name = L"label32";
411
			this->label32->Size = System::Drawing::Size(41, 22);
412
			this->label32->TabIndex = 2;
413
			this->label32->Text = L"Kw";
414
			this->label32->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
415
			// 
416
			// NumWeaponEnergy
417
			// 
418
			this->NumWeaponEnergy->Dock = System::Windows::Forms::DockStyle::Left;
419
			this->NumWeaponEnergy->Location = System::Drawing::Point(195, 5);
420
			this->NumWeaponEnergy->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {2000000000, 0, 0, 0});
421
			this->NumWeaponEnergy->Name = L"NumWeaponEnergy";
422
			this->NumWeaponEnergy->Size = System::Drawing::Size(118, 20);
423
			this->NumWeaponEnergy->TabIndex = 1;
424
			this->NumWeaponEnergy->ThousandsSeparator = true;
425
			this->NumWeaponEnergy->ValueChanged += gcnew System::EventHandler(this, &CustomiseWeapons1::NumWeaponEnergy_ValueChanged);
426
			// 
427
			// label33
428
			// 
429
			this->label33->Dock = System::Windows::Forms::DockStyle::Left;
430
			this->label33->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->label33->Location = System::Drawing::Point(5, 5);
433
			this->label33->Name = L"label33";
434
			this->label33->Size = System::Drawing::Size(190, 22);
435
			this->label33->TabIndex = 0;
436
			this->label33->Text = L"Weapons Energy";
437
			this->label33->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
438
			// 
439
			// panel24
440
			// 
441
			this->panel24->Controls->Add(this->label31);
442
			this->panel24->Controls->Add(this->NumReactor);
443
			this->panel24->Controls->Add(this->label30);
444
			this->panel24->Dock = System::Windows::Forms::DockStyle::Top;
445
			this->panel24->Location = System::Drawing::Point(3, 16);
446
			this->panel24->Name = L"panel24";
447
			this->panel24->Padding = System::Windows::Forms::Padding(5);
448
			this->panel24->Size = System::Drawing::Size(433, 32);
449
			this->panel24->TabIndex = 7;
450
			// 
451
			// label31
452
			// 
453
			this->label31->Dock = System::Windows::Forms::DockStyle::Left;
454
			this->label31->Location = System::Drawing::Point(313, 5);
455
			this->label31->Name = L"label31";
456
			this->label31->Size = System::Drawing::Size(41, 22);
457
			this->label31->TabIndex = 2;
458
			this->label31->Text = L"MW";
459
			this->label31->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
460
			// 
461
			// NumReactor
462
			// 
463
			this->NumReactor->Dock = System::Windows::Forms::DockStyle::Left;
464
			this->NumReactor->Location = System::Drawing::Point(195, 5);
465
			this->NumReactor->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {2000000000, 0, 0, 0});
466
			this->NumReactor->Name = L"NumReactor";
467
			this->NumReactor->Size = System::Drawing::Size(118, 20);
468
			this->NumReactor->TabIndex = 1;
469
			this->NumReactor->ThousandsSeparator = true;
470
			this->NumReactor->ValueChanged += gcnew System::EventHandler(this, &CustomiseWeapons1::NumReactor_ValueChanged);
471
			// 
472
			// label30
473
			// 
474
			this->label30->Dock = System::Windows::Forms::DockStyle::Left;
475
			this->label30->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 9.75F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point, 
476
				static_cast<System::Byte>(0)));
477
			this->label30->Location = System::Drawing::Point(5, 5);
478
			this->label30->Name = L"label30";
479
			this->label30->Size = System::Drawing::Size(190, 22);
480
			this->label30->TabIndex = 0;
481
			this->label30->Text = L"Reactor Output";
482
			this->label30->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
483
			// 
484
			// CustomiseWeapons1
485
			// 
486
			this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
487
			this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
488
			this->Controls->Add(this->groupBox7);
489
			this->Controls->Add(this->groupBox6);
490
			this->Name = L"CustomiseWeapons1";
491
			this->Size = System::Drawing::Size(439, 452);
492
			this->groupBox6->ResumeLayout(false);
493
			this->panel23->ResumeLayout(false);
494
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->NumHull))->EndInit();
495
			this->panel22->ResumeLayout(false);
496
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->NumShieldMax))->EndInit();
497
			this->panel21->ResumeLayout(false);
498
			this->groupBox7->ResumeLayout(false);
499
			this->panel28->ResumeLayout(false);
500
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->NumReaction))->EndInit();
501
			this->panel27->ResumeLayout(false);
502
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->NumMissiles))->EndInit();
503
			this->panel26->ResumeLayout(false);
504
			this->panel26->PerformLayout();
505
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->NumRecharge))->EndInit();
506
			this->panel25->ResumeLayout(false);
507
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->NumWeaponEnergy))->EndInit();
508
			this->panel24->ResumeLayout(false);
509
			(cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->NumReactor))->EndInit();
510
			this->ResumeLayout(false);
511
 
512
		}
513
#pragma endregion
514
private: System::Void ComboShield_SelectedIndexChanged(System::Object^  sender, System::EventArgs^  e) {
515
			 m_pShipData->iShieldType = this->ComboShield->SelectedIndex;
516
		 }
517
private: System::Void NumShieldMax_ValueChanged(System::Object^  sender, System::EventArgs^  e) {
518
			 m_pShipData->iMaxShields = Convert::ToInt32(this->NumShieldMax->Value);
519
		 }
520
private: System::Void NumHull_ValueChanged(System::Object^  sender, System::EventArgs^  e) {
521
			 if ( !m_bUpdateing )
522
				 m_pShipData->iHull = Convert::ToInt32(this->NumHull->Value);
523
		 }
524
private: System::Void NumReactor_ValueChanged(System::Object^  sender, System::EventArgs^  e) {
525
			 if ( !m_bUpdateing )
526
				 m_pShipData->iPower = Convert::ToInt32(this->NumReactor->Value);
527
		 }
528
private: System::Void NumWeaponEnergy_ValueChanged(System::Object^  sender, System::EventArgs^  e) {
529
			 if ( !m_bUpdateing )
530
				 m_pShipData->iLaserEnergy = Convert::ToInt32(this->NumWeaponEnergy->Value);
531
			 this->NumRecharge->Value = Convert::ToDecimal(m_pShipData->fLaserRecharge * Convert::ToDouble(this->NumWeaponEnergy->Value));
532
		 }
533
private: System::Void TextRecharge_TextChanged(System::Object^  sender, System::EventArgs^  e) {
534
			 if ( !this->TextRecharge->Text || !this->TextRecharge->Text->Length )
535
				 return;
225 cycrow 536
			 if ( !_WS(this->TextRecharge->Text).isNumber() )
1 cycrow 537
				 return;
538
 
539
			 if ( !m_bUpdateing )
540
				m_pShipData->fLaserRecharge = (float)Convert::ToDouble(this->TextRecharge->Text);
541
			 this->NumRecharge->Value = Convert::ToDecimal(m_pShipData->fLaserRecharge * Convert::ToDouble(this->NumWeaponEnergy->Value));
542
		 }
543
private: System::Void NumRecharge_ValueChanged(System::Object^  sender, System::EventArgs^  e) {
544
			 this->TextRecharge->Text = Convert::ToString(Convert::ToDouble(this->NumRecharge->Value) / Convert::ToDouble(this->NumWeaponEnergy->Value));
545
		 }
546
private: System::Void NumMissiles_ValueChanged(System::Object^  sender, System::EventArgs^  e) {
547
			 if ( !m_bUpdateing )
548
				m_pShipData->iMissileCount = Convert::ToInt32(this->NumMissiles->Value);
549
		 }
550
private: System::Void NumReaction_ValueChanged(System::Object^  sender, System::EventArgs^  e) {
551
			 if ( !m_bUpdateing )
552
				m_pShipData->iReactionDelay = Convert::ToInt32(this->NumReaction->Value);
553
		 }
554
};
555
}