-
Notifications
You must be signed in to change notification settings - Fork 3
/
Sim.lfm
404 lines (404 loc) · 8.92 KB
/
Sim.lfm
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
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
object fSim: TfSim
Left = 0
Top = 0
HelpContext = 3000
BorderIcons = [biSystemMenu]
Caption = 'TRSim - TurboRisk Simulator'
ClientHeight = 617
ClientWidth = 461
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'Tahoma'
Font.Style = []
OnClose = FormClose
OnCloseQuery = FormCloseQuery
OnShow = FormShow
PixelsPerInch = 96
object pgcSim: TPageControl
Left = 0
Top = 0
Width = 461
Height = 617
ActivePage = tbsSim
Align = alClient
TabOrder = 0
object tbsSim: TTabSheet
Caption = 'Simulation'
object Label2: TLabel
Left = 154
Top = 74
Width = 89
Height = 13
Caption = 'Randomly inlcuded'
end
object Label3: TLabel
Left = 3
Top = 74
Width = 76
Height = 13
Caption = 'Always included'
end
object Label6: TLabel
Left = 305
Top = 74
Width = 71
Height = 13
Caption = 'Never inlcuded'
end
object Label7: TLabel
Left = 3
Top = 47
Width = 87
Height = 13
Caption = 'Players per game:'
end
object Label8: TLabel
Left = 3
Top = 14
Width = 120
Height = 13
Caption = 'Number of games to play'
end
object Label9: TLabel
Left = 189
Top = 47
Width = 10
Height = 13
Caption = 'to'
end
object Label12: TLabel
Left = 126
Top = 47
Width = 22
Height = 13
Caption = 'from'
end
object lstAlways: TListBox
Left = 3
Top = 93
Width = 145
Height = 184
DragMode = dmAutomatic
ItemHeight = 13
MultiSelect = True
Sorted = True
TabOrder = 3
OnDragDrop = lstTRPDragDrop
OnDragOver = lstTRPDragOver
end
object lstRandom: TListBox
Left = 154
Top = 93
Width = 145
Height = 184
DragMode = dmAutomatic
ItemHeight = 13
MultiSelect = True
Sorted = True
TabOrder = 4
OnDragDrop = lstTRPDragDrop
OnDragOver = lstTRPDragOver
end
object lstNever: TListBox
Left = 305
Top = 93
Width = 145
Height = 184
DragMode = dmAutomatic
ItemHeight = 13
MultiSelect = True
Sorted = True
TabOrder = 5
OnDragDrop = lstTRPDragDrop
OnDragOver = lstTRPDragOver
end
object txtMinPlayers: TEdit
Left = 154
Top = 44
Width = 27
Height = 21
MaxLength = 2
NumbersOnly = True
TabOrder = 1
Text = '2'
end
object txtMaxPlayers: TEdit
Left = 205
Top = 44
Width = 27
Height = 21
MaxLength = 2
NumbersOnly = True
TabOrder = 2
Text = '10'
end
object txtGames: TEdit
Left = 154
Top = 11
Width = 78
Height = 21
NumbersOnly = True
TabOrder = 0
Text = '10'
end
object panError: TGroupBox
Left = 305
Top = 283
Width = 145
Height = 118
Caption = 'TRP error handling'
TabOrder = 6
object Label1: TLabel
Left = 5
Top = 0
Width = 79
Height = 13
Caption = 'In case of error:'
end
object chkErrorDump: TCheckBox
Left = 5
Top = 22
Width = 124
Height = 17
Caption = 'Create a dump file'
Checked = True
State = cbChecked
TabOrder = 0
end
object chkErrorAbort: TCheckBox
Left = 5
Top = 58
Width = 124
Height = 17
Caption = 'Abort game'
Checked = True
State = cbChecked
TabOrder = 1
end
end
object cmdStart: TBitBtn
Left = 157
Top = 531
Width = 139
Height = 52
Caption = 'Start simulation'
TabOrder = 7
OnClick = cmdStartClick
end
object GroupBox1: TGroupBox
Left = 3
Top = 283
Width = 296
Height = 118
Caption = 'Map && Stats'
TabOrder = 8
object chkShowMap: TCheckBox
Left = 6
Top = 0
Width = 274
Height = 17
Caption = 'Show game on map (slower)'
TabOrder = 0
end
object chkShowStats: TCheckBox
Left = 6
Top = 58
Width = 274
Height = 17
Caption = 'Show game stats (slower)'
TabOrder = 1
end
object cboMap: TComboBox
Left = 22
Top = 18
Width = 258
Height = 21
Style = csDropDownList
TabOrder = 2
end
end
object GroupBox2: TGroupBox
Left = 3
Top = 407
Width = 296
Height = 118
Caption = 'Simulation log'
TabOrder = 9
object Label4: TLabel
Left = 6
Top = 0
Width = 44
Height = 13
Caption = 'Game log'
end
object Label5: TLabel
Left = 6
Top = 41
Width = 69
Height = 13
Caption = 'CPU usage log'
end
object txtGameLogFile: TEdit
Left = 6
Top = 10
Width = 254
Height = 21
TabOrder = 0
OnClick = txtGameLogFileCustomDlg
Tag = 1
end
object txtGameLogFilebtn: TButton
Left = 254
Top = 10
Height = 21
Width = 21
TabOrder = 1
Caption = '...'
OnClick = txtGameLogFileCustomDlg
Tag = 1
end
object txtCPULogFile: TEdit
Left = 6
Top = 60
Width = 254
Height = 21
TabOrder = 2
OnClick = txtCPULogFileCustomDlg
Tag = 1
end
object txtCPULogFilebtn: TButton
Left = 254
Top = 60
Height = 21
Width = 21
TabOrder = 3
Caption = '...'
OnClick = txtCPULogFileCustomDlg
Tag = 1
end
end
object GroupBox3: TGroupBox
Left = 305
Top = 407
Width = 143
Height = 118
Caption = 'Game limits'
TabOrder = 10
object Label10: TLabel
Left = 5
Top = 0
Width = 27
Height = 13
Caption = 'Turns'
end
object Label11: TLabel
Left = 5
Top = 41
Width = 72
Height = 13
Caption = 'Time (seconds)'
end
object txtTurnLimit: TEdit
Left = 5
Top = 10
Width = 79
Height = 21
NumbersOnly = True
TabOrder = 0
Text = '10'
end
object txtTimeLimit: TEdit
Left = 5
Top = 60
Width = 79
Height = 21
NumbersOnly = True
TabOrder = 1
Text = '10'
end
end
end
object tbsAna: TTabSheet
Caption = 'Analysis'
ImageIndex = 1
object Label13: TLabel
Left = 10
Top = 19
Width = 44
Height = 13
Caption = 'Game log'
end
object Label14: TLabel
Left = 10
Top = 97
Width = 69
Height = 13
Caption = 'CPU usage log'
end
object txtGameLogFile2: TEdit
Left = 10
Top = 38
Width = 315
Height = 21
TabOrder = 0
OnClick = txtGameLogFileCustomDlg
Tag = 2
end
object txtGameLogFile2btn: TButton
Left = 316
Top = 38
Height = 21
Width = 21
TabOrder = 1
Caption = '...'
OnClick = txtGameLogFileCustomDlg
Tag = 2
end
object txtCPULogFile2: TEdit
Left = 10
Top = 116
Width = 315
Height = 21
TabOrder = 2
OnClick = txtCPULogFileCustomDlg
Tag = 2
end
object txtCPULogFile2btn: TButton
Left = 316
Top = 116
Height = 21
Width = 21
TabOrder = 3
Caption = '...'
OnClick = txtCPULogFileCustomDlg
Tag = 2
end
object cmdAnalyseGameLog: TBitBtn
Left = 347
Top = 28
Width = 103
Height = 40
Caption = 'Analyse'
TabOrder = 4
OnClick = cmdAnalyseGameLogClick
end
object cmdAnalyseCPULog: TBitBtn
Left = 347
Top = 106
Width = 103
Height = 40
Caption = 'Analyse'
TabOrder = 5
OnClick = cmdAnalyseCPULogClick
end
end
end
object dlgOpenLogFile: TOpenDialog
Filter = 'TRSim Game Log|sgl|TRSim CPU Log|scl'
Title = 'Log file'
Left = 394
Top = 562
end
end