-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathfontsheetexport.lfm
More file actions
452 lines (452 loc) · 9.5 KB
/
fontsheetexport.lfm
File metadata and controls
452 lines (452 loc) · 9.5 KB
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
object FontSheetExportForm: TFontSheetExportForm
Left = 308
Height = 703
Top = 353
Width = 1233
Caption = 'Font Sheet Export'
ClientHeight = 703
ClientWidth = 1233
OnActivate = FormActivate
OnCreate = FormCreate
OnDestroy = FormDestroy
Position = poOwnerFormCenter
LCLVersion = '3.4.0.0'
object Splitter1: TSplitter
AnchorSideLeft.Control = Owner
AnchorSideTop.Control = Owner
AnchorSideRight.Control = Owner
AnchorSideRight.Side = asrBottom
Cursor = crVSplit
Left = 0
Height = 16
Top = 162
Width = 1233
Align = alNone
Anchors = [akLeft, akRight]
AutoSnap = False
Color = 11625216
ParentColor = False
ResizeAnchor = akBottom
end
object ScrollBox1: TScrollBox
AnchorSideLeft.Control = Owner
AnchorSideTop.Control = Splitter1
AnchorSideTop.Side = asrBottom
AnchorSideRight.Control = Owner
AnchorSideRight.Side = asrBottom
AnchorSideBottom.Control = Owner
AnchorSideBottom.Side = asrBottom
Left = 0
Height = 525
Top = 178
Width = 1233
HorzScrollBar.Page = 105
HorzScrollBar.Tracking = True
VertScrollBar.Page = 105
VertScrollBar.Tracking = True
Anchors = [akTop, akLeft, akRight, akBottom]
BorderStyle = bsNone
ClientHeight = 525
ClientWidth = 1233
TabOrder = 1
object FontSheetPaintBox: TPaintBox
Left = 0
Height = 105
Top = 0
Width = 105
OnPaint = FontSheetPaintBoxPaint
end
end
object Panel1: TPanel
AnchorSideLeft.Control = Owner
AnchorSideTop.Control = Owner
AnchorSideRight.Control = ZoomTrackBar
AnchorSideBottom.Control = Splitter1
Left = 0
Height = 162
Top = 0
Width = 1176
Anchors = [akTop, akLeft, akRight, akBottom]
ClientHeight = 162
ClientWidth = 1176
TabOrder = 2
object StaticText1: TStaticText
Left = 16
Height = 17
Top = 20
Width = 65
Caption = 'Font Sheet'
TabOrder = 0
end
object FontSheet: TComboBox
Left = 88
Height = 23
Top = 20
Width = 100
ItemHeight = 15
ItemIndex = 0
Items.Strings = (
'320X200'
'640X200'
'640X350'
'640X480'
'800X600'
'1024X768'
'Custom'
)
Style = csDropDownList
TabOrder = 1
Text = '320X200'
OnChange = FontSheetChange
end
object StaticText2: TStaticText
Left = 208
Height = 17
Top = 20
Width = 65
Caption = 'Char Size'
TabOrder = 2
end
object SpriteSize: TComboBox
Left = 280
Height = 23
Top = 20
Width = 100
ItemHeight = 15
ItemIndex = 7
Items.Strings = (
'8X8'
'16X16'
'32X32'
'64X64'
'128X128'
'256X256'
'Custom'
'Auto'
)
Style = csDropDownList
TabOrder = 3
Text = 'Auto'
OnChange = FontSheetChange
end
object StaticText3: TStaticText
Left = 408
Height = 17
Top = 20
Width = 65
Caption = 'Direction'
TabOrder = 4
end
object Direction: TComboBox
Left = 464
Height = 23
Top = 20
Width = 100
ItemHeight = 15
ItemIndex = 0
Items.Strings = (
'Horizontal'
'Vertical'
)
Style = csDropDownList
TabOrder = 5
Text = 'Horizontal'
OnChange = DirectionChange
end
object StaticText4: TStaticText
Left = 584
Height = 17
Top = 24
Width = 137
Caption = 'Items Per Row / Column'
TabOrder = 6
end
object ItemsPerRow: TSpinEdit
Left = 728
Height = 23
Top = 24
Width = 48
MaxValue = 1000
MinValue = 1
TabOrder = 7
Value = 5
end
object Apply: TButton
Left = 1056
Height = 46
Top = 49
Width = 80
Caption = 'Apply'
TabOrder = 8
OnClick = ApplyClick
end
object ExportToClipBoard: TButton
Left = 433
Height = 25
Top = 75
Width = 131
Caption = 'Export to Clipboard'
TabOrder = 9
OnClick = ExportToClipboardClick
end
object ExportToFile: TButton
Left = 433
Height = 25
Top = 104
Width = 131
Caption = 'Export to File'
TabOrder = 10
OnClick = ExportToFileClick
end
object DescExportToClipboard: TButton
Left = 688
Height = 25
Top = 75
Width = 131
Caption = 'Export To Clipboard'
Enabled = False
TabOrder = 11
end
object StaticText5: TStaticText
Left = 584
Height = 17
Top = 56
Width = 129
Caption = 'Export Description File'
TabOrder = 12
end
object DescriptionFile: TComboBox
Left = 584
Height = 23
Top = 75
Width = 100
Enabled = False
ItemHeight = 15
ItemIndex = 0
Items.Strings = (
'BM Font'
)
Style = csDropDownList
TabOrder = 13
Text = 'BM Font'
OnChange = FontSheetChange
end
object StaticText6: TStaticText
Left = 408
Height = 17
Top = 56
Width = 105
Caption = 'Font Sheet Export'
TabOrder = 14
end
object StaticText7: TStaticText
Left = 16
Height = 17
Top = 56
Width = 136
Caption = 'Custom Font Sheet Size'
ParentBidiMode = False
TabOrder = 15
end
object StaticText8: TStaticText
Left = 8
Height = 17
Top = 77
Width = 65
Alignment = taRightJustify
Caption = 'Width'
TabOrder = 16
end
object StaticText9: TStaticText
Left = 8
Height = 17
Top = 112
Width = 65
Alignment = taRightJustify
Caption = 'Height'
TabOrder = 17
end
object CSWidth: TSpinEdit
Left = 80
Height = 23
Top = 80
Width = 64
MaxValue = 4000
MinValue = 256
OnChange = FontSheetChange
TabOrder = 18
Value = 2000
end
object CSHeight: TSpinEdit
Left = 80
Height = 23
Top = 112
Width = 64
MaxValue = 4000
MinValue = 256
OnChange = FontSheetChange
TabOrder = 19
Value = 2000
end
object DescExportToFile: TButton
Left = 688
Height = 25
Top = 104
Width = 131
Caption = 'Export to File'
TabOrder = 20
OnClick = ExportToBMFontFiles
end
object Label1: TLabel
Left = 232
Height = 15
Top = 80
Width = 32
Caption = 'Width'
end
object Label2: TLabel
Left = 232
Height = 15
Top = 112
Width = 36
Caption = 'Height'
end
object SpinEditCustomFontWidth: TSpinEditEx
Left = 277
Height = 23
Top = 80
Width = 67
MaxLength = 0
NumbersOnly = True
TabOrder = 21
OnChange = FontSheetChange
MaxValue = 256
MinValue = 8
NullValue = 0
Value = 48
end
object SpinEditCustomFontHeight: TSpinEditEx
Left = 277
Height = 23
Top = 112
Width = 67
MaxLength = 0
NumbersOnly = True
TabOrder = 22
OnChange = FontSheetChange
MaxValue = 256
MinValue = 8
NullValue = 0
Value = 48
end
object Label3: TLabel
Left = 208
Height = 15
Top = 56
Width = 119
Caption = 'Custom Character Size'
end
object Button1: TButton
Left = 840
Height = 25
Top = 40
Width = 131
Caption = 'Select Font'
TabOrder = 23
OnClick = Button1Click
end
object SpinStartChar: TSpinEditEx
Left = 904
Height = 23
Top = 76
Width = 67
MaxLength = 0
NumbersOnly = True
TabOrder = 24
MaxValue = 255
NullValue = 0
Value = 32
end
object SpinEndChar: TSpinEditEx
Left = 904
Height = 23
Top = 104
Width = 67
MaxLength = 0
NumbersOnly = True
TabOrder = 25
MaxValue = 255
NullValue = 0
Value = 127
end
object Label4: TLabel
Left = 840
Height = 15
Top = 83
Width = 52
Caption = 'Start Char'
end
object Label6: TLabel
Left = 840
Height = 15
Top = 112
Width = 48
Caption = 'End Char'
end
object SavebackgroundAsTransparent: TCheckBox
Left = 688
Height = 19
Top = 136
Width = 245
Caption = 'Save Background Color (Black) Transparent'
Checked = True
State = cbChecked
TabOrder = 26
end
end
object ZoomTrackBar: TTrackBar
AnchorSideRight.Control = Owner
AnchorSideRight.Side = asrBottom
Left = 1176
Height = 100
Top = 20
Width = 41
Min = 1
OnChange = ZoomTrackBarChange
Orientation = trVertical
Position = 3
TickMarks = tmTopLeft
Anchors = [akRight]
BorderSpacing.Right = 16
TabOrder = 3
end
object Label5: TLabel
Left = 208
Height = 15
Top = 56
Width = 119
Caption = 'Custom Character Size'
end
object SaveDialog1: TSaveDialog
Title = 'Export'
Options = [ofOverwritePrompt, ofEnableSizing, ofViewDetail]
Left = 1142
Top = 304
end
object SaveDialog2: TSaveDialog
Title = 'Export Description File'
Options = [ofOverwritePrompt, ofEnableSizing, ofViewDetail]
Left = 1142
Top = 248
end
object FontDialog1: TFontDialog
Font.Color = clWhite
Font.Quality = fqNonAntialiased
MinFontSize = 0
MaxFontSize = 0
Options = [fdEffects, fdApplyButton]
OnApplyClicked = FontDialog1ApplyClicked
Left = 1142
Top = 200
end
end