-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathunit1.lfm
542 lines (542 loc) · 11 KB
/
unit1.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
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
object Form1: TForm1
Left = 347
Height = 609
Top = 111
Width = 981
ActiveControl = OpenGLControl1
AllowDropFiles = True
Caption = 'Form1'
ClientHeight = 609
ClientWidth = 981
Menu = MainMenu1
Position = poScreenCenter
LCLVersion = '3.99.0.0'
OnCloseQuery = FormCloseQuery
OnCreate = FormCreate
OnDropFiles = FormDropFiles
object OpenGLControl1: TOpenGLControl
Left = 24
Height = 246
Top = 352
Width = 314
OnMakeCurrent = OpenGLControl1MakeCurrent
OnPaint = OpenGLControl1Paint
OnResize = OpenGLControl1Resize
end
object GroupBox1: TGroupBox
Left = 208
Height = 336
Top = 8
Width = 760
Caption = ' Sprite settings '
ClientHeight = 319
ClientWidth = 758
TabOrder = 3
object Label4: TLabel
Left = 8
Height = 16
Top = 8
Width = 35
Caption = 'Name'
end
object Edit1: TEdit
Left = 48
Height = 26
Top = 0
Width = 80
TabOrder = 0
Text = 'Edit1'
OnChange = Edit1Change
end
object Label5: TLabel
Left = 144
Height = 16
Top = 8
Width = 77
Caption = 'Angle range:'
end
object Label6: TLabel
Left = 232
Height = 16
Top = 8
Width = 41
Caption = 'Label6'
end
object Label8: TLabel
Left = 8
Height = 16
Top = 40
Width = 37
Caption = 'Image'
end
object Button3: TButton
Left = 143
Height = 25
Top = 34
Width = 75
Caption = 'Load'
TabOrder = 2
OnClick = Button3Click
end
object Image1: TImage
Left = 416
Height = 232
Hint = 'If "Frames per row" and "Frames per col" are defined correct. '#10'You can automatically calculate "Frameoffset" and "Framecount" by '#10'clicking on a "subimage" via left and right mouse button.'
Top = 0
Width = 332
Center = True
ParentShowHint = False
Proportional = True
ShowHint = True
Stretch = True
OnMouseDown = Image1MouseDown
end
object GroupBox2: TGroupBox
Left = 232
Height = 113
Top = 34
Width = 176
Caption = ' Subimage rect '
ClientHeight = 96
ClientWidth = 174
TabOrder = 4
object Edit3: TEdit
Left = 40
Height = 26
Hint = 'Top edge in pixel'
Top = 2
Width = 50
ParentShowHint = False
ShowHint = True
TabOrder = 0
Text = 'Edit3'
OnKeyPress = Edit5KeyPress
end
object Edit4: TEdit
Left = 112
Height = 26
Hint = 'Right edge in pixel'
Top = 31
Width = 50
ParentShowHint = False
ShowHint = True
TabOrder = 3
Text = 'Edit4'
OnKeyPress = Edit5KeyPress
end
object Edit5: TEdit
Left = 88
Height = 26
Hint = 'Bottom edge in pixel'
Top = 56
Width = 50
ParentShowHint = False
ShowHint = True
TabOrder = 4
Text = 'Edit5'
OnKeyPress = Edit5KeyPress
end
object Edit6: TEdit
Left = 8
Height = 26
Hint = 'Left edge in pixel'
Top = 31
Width = 50
ParentShowHint = False
ShowHint = True
TabOrder = 1
Text = 'Edit6'
OnKeyPress = Edit5KeyPress
end
object Button4: TButton
Left = 64
Height = 25
Top = 29
Width = 40
Caption = 'set'
TabOrder = 2
OnClick = Button4Click
end
end
object CheckBox1: TCheckBox
Left = 64
Height = 22
Top = 40
Width = 71
Caption = 'Derived'
TabOrder = 1
OnClick = CheckBox1Click
end
object Button5: TButton
Left = 8
Height = 25
Top = 280
Width = 400
Caption = 'Create OpenGL preview'
TabOrder = 13
OnClick = Button5Click
end
object CheckBox2: TCheckBox
Left = 8
Height = 22
Top = 128
Width = 196
Caption = 'animation uses transparency'
TabOrder = 5
OnClick = CheckBox2Click
end
object Label10: TLabel
Left = 16
Height = 16
Top = 256
Width = 77
Caption = 'Renderwidth'
end
object Label11: TLabel
Left = 232
Height = 16
Top = 256
Width = 82
Caption = 'Renderheight'
end
object Edit7: TEdit
Left = 111
Height = 26
Top = 248
Width = 80
TabOrder = 11
Text = 'Edit7'
OnChange = Edit7Change
end
object Edit8: TEdit
Left = 327
Height = 26
Top = 248
Width = 80
TabOrder = 12
Text = 'Edit8'
OnChange = Edit8Change
end
object Label12: TLabel
Left = 232
Height = 16
Top = 192
Width = 72
Caption = 'Framecount'
end
object Edit9: TEdit
Left = 328
Height = 26
Top = 184
Width = 80
TabOrder = 9
Text = 'Edit9'
OnChange = Edit9Change
end
object Label13: TLabel
Left = 231
Height = 16
Top = 160
Width = 87
Caption = 'Frames per col'
end
object Label14: TLabel
Left = 16
Height = 16
Top = 160
Width = 92
Caption = 'Frames per row'
end
object Edit10: TEdit
Left = 327
Height = 26
Top = 152
Width = 80
TabOrder = 7
Text = 'Edit10'
OnChange = Edit10Change
end
object Edit11: TEdit
Left = 112
Height = 26
Top = 152
Width = 80
TabOrder = 6
Text = 'Edit11'
OnChange = Edit11Change
end
object Label15: TLabel
Left = 95
Height = 16
Top = 224
Width = 118
Caption = 'Time per frame [ms]'
end
object Edit12: TEdit
Left = 216
Height = 26
Top = 216
Width = 80
TabOrder = 10
Text = 'Edit12'
OnChange = Edit12Change
end
object Button7: TButton
Left = 160
Height = 25
Top = 64
Width = 59
Caption = 'export'
TabOrder = 3
OnClick = Button7Click
end
object Edit13: TEdit
Left = 112
Height = 26
Top = 184
Width = 80
TabOrder = 8
Text = 'Edit13'
OnChange = Edit13Change
end
object Label17: TLabel
Left = 16
Height = 16
Top = 192
Width = 73
Caption = 'Frameoffset'
end
object Button9: TButton
Left = 552
Height = 25
Top = 280
Width = 196
Caption = 'Remove unused subimages'
TabOrder = 14
OnClick = Button9Click
end
end
object ListBox1: TListBox
Left = 56
Height = 336
Top = 8
Width = 144
ItemHeight = 0
TabOrder = 2
TopIndex = -1
OnClick = ListBox1Click
end
object Label1: TLabel
Left = 8
Height = 16
Top = 8
Width = 41
Caption = 'Sprites'
end
object ScrollBar1: TScrollBar
Left = 456
Height = 14
Top = 473
Width = 320
Max = 360
PageSize = 0
TabOrder = 6
OnChange = ScrollBar1Change
end
object Label2: TLabel
Left = 352
Height = 16
Top = 473
Width = 84
Caption = 'Preview angle'
end
object Label3: TLabel
Left = 784
Height = 16
Top = 472
Width = 41
Caption = 'Label3'
end
object Button1: TButton
Left = 24
Height = 26
Top = 280
Width = 26
Caption = '+'
TabOrder = 0
OnClick = Button1Click
end
object Button2: TButton
Left = 24
Height = 26
Top = 318
Width = 26
Caption = '-'
TabOrder = 1
OnClick = Button2Click
end
object Label7: TLabel
Left = 352
Height = 16
Top = 450
Width = 77
Caption = 'Angle Offset'
end
object Edit2: TEdit
Left = 448
Height = 26
Top = 440
Width = 80
TabOrder = 5
Text = 'Edit2'
OnChange = ScrollBar1Change
end
object ScrollBar2: TScrollBar
Left = 456
Height = 14
Top = 529
Width = 316
Min = 1
PageSize = 0
Position = 10
TabOrder = 7
OnChange = ScrollBar2Change
end
object Label9: TLabel
Left = 352
Height = 16
Top = 528
Width = 34
Caption = 'Zoom'
end
object Label16: TLabel
Left = 784
Height = 16
Top = 528
Width = 49
Caption = 'Label16'
end
object Button6: TButton
Left = 832
Height = 25
Top = 520
Width = 25
Caption = 'R'
TabOrder = 8
OnClick = Button6Click
end
object Label18: TLabel
Left = 352
Height = 32
Top = 351
Width = 77
Caption = 'Background '#10'color'
end
object Shape1: TShape
Left = 456
Height = 25
Top = 358
Width = 65
Brush.Color = clBlack
OnMouseUp = Shape1MouseUp
end
object PaintBox1: TPaintBox
Left = 888
Height = 32
Top = 455
Width = 32
OnPaint = PaintBox1Paint
end
object Button8: TButton
Left = 352
Height = 25
Top = 568
Width = 320
Caption = 'Show preview image'
TabOrder = 9
OnClick = Button8Click
end
object Timer1: TTimer
OnTimer = Timer1Timer
Left = 144
Top = 392
end
object MainMenu1: TMainMenu
Left = 104
Top = 24
object MenuItem1: TMenuItem
Caption = 'File'
object MenuItem2: TMenuItem
Caption = 'New'
OnClick = MenuItem2Click
end
object MenuItem5: TMenuItem
Caption = 'Load'
OnClick = MenuItem5Click
end
object MenuItem3: TMenuItem
Caption = 'Save'
ShortCut = 16467
OnClick = MenuItem3Click
end
object MenuItem4: TMenuItem
Caption = 'Save as'
OnClick = MenuItem4Click
end
object MenuItem6: TMenuItem
Caption = 'Quit'
OnClick = MenuItem6Click
end
end
end
object OpenPictureDialog1: TOpenPictureDialog
Filter = 'Grafik (*.png;*.xpm;*.bmp;*.cur;*.ico;*.icns;*.jpeg;*.jpg;*.jpe;*.jfif;*.tif;*.tiff;*.gif;*.pbm;*.pgm;*.ppm;*.tga)|*.png;*.xpm;*.bmp;*.cur;*.ico;*.icns;*.jpeg;*.jpg;*.jpe;*.jfif;*.tif;*.tiff;*.gif;*.pbm;*.pgm;*.ppm;*.tga|Portable Network Graphic (*.png)|*.png'
Left = 104
Top = 80
end
object SaveDialog1: TSaveDialog
DefaultExt = '.ani'
Filter = 'Animation file|*.ani|All files|*.*'
Left = 106
Top = 140
end
object OpenDialog1: TOpenDialog
DefaultExt = '.ani'
Filter = 'Animation file|*.ani|All files|*.*'
Left = 104
Top = 201
end
object ColorDialog1: TColorDialog
Color = clBlack
CustomColors.Strings = (
'ColorA=000000'
'ColorB=000080'
'ColorC=008000'
'ColorD=008080'
'ColorE=800000'
'ColorF=800080'
'ColorG=808000'
'ColorH=808080'
'ColorI=C0C0C0'
'ColorJ=0000FF'
'ColorK=00FF00'
'ColorL=00FFFF'
'ColorM=FF0000'
'ColorN=FF00FF'
'ColorO=FFFF00'
'ColorP=FFFFFF'
'ColorQ=C0DCC0'
'ColorR=F0CAA6'
'ColorS=F0FBFF'
'ColorT=A4A0A0'
)
Left = 579
Top = 353
end
object SaveDialog2: TSaveDialog
DefaultExt = '.png'
Filter = 'Portable Network File|*.png|All Files|*.*'
Left = 320
Top = 96
end
end