-
Notifications
You must be signed in to change notification settings - Fork 16
/
ReplaceColors.dfm
251 lines (251 loc) · 4.88 KB
/
ReplaceColors.dfm
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
object Replace: TReplace
Left = 385
Top = 620
Width = 450
Height = 298
Caption = 'Replace Color(s)'
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'MS Sans Serif'
Font.Style = []
OldCreateOrder = False
Position = poDesktopCenter
PixelsPerInch = 96
TextHeight = 13
object Label9: TLabel
Left = 117
Top = 208
Width = 207
Height = 13
Caption = 'Warning: Undo only works for "Current Tile"'
end
object G1: TGroupBox
Left = 12
Top = 12
Width = 201
Height = 185
Caption = 'Find'
TabOrder = 3
object L1: TLabel
Left = 16
Top = 20
Width = 59
Height = 13
Caption = 'Color to find:'
end
object L3: TLabel
Left = 32
Top = 108
Width = 23
Height = 13
Caption = 'Red:'
end
object FindColor1: TShape
Left = 128
Top = 16
Width = 57
Height = 22
OnMouseDown = ColorMouseDown
end
object FindColor2: TShape
Left = 128
Top = 45
Width = 57
Height = 22
Visible = False
OnMouseDown = ColorMouseDown
end
object Label1: TLabel
Left = 16
Top = 84
Width = 87
Height = 13
Caption = 'Tolerance (0..255)'
end
object Label2: TLabel
Left = 32
Top = 132
Width = 32
Height = 13
Caption = 'Green:'
end
object Label3: TLabel
Left = 32
Top = 156
Width = 24
Height = 13
Caption = 'Blue:'
end
object TolGreen: TSpinEdit
Left = 128
Top = 128
Width = 57
Height = 22
MaxValue = 255
MinValue = 0
TabOrder = 2
Value = 0
end
object FindRange: TCheckBox
Left = 32
Top = 48
Width = 57
Height = 17
Caption = 'Range'
TabOrder = 0
OnClick = FindRangeClick
end
object TolRed: TSpinEdit
Left = 128
Top = 104
Width = 57
Height = 22
MaxValue = 255
MinValue = 0
TabOrder = 1
Value = 0
end
object TolBlue: TSpinEdit
Left = 128
Top = 152
Width = 57
Height = 22
MaxValue = 255
MinValue = 0
TabOrder = 3
Value = 0
end
end
object G2: TGroupBox
Left = 228
Top = 12
Width = 201
Height = 185
Caption = 'Replace'
TabOrder = 4
object Label4: TLabel
Left = 16
Top = 20
Width = 94
Height = 13
Caption = 'Replace color with::'
end
object ReplaceColor1: TShape
Left = 128
Top = 16
Width = 57
Height = 22
OnMouseDown = ColorMouseDown
end
object ReplaceColor2: TShape
Left = 128
Top = 45
Width = 57
Height = 22
Visible = False
OnMouseDown = ColorMouseDown
end
object Label5: TLabel
Left = 16
Top = 84
Width = 100
Height = 13
Caption = 'Add Color (-255..255)'
end
object Label6: TLabel
Left = 32
Top = 108
Width = 23
Height = 13
Caption = 'Red:'
end
object Label7: TLabel
Left = 32
Top = 132
Width = 32
Height = 13
Caption = 'Green:'
end
object Label8: TLabel
Left = 32
Top = 156
Width = 24
Height = 13
Caption = 'Blue:'
end
object ReplaceRange: TCheckBox
Left = 32
Top = 48
Width = 57
Height = 17
Caption = 'Range'
TabOrder = 0
OnClick = ReplaceRangeClick
end
object AddBlue: TSpinEdit
Left = 128
Top = 152
Width = 57
Height = 22
MaxValue = 255
MinValue = -255
TabOrder = 3
Value = 0
end
object AddGreen: TSpinEdit
Left = 128
Top = 128
Width = 57
Height = 22
MaxValue = 255
MinValue = -255
TabOrder = 2
Value = 0
end
object AddRed: TSpinEdit
Left = 128
Top = 104
Width = 57
Height = 22
MaxValue = 255
MinValue = -255
TabOrder = 1
Value = 0
end
end
object CurrentTileOnly: TButton
Left = 49
Top = 232
Width = 105
Height = 25
Caption = '&Current Tile'
Default = True
TabOrder = 0
OnClick = CurrentTileOnlyClick
end
object ReplaceAll: TButton
Left = 169
Top = 232
Width = 105
Height = 25
Caption = 'Replace &All'
TabOrder = 1
OnClick = ReplaceAllClick
end
object Cancel: TButton
Left = 289
Top = 232
Width = 105
Height = 25
Caption = 'Cancel'
TabOrder = 2
OnClick = CancelClick
end
object ColorDialog: TColorDialog
Ctl3D = True
Left = 208
Top = 8
end
end