-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathspriteimport.lfm
252 lines (252 loc) · 5.64 KB
/
spriteimport.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
object SpriteImportForm: TSpriteImportForm
Left = 391
Height = 620
Top = 393
Width = 1165
Caption = 'Sprite Sheet Import'
ClientHeight = 620
ClientWidth = 1165
OnCreate = FormCreate
LCLVersion = '3.4.0.0'
object TopPanel: TPanel
AnchorSideBottom.Control = SpriteSheetScrollBox
Left = 0
Height = 147
Top = 0
Width = 1100
Anchors = [akTop, akLeft, akRight, akBottom]
ClientHeight = 147
ClientWidth = 1100
ParentFont = False
TabOrder = 0
object SpriteImage: TImage
Left = 8
Height = 128
Top = 8
Width = 128
end
object OpenSpriteSheet: TButton
Left = 160
Height = 25
Top = 13
Width = 166
Caption = 'Import Sprite Sheet'
ParentFont = False
TabOrder = 0
OnClick = OpenSpriteSheetClick
end
object SpriteSizeLabel: TLabel
Left = 401
Height = 15
Top = 19
Width = 53
Caption = 'Sprite Size'
ParentColor = False
ParentFont = False
end
object SpriteSizeComboBox: TComboBox
Left = 463
Height = 23
Top = 13
Width = 100
ItemHeight = 15
ItemIndex = 2
Items.Strings = (
'8 X 8'
'16 X 16'
'32 X 32'
'64 X 64'
'128 X 128'
'256 X 256'
'Custom'
)
ParentFont = False
Style = csDropDownList
TabOrder = 1
Text = '32 X 32'
OnChange = SpriteSizeComboBoxChange
end
object NewPaletteComboBox: TComboBox
Left = 776
Height = 23
Top = 13
Width = 237
ItemHeight = 15
ItemIndex = 1
Items.Strings = (
'New Palette(From Clip Area)'
'New Palette(From Entire Image)'
'Use Current Sprite Palette'
)
ParentFont = False
Style = csDropDownList
TabOrder = 2
Text = 'New Palette(From Entire Image)'
OnChange = NewPaletteComboBoxChange
end
object PaletteComboBox: TComboBox
Left = 616
Height = 23
Top = 13
Width = 134
ItemHeight = 15
ItemIndex = 4
Items.Strings = (
'Mono Palette'
'CGA0 Palette'
'CGA1 Palette'
'EGA Palette'
'VGA Palette'
'VGA Palette 256'
'XGA Palette'
'XGA Palette 256'
'Amiga Palette 32'
'Amiga Palette 16'
'Amiga Palette 8'
'Amiga Palette 4'
'Amiga Palette 2'
)
ParentFont = False
Style = csDropDownList
TabOrder = 3
Text = 'VGA Palette'
OnChange = PaletteComboBoxChange
end
object ImportFromClipboard: TButton
Left = 160
Height = 25
Top = 48
Width = 166
Caption = 'Import From Clipboard'
ParentFont = False
TabOrder = 4
OnClick = ImportFromClipboardClick
end
object CheckBoxDisplayGrid: TCheckBox
Left = 616
Height = 19
Top = 48
Width = 81
Caption = 'Display Grid'
Checked = True
State = cbChecked
TabOrder = 5
OnChange = CheckBoxDisplayGridChange
end
object CheckBoxSnapToGrid: TCheckBox
Left = 616
Height = 19
Top = 80
Width = 83
Caption = 'Snap to Grid'
Checked = True
State = cbChecked
TabOrder = 6
end
object StatusBar1: TStatusBar
AnchorSideLeft.Control = SpriteImage
AnchorSideLeft.Side = asrBottom
AnchorSideRight.Control = TopPanel
AnchorSideRight.Side = asrBottom
Left = 146
Height = 23
Top = 112
Width = 943
Align = alNone
Anchors = [akTop, akLeft, akRight]
BorderSpacing.Around = 10
Panels = <>
end
object SpinEditWidth: TSpinEditEx
Left = 464
Height = 23
Top = 48
Width = 100
MaxLength = 0
NumbersOnly = True
TabOrder = 8
OnChange = SpinEditWidthHeightChange
MaxValue = 256
MinValue = 8
NullValue = 0
Value = 48
end
object SpinEditHeight: TSpinEditEx
Left = 464
Height = 23
Top = 80
Width = 99
MaxLength = 0
NumbersOnly = True
TabOrder = 9
OnChange = SpinEditWidthHeightChange
MaxValue = 256
MinValue = 8
NullValue = 0
Value = 48
end
object Label1: TLabel
Left = 344
Height = 15
Top = 56
Width = 110
Caption = 'Custom Sprite Width'
end
object Label2: TLabel
Left = 340
Height = 15
Top = 80
Width = 114
Caption = 'Custom Sprite Height'
end
end
object SpriteSheetScrollBox: TScrollBox
AnchorSideLeft.Control = Owner
AnchorSideRight.Control = Owner
AnchorSideRight.Side = asrBottom
AnchorSideBottom.Control = Owner
AnchorSideBottom.Side = asrBottom
Left = 0
Height = 473
Top = 147
Width = 1165
HorzScrollBar.Page = 105
HorzScrollBar.Tracking = True
VertScrollBar.Page = 105
VertScrollBar.Tracking = True
Anchors = [akTop, akLeft, akRight, akBottom]
BorderStyle = bsNone
ClientHeight = 473
ClientWidth = 1165
ParentFont = False
TabOrder = 1
object SpriteSheetPaintBox: TPaintBox
Cursor = crCross
Left = 0
Height = 105
Top = 0
Width = 105
OnClick = SpriteSheetPaintBoxClick
OnMouseMove = SpriteSheetPaintBoxMouseMove
OnPaint = SpriteSheetPaintBoxPaint
end
end
object ZoomTrackBar: TTrackBar
Left = 1115
Height = 100
Top = 19
Width = 25
Min = 1
OnChange = ZoomTrackBarChange
Orientation = trVertical
Position = 5
TickMarks = tmTopLeft
Anchors = [akTop, akRight]
ParentFont = False
TabOrder = 2
end
object OpenDialog1: TOpenDialog
Left = 1094
Top = 186
end
end