-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBoxcam.jsx
More file actions
484 lines (453 loc) · 69.8 KB
/
Boxcam.jsx
File metadata and controls
484 lines (453 loc) · 69.8 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
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
var isKBarRunning = (typeof kbar !== 'undefined');
//set up settings
if (!app.settings.haveSetting("Boxcam","customSize"))
app.settings.saveSetting("Boxcam","customSize",0)
if (!app.settings.haveSetting("Boxcam","customSizeX"))
app.settings.saveSetting("Boxcam","customSizeX",0)
if (!app.settings.haveSetting("Boxcam","customSizeY"))
app.settings.saveSetting("Boxcam","customSizeY",0)
if (!app.settings.haveSetting("Boxcam","cleanUI"))
app.settings.saveSetting("Boxcam","cleanUI",0)
function boxcamUI(thisObj) {
var bc_version = "2.8";
var bc_hiya = "hi there whoever's reading this code :3";
var bc_customSize = Boolean(parseInt(app.settings.getSetting("Boxcam","customSize")));
var bc_cleanUI = true; //Boolean(parseInt(app.settings.getSetting("Boxcam","cleanUI")));
var bc_customSizeX = parseFloat(app.settings.getSetting("Boxcam","customSizeX"));
var bc_customSizeY = parseFloat(app.settings.getSetting("Boxcam","customSizeY"));
//https://betravis.github.io/shape-tools/path-to-polygon/
var bc_create_icon = [
"2.455 9.400 2.295 9.417 2.145 9.464 2.010 9.538 1.891 9.636 1.793 9.754 1.719 9.890 1.673 10.039 1.656 10.199 1.656 11.949 1.656 13.699 1.656 15.448 1.656 17.198 1.656 18.948 1.656 20.698 1.656 22.448 1.656 24.197 1.673 24.357 1.719 24.507 1.793 24.643 1.891 24.761 2.010 24.859 2.145 24.933 2.295 24.980 2.455 24.996 5.149 24.996 7.842 24.996 10.536 24.996 13.229 24.996 15.923 24.996 18.617 24.996 21.310 24.996 24.004 24.996 24.164 24.980 24.314 24.933 24.449 24.859 24.568 24.761 24.665 24.643 24.740 24.507 24.786 24.357 24.803 24.197 24.803 22.448 24.803 20.698 24.803 18.948 24.803 17.198 24.803 15.448 24.803 13.699 24.803 11.949 24.803 10.199 24.786 10.039 24.740 9.890 24.665 9.754 24.568 9.636 24.449 9.538 24.314 9.464 24.164 9.417 24.004 9.400 21.310 9.400 18.617 9.400 15.923 9.400 13.229 9.400 10.536 9.400 7.842 9.400 5.149 9.400 2.455 9.400 2.455 9.930 5.149 9.930 7.842 9.930 10.536 9.930 13.229 9.930 15.923 9.930 18.617 9.930 21.310 9.930 24.004 9.930 24.060 9.935 24.111 9.950 24.157 9.974 24.196 10.007 24.229 10.046 24.253 10.092 24.268 10.143 24.273 10.199 24.273 11.949 24.273 13.699 24.273 15.448 24.273 17.198 24.273 18.948 24.273 20.698 24.273 22.448 24.273 24.197 24.268 24.253 24.253 24.304 24.229 24.350 24.196 24.390 24.157 24.422 24.111 24.446 24.060 24.462 24.004 24.467 21.310 24.467 18.617 24.467 15.923 24.467 13.229 24.467 10.536 24.467 7.842 24.467 5.149 24.467 2.455 24.467 2.399 24.462 2.348 24.446 2.302 24.422 2.262 24.390 2.230 24.350 2.206 24.304 2.191 24.253 2.186 24.197 2.186 22.448 2.186 20.698 2.186 18.948 2.186 17.198 2.186 15.448 2.186 13.699 2.186 11.949 2.186 10.199 2.191 10.143 2.206 10.092 2.230 10.046 2.262 10.007 2.302 9.974 2.348 9.950 2.399 9.935 2.455 9.930 2.455 9.930",
"21.794 20.059 21.787 20.059 21.780 20.060 21.772 20.061 21.765 20.062 21.758 20.062 21.751 20.063 21.744 20.064 21.737 20.065 21.730 20.067 21.723 20.069 21.717 20.071 21.710 20.073 21.703 20.076 21.697 20.078 21.690 20.080 21.683 20.082 21.677 20.086 21.671 20.089 21.665 20.092 21.659 20.096 21.653 20.099 21.647 20.103 21.640 20.106 21.634 20.109 21.629 20.114 21.624 20.118 21.618 20.123 21.613 20.127 21.607 20.132 21.602 20.136 21.597 20.141 21.591 20.145 21.587 20.151 21.582 20.156 21.578 20.162 21.573 20.167 21.569 20.172 21.564 20.178 21.560 20.183 21.555 20.189 21.552 20.195 21.548 20.201 21.545 20.207 21.542 20.213 21.538 20.220 21.535 20.226 21.531 20.232 21.528 20.238 21.526 20.245 21.524 20.252 21.521 20.258 21.519 20.265 21.517 20.272 21.515 20.278 21.513 20.285 21.510 20.292 21.510 20.299 21.509 20.306 21.508 20.313 21.507 20.321 21.507 20.328 21.506 20.335 21.505 20.342 21.504 20.349 21.504 20.401 21.504 20.452 21.504 20.503 21.504 20.554 21.504 20.605 21.504 20.656 21.504 20.708 21.504 20.759 21.504 20.810 21.504 20.861 21.504 20.912 21.504 20.963 21.504 21.014 21.504 21.066 21.504 21.117 21.504 21.168 21.504 21.219 21.504 21.270 21.504 21.321 21.504 21.372 21.504 21.424 21.504 21.475 21.504 21.526 21.504 21.577 21.504 21.628 21.504 21.679 21.504 21.731 21.504 21.782 21.504 21.833 21.504 21.884 21.504 21.935 21.504 21.986 21.504 22.037 21.504 22.089 21.504 22.140 21.504 22.191 21.504 22.242 21.504 22.293 21.504 22.344 21.504 22.395 21.504 22.447 21.504 22.498 21.504 22.549 21.504 22.700 21.504 22.751 21.504 22.702 21.504 22.754 21.504 22.805 21.504 22.856 21.504 22.907 21.504 22.958 21.504 23.009 21.504 23.060 21.504 23.112 21.504 23.163 21.504 23.214 21.504 23.265 21.504 23.316 21.504 23.367 21.504 23.418 21.504 23.470 21.504 23.521 21.504 23.572 21.504 23.623 21.505 23.630 21.506 23.637 21.507 23.644 21.507 23.652 21.508 23.659 21.509 23.666 21.510 23.673 21.510 23.680 21.513 23.687 21.515 23.693 21.517 23.700 21.519 23.707 21.521 23.714 21.524 23.720 21.526 23.727 21.528 23.734 21.531 23.740 21.535 23.746 21.538 23.752 21.542 23.758 21.545 23.764 21.548 23.770 21.552 23.776 21.555 23.782 21.560 23.788 21.564 23.793 21.569 23.799 21.573 23.804 21.578 23.809 21.582 23.815 21.587 23.820 21.591 23.826 21.597 23.830 21.602 23.835 21.607 23.839 21.613 23.844 21.618 23.848 21.624 23.853 21.629 23.857 21.634 23.862 21.640 23.865 21.647 23.868 21.653 23.872 21.659 23.875 21.665 23.879 21.671 23.882 21.677 23.885 21.683 23.889 21.690 23.891 21.697 23.893 21.703 23.895 21.710 23.898 21.717 23.900 21.723 23.902 21.730 23.904 21.737 23.906 21.744 23.907 21.751 23.908 21.758 23.909 21.765 23.909 21.772 23.910 21.780 23.911 21.787 23.912 21.794 23.912 21.801 23.912 21.808 23.911 21.815 23.910 21.822 23.909 21.829 23.909 21.836 23.908 21.844 23.907 21.851 23.906 21.857 23.904 21.864 23.902 21.871 23.900 21.877 23.898 21.884 23.895 21.891 23.893 21.898 23.891 21.904 23.889 21.910 23.885 21.916 23.882 21.923 23.879 21.929 23.875 21.935 23.872 21.941 23.868 21.947 23.865 21.953 23.862 21.958 23.857 21.964 23.853 21.969 23.848 21.975 23.844 21.980 23.839 21.985 23.835 21.991 23.830 21.996 23.826 22.001 23.820 22.005 23.815 22.010 23.809 22.014 23.804 22.019 23.799 22.023 23.793 22.028 23.788 22.032 23.782 22.036 23.776 22.039 23.770 22.042 23.764 22.046 23.758 22.049 23.752 22.053 23.746 22.056 23.740 22.059 23.734 22.062 23.727 22.064 23.720 22.066 23.714 22.068 23.707 22.070 23.700 22.073 23.693 22.075 23.687 22.077 23.680 22.078 23.673 22.079 23.666 22.079 23.659 22.080 23.652 22.081 23.644 22.082 23.637 22.082 23.630 22.083 23.623 22.083 23.572 22.083 23.521 22.083 23.470 22.083 23.418 22.083 23.367 22.083 23.316 22.083 23.265 22.083 23.214 22.083 23.163 22.083 23.112 22.083 23.060 22.083 23.009 22.083 22.958 22.083 22.907 22.083 22.856 22.083 22.805 22.083 22.754 22.083 22.702 22.083 22.751 22.083 22.700 22.083 22.549 22.083 22.498 22.083 22.447 22.083 22.395 22.083 22.344 22.083 22.293 22.083 22.242 22.083 22.191 22.083 22.140 22.083 22.089 22.083 22.037 22.083 21.986 22.083 21.935 22.083 21.884 22.083 21.833 22.083 21.782 22.083 21.731 22.083 21.679 22.083 21.628 22.083 21.577 22.083 21.526 22.083 21.475 22.083 21.424 22.083 21.372 22.083 21.321 22.083 21.270 22.083 21.219 22.083 21.168 22.083 21.117 22.083 21.066 22.083 21.014 22.083 20.963 22.083 20.912 22.083 20.861 22.083 20.810 22.083 20.759 22.083 20.708 22.083 20.656 22.083 20.605 22.083 20.554 22.083 20.503 22.083 20.452 22.083 20.401 22.083 20.349 22.082 20.342 22.082 20.335 22.081 20.328 22.080 20.321 22.079 20.313 22.079 20.306 22.078 20.299 22.077 20.292 22.075 20.285 22.073 20.278 22.070 20.272 22.068 20.265 22.066 20.258 22.064 20.252 22.062 20.245 22.059 20.238 22.056 20.232 22.053 20.226 22.049 20.220 22.046 20.213 22.042 20.207 22.039 20.201 22.036 20.195 22.032 20.189 22.028 20.183 22.023 20.178 22.019 20.172 22.014 20.167 22.010 20.162 22.005 20.156 22.001 20.151 21.996 20.145 21.991 20.141 21.985 20.136 21.980 20.132 21.975 20.127 21.969 20.123 21.964 20.118 21.958 20.114 21.953 20.109 21.947 20.106 21.941 20.103 21.935 20.099 21.929 20.096 21.923 20.092 21.916 20.089 21.910 20.086 21.904 20.082 21.898 20.080 21.891 20.078 21.884 20.076 21.877 20.073 21.871 20.071 21.864 20.069 21.857 20.067 21.851 20.065 21.844 20.064 21.836 20.063 21.829 20.062 21.822 20.062 21.815 20.061 21.808 20.060 21.801 20.059 21.794 20.059 21.794 20.059 21.794 20.059 21.794 20.059 21.794 20.059 21.794 20.059 21.794 20.059 21.794 20.059 21.794 20.059",
"19.868 21.986 19.869 21.993 19.869 22.001 19.870 22.008 19.871 22.015 19.872 22.022 19.872 22.029 19.873 22.036 19.874 22.043 19.876 22.050 19.878 22.057 19.881 22.063 19.883 22.070 19.885 22.077 19.887 22.083 19.889 22.090 19.892 22.097 19.895 22.103 19.898 22.109 19.902 22.115 19.905 22.121 19.909 22.127 19.912 22.133 19.915 22.140 19.919 22.146 19.923 22.151 19.928 22.156 19.932 22.162 19.937 22.167 19.941 22.173 19.946 22.178 19.950 22.183 19.955 22.189 19.960 22.193 19.966 22.198 19.971 22.202 19.976 22.207 19.982 22.211 19.987 22.216 19.993 22.220 19.998 22.225 20.004 22.228 20.010 22.232 20.016 22.235 20.022 22.238 20.028 22.242 20.035 22.245 20.041 22.249 20.047 22.252 20.053 22.254 20.060 22.256 20.067 22.259 20.074 22.261 20.080 22.263 20.087 22.265 20.094 22.267 20.100 22.270 20.107 22.270 20.115 22.271 20.122 22.272 20.129 22.273 20.136 22.273 20.143 22.274 20.150 22.275 20.157 22.276 20.208 22.276 20.260 22.276 20.311 22.276 20.362 22.276 20.413 22.276 20.464 22.276 20.515 22.276 20.566 22.276 20.618 22.276 20.669 22.276 20.720 22.276 20.771 22.276 20.822 22.276 20.873 22.276 20.925 22.276 20.976 22.276 21.027 22.276 21.078 22.276 21.129 22.276 21.180 22.276 21.231 22.276 21.283 22.276 21.334 22.276 21.385 22.276 21.436 22.276 21.487 22.276 21.538 22.276 21.589 22.276 21.641 22.276 21.692 22.276 21.743 22.276 21.794 22.276 21.845 22.276 21.896 22.276 21.948 22.276 21.999 22.276 22.050 22.276 22.101 22.276 22.152 22.276 22.203 22.276 22.254 22.276 22.306 22.276 22.357 22.276 22.408 22.276 22.459 22.276 22.510 22.276 22.561 22.276 22.712 22.276 22.764 22.276 22.715 22.276 22.766 22.276 22.817 22.276 22.868 22.276 22.919 22.276 22.971 22.276 23.022 22.276 23.073 22.276 23.124 22.276 23.175 22.276 23.226 22.276 23.277 22.276 23.329 22.276 23.380 22.276 23.431 22.276 23.438 22.275 23.445 22.274 23.452 22.273 23.460 22.273 23.467 22.272 23.474 22.271 23.481 22.270 23.488 22.270 23.495 22.267 23.502 22.265 23.509 22.263 23.515 22.261 23.522 22.259 23.529 22.256 23.535 22.254 23.542 22.252 23.548 22.249 23.554 22.245 23.561 22.242 23.567 22.238 23.573 22.235 23.579 22.232 23.585 22.228 23.592 22.225 23.597 22.220 23.602 22.216 23.608 22.211 23.613 22.207 23.619 22.202 23.624 22.198 23.629 22.193 23.635 22.189 23.639 22.183 23.644 22.178 23.648 22.173 23.653 22.167 23.657 22.162 23.662 22.156 23.666 22.151 23.671 22.146 23.674 22.140 23.678 22.133 23.681 22.127 23.684 22.121 23.688 22.115 23.691 22.109 23.695 22.103 23.698 22.097 23.700 22.090 23.702 22.083 23.705 22.077 23.707 22.070 23.709 22.063 23.711 22.057 23.713 22.050 23.716 22.043 23.716 22.036 23.717 22.029 23.718 22.022 23.719 22.015 23.719 22.008 23.720 22.001 23.721 21.994 23.722 21.986 23.721 21.979 23.720 21.972 23.719 21.965 23.719 21.958 23.718 21.950 23.717 21.943 23.716 21.936 23.716 21.929 23.713 21.922 23.711 21.915 23.709 21.909 23.707 21.902 23.705 21.895 23.702 21.889 23.700 21.882 23.698 21.875 23.695 21.869 23.691 21.863 23.688 21.857 23.684 21.850 23.681 21.844 23.678 21.838 23.674 21.832 23.671 21.826 23.666 21.820 23.662 21.815 23.657 21.809 23.653 21.804 23.648 21.799 23.644 21.793 23.639 21.788 23.635 21.782 23.629 21.778 23.624 21.773 23.619 21.769 23.613 21.764 23.608 21.760 23.602 21.755 23.597 21.751 23.592 21.746 23.585 21.743 23.579 21.740 23.573 21.736 23.567 21.733 23.561 21.729 23.554 21.726 23.548 21.723 23.542 21.719 23.535 21.717 23.529 21.715 23.522 21.713 23.515 21.710 23.509 21.708 23.502 21.706 23.495 21.704 23.488 21.702 23.481 21.701 23.474 21.700 23.467 21.699 23.460 21.699 23.452 21.698 23.445 21.697 23.438 21.696 23.431 21.696 23.380 21.696 23.329 21.696 23.277 21.696 23.226 21.696 23.175 21.696 23.124 21.696 23.073 21.696 23.022 21.696 22.971 21.696 22.919 21.696 22.868 21.696 22.817 21.696 22.766 21.696 22.715 21.696 22.764 21.696 22.712 21.696 22.561 21.696 22.510 21.696 22.459 21.696 22.408 21.696 22.357 21.696 22.306 21.696 22.254 21.696 22.203 21.696 22.152 21.696 22.101 21.696 22.050 21.696 21.999 21.696 21.948 21.696 21.896 21.696 21.845 21.696 21.794 21.696 21.743 21.696 21.692 21.696 21.641 21.696 21.589 21.696 21.538 21.696 21.487 21.696 21.436 21.696 21.385 21.696 21.334 21.696 21.283 21.696 21.231 21.696 21.180 21.696 21.129 21.696 21.078 21.696 21.027 21.696 20.976 21.696 20.925 21.696 20.873 21.696 20.822 21.696 20.771 21.696 20.720 21.696 20.669 21.696 20.618 21.696 20.566 21.696 20.515 21.696 20.464 21.696 20.413 21.696 20.362 21.696 20.311 21.696 20.260 21.696 20.208 21.696 20.157 21.696 20.150 21.696 20.143 21.697 20.136 21.698 20.129 21.699 20.122 21.699 20.115 21.700 20.107 21.701 20.100 21.702 20.094 21.704 20.087 21.706 20.080 21.708 20.074 21.710 20.067 21.713 20.060 21.715 20.053 21.717 20.047 21.719 20.041 21.723 20.035 21.726 20.028 21.729 20.022 21.733 20.016 21.736 20.010 21.740 20.004 21.743 19.998 21.746 19.993 21.751 19.987 21.755 19.982 21.760 19.976 21.764 19.971 21.769 19.966 21.773 19.960 21.778 19.955 21.782 19.950 21.788 19.946 21.793 19.941 21.799 19.937 21.804 19.932 21.809 19.928 21.815 19.923 21.820 19.919 21.826 19.915 21.832 19.912 21.838 19.909 21.844 19.905 21.850 19.902 21.857 19.898 21.863 19.895 21.869 19.892 21.875 19.889 21.882 19.887 21.889 19.885 21.895 19.883 21.902 19.881 21.909 19.878 21.915 19.876 21.922 19.874 21.929 19.873 21.936 19.872 21.943 19.872 21.950 19.871 21.958 19.870 21.965 19.869 21.972 19.869 21.979 19.868 21.986 19.868 21.986 19.868 21.986 19.868 21.986 19.868 21.986 19.868 21.986 19.868 21.986 19.868 21.986 19.868 21.986",
"7.621 14.029 7.468 14.045 7.326 14.089 7.197 14.160 7.085 14.252 6.992 14.365 6.921 14.494 6.877 14.636 6.861 14.789 6.861 15.391 6.861 15.993 6.861 16.595 6.861 17.197 6.861 17.799 6.861 18.401 6.861 19.003 6.861 19.605 6.877 19.758 6.921 19.901 6.992 20.030 7.085 20.143 7.197 20.236 7.326 20.307 7.468 20.352 7.621 20.367 8.678 20.367 9.735 20.367 10.792 20.367 11.849 20.367 12.906 20.367 13.962 20.367 15.019 20.367 16.076 20.367 16.229 20.352 16.371 20.307 16.500 20.236 16.613 20.143 16.706 20.030 16.776 19.901 16.820 19.758 16.836 19.605 16.836 19.003 16.836 18.401 16.836 17.799 16.836 17.197 16.836 16.595 16.836 15.993 16.836 15.391 16.836 14.789 16.820 14.636 16.776 14.494 16.706 14.365 16.613 14.252 16.500 14.160 16.371 14.089 16.229 14.045 16.076 14.029 15.019 14.029 13.962 14.029 12.906 14.029 11.849 14.029 10.792 14.029 9.735 14.029 8.678 14.029 7.621 14.029 7.621 14.414 8.678 14.414 9.735 14.414 10.792 14.414 11.849 14.414 12.906 14.414 13.962 14.414 15.019 14.414 16.076 14.414 16.153 14.421 16.224 14.443 16.289 14.477 16.344 14.522 16.390 14.577 16.424 14.641 16.446 14.712 16.453 14.789 16.453 15.391 16.453 15.993 16.453 16.595 16.453 17.197 16.453 17.799 16.453 18.401 16.453 19.003 16.453 19.605 16.446 19.682 16.424 19.754 16.390 19.818 16.344 19.873 16.289 19.919 16.224 19.953 16.153 19.975 16.076 19.982 15.019 19.982 13.962 19.982 12.906 19.982 11.849 19.982 10.792 19.982 9.735 19.982 8.678 19.982 7.621 19.982 7.544 19.975 7.473 19.953 7.409 19.919 7.353 19.873 7.308 19.818 7.273 19.754 7.252 19.682 7.244 19.605 7.244 19.003 7.244 18.401 7.244 17.799 7.244 17.197 7.244 16.595 7.244 15.993 7.244 15.391 7.244 14.789 7.252 14.712 7.273 14.641 7.308 14.577 7.353 14.522 7.409 14.477 7.473 14.443 7.544 14.421 7.621 14.414 7.621 14.414",
"19.373 14.559 19.358 14.561 19.344 14.565 19.330 14.569 19.317 14.575 19.304 14.582 19.291 14.589 19.279 14.598 19.268 14.608 18.925 14.913 18.582 15.218 18.239 15.523 17.896 15.828 17.552 16.133 17.209 16.439 16.866 16.744 16.523 17.049 16.494 17.081 16.473 17.118 16.461 17.157 16.457 17.197 16.461 17.238 16.473 17.277 16.494 17.314 16.523 17.346 16.866 17.651 17.209 17.956 17.552 18.261 17.896 18.567 18.239 18.872 18.582 19.177 18.925 19.482 19.268 19.787 19.318 19.820 19.373 19.836 19.428 19.835 19.480 19.820 19.526 19.792 19.563 19.751 19.588 19.701 19.598 19.641 19.598 19.030 19.598 18.419 19.598 17.809 19.598 17.198 19.598 16.588 19.598 15.977 19.598 15.366 19.598 14.756 19.593 14.712 19.579 14.672 19.558 14.636 19.530 14.606 19.497 14.582 19.458 14.566 19.417 14.558 19.373 14.559 19.373 14.559 19.373 14.559 19.373 14.559 19.373 14.559 19.373 14.559 19.373 14.559 19.373 14.559 19.373 14.559 19.199 15.199 19.199 15.699 19.199 16.199 19.199 16.698 19.199 17.198 19.199 17.698 19.199 18.198 19.199 18.698 19.199 19.197 18.918 18.947 18.638 18.697 18.357 18.447 18.076 18.197 17.795 17.947 17.515 17.697 17.234 17.447 16.953 17.197 17.234 16.948 17.515 16.698 17.795 16.448 18.076 16.198 18.357 15.948 18.638 15.699 18.918 15.449 19.199 15.199"
];
var bc_comp_icon = [
"2.455 9.375 2.295 9.391 2.145 9.438 2.010 9.512 1.891 9.610 1.793 9.729 1.719 9.864 1.673 10.014 1.656 10.174 1.656 11.924 1.656 13.673 1.656 15.423 1.656 17.173 1.656 18.923 1.656 20.672 1.656 22.422 1.656 24.172 1.673 24.332 1.719 24.482 1.793 24.617 1.891 24.736 2.010 24.833 2.145 24.908 2.295 24.954 2.455 24.971 5.149 24.971 7.842 24.971 10.536 24.971 13.229 24.971 15.923 24.971 18.617 24.971 21.310 24.971 24.004 24.971 24.164 24.954 24.314 24.908 24.449 24.833 24.568 24.736 24.666 24.617 24.740 24.482 24.786 24.332 24.803 24.172 24.803 22.422 24.803 20.672 24.803 18.923 24.803 17.173 24.803 15.423 24.803 13.673 24.803 11.924 24.803 10.174 24.786 10.014 24.740 9.864 24.666 9.729 24.568 9.610 24.449 9.512 24.314 9.438 24.164 9.391 24.004 9.375 21.310 9.375 18.617 9.375 15.923 9.375 13.229 9.375 10.536 9.375 7.842 9.375 5.149 9.375 2.455 9.375 2.455 9.904 5.149 9.904 7.842 9.904 10.536 9.904 13.229 9.904 15.923 9.904 18.617 9.904 21.310 9.904 24.004 9.904 24.060 9.910 24.111 9.925 24.157 9.949 24.196 9.981 24.229 10.021 24.253 10.067 24.268 10.118 24.273 10.174 24.273 11.924 24.273 13.673 24.273 15.423 24.273 17.173 24.273 18.923 24.273 20.672 24.273 22.422 24.273 24.172 24.268 24.228 24.253 24.279 24.229 24.325 24.196 24.364 24.157 24.397 24.111 24.421 24.060 24.436 24.004 24.441 21.310 24.441 18.617 24.441 15.923 24.441 13.229 24.441 10.536 24.441 7.842 24.441 5.149 24.441 2.455 24.441 2.399 24.436 2.348 24.421 2.302 24.397 2.263 24.364 2.230 24.325 2.206 24.279 2.191 24.228 2.186 24.172 2.186 22.422 2.186 20.672 2.186 18.923 2.186 17.173 2.186 15.423 2.186 13.673 2.186 11.924 2.186 10.174 2.191 10.118 2.206 10.067 2.230 10.021 2.263 9.981 2.302 9.949 2.348 9.925 2.399 9.910 2.455 9.904 2.455 9.904",
"13.078 16.877 12.514 16.934 11.988 17.098 11.512 17.357 11.096 17.700 10.753 18.115 10.494 18.591 10.331 19.117 10.273 19.682 10.331 20.246 10.494 20.772 10.753 21.248 11.096 21.664 11.512 22.006 11.988 22.265 12.514 22.429 13.078 22.486 13.642 22.429 14.168 22.265 14.645 22.006 15.060 21.664 15.403 21.248 15.662 20.772 15.826 20.246 15.883 19.682 15.826 19.117 15.662 18.591 15.403 18.115 15.060 17.700 14.645 17.357 14.168 17.098 13.642 16.934 13.078 16.877 13.078 16.877 13.078 17.406 13.538 17.452 13.965 17.585 14.352 17.794 14.688 18.072 14.966 18.408 15.175 18.795 15.307 19.222 15.354 19.682 15.307 20.141 15.175 20.569 14.966 20.955 14.688 21.292 14.352 21.569 13.965 21.779 13.538 21.911 13.078 21.957 12.719 21.911 12.191 21.779 11.805 21.569 11.468 21.292 11.191 20.955 10.981 20.569 10.849 20.141 10.803 19.682 10.849 19.222 10.981 18.795 11.191 18.408 11.468 18.072 11.805 17.794 12.191 17.585 12.719 17.452 13.078 17.406 13.078 17.406",
"12.736 15.725 12.736 15.905 12.736 16.085 12.736 16.265 12.736 16.445 12.736 16.625 12.736 16.806 12.736 16.986 12.736 17.166 12.789 17.166 12.842 17.166 12.895 17.166 12.948 17.166 13.001 17.166 13.054 17.166 13.107 17.166 13.160 17.166 13.160 17.039 13.160 16.912 13.160 16.785 13.160 16.658 13.160 16.531 13.160 16.404 13.160 16.277 13.160 16.150 13.642 16.153 14.123 16.156 14.605 16.158 15.086 16.161 15.567 16.164 16.049 16.167 16.530 16.169 17.012 16.172 17.012 16.695 17.012 17.217 17.012 17.740 17.012 18.263 17.012 18.786 17.012 19.308 17.012 19.831 17.012 20.354 16.817 20.351 16.623 20.348 16.428 20.346 16.233 20.343 16.039 20.340 15.844 20.337 15.650 20.335 15.455 20.332 15.454 20.385 15.454 20.438 15.453 20.491 15.452 20.544 15.451 20.597 15.451 20.650 15.450 20.703 15.449 20.756 15.697 20.759 15.946 20.763 16.194 20.766 16.442 20.769 16.691 20.773 16.939 20.776 17.187 20.780 17.436 20.783 17.436 20.154 17.436 19.525 17.436 18.896 17.436 18.267 17.436 17.637 17.436 17.008 17.436 16.379 17.436 15.750 16.848 15.747 16.261 15.744 15.673 15.740 15.086 15.737 14.499 15.734 13.911 15.731 13.324 15.728 12.736 15.725",
"14.719 11.533 13.875 12.423 13.032 13.312 12.188 14.201 11.345 15.091 10.501 15.980 9.658 16.870 8.814 17.759 7.971 18.648 8.336 18.652 8.701 18.656 9.066 18.660 9.431 18.663 9.796 18.667 10.161 18.671 10.526 18.674 10.891 18.678 10.891 18.625 10.892 18.572 10.892 18.519 10.893 18.466 10.893 18.413 10.894 18.360 10.894 18.307 10.895 18.254 10.651 18.252 10.408 18.249 10.164 18.247 9.921 18.245 9.677 18.242 9.434 18.240 9.191 18.237 8.947 18.235 9.616 17.530 10.284 16.825 10.953 16.120 11.621 15.415 12.290 14.710 12.958 14.005 13.626 13.299 14.295 12.594 14.295 13.004 14.295 13.413 14.295 13.822 14.295 14.231 14.295 14.640 14.295 15.049 14.295 15.459 14.295 15.868 14.348 15.868 14.401 15.868 14.454 15.868 14.507 15.868 14.560 15.868 14.613 15.868 14.666 15.868 14.719 15.868 14.719 15.326 14.719 14.784 14.719 14.243 14.719 13.701 14.719 13.159 14.719 12.717 14.719 12.076 14.719 11.533",
"21.756 20.123 21.699 20.129 21.646 20.147 21.596 20.174 21.553 20.210 21.518 20.254 21.491 20.303 21.473 20.357 21.467 20.414 21.467 20.824 21.467 21.233 21.467 21.642 21.467 22.051 21.467 22.460 21.467 22.869 21.467 23.279 21.467 23.688 21.473 23.745 21.491 23.799 21.518 23.848 21.553 23.891 21.596 23.927 21.646 23.954 21.699 23.971 21.756 23.977 21.814 23.971 21.867 23.954 21.916 23.927 21.959 23.891 21.995 23.848 22.022 23.799 22.040 23.745 22.046 23.688 22.046 23.279 22.046 22.869 22.046 22.460 22.046 22.051 22.046 21.642 22.046 21.233 22.046 20.824 22.046 20.414 22.040 20.357 22.022 20.303 21.995 20.254 21.959 20.210 21.916 20.174 21.867 20.147 21.814 20.129 21.756 20.123 21.756 20.123",
"19.831 22.051 19.837 22.108 19.854 22.162 19.881 22.211 19.917 22.254 19.960 22.290 20.009 22.317 20.063 22.334 20.120 22.340 20.529 22.340 20.938 22.340 21.347 22.340 21.756 22.340 22.166 22.340 22.575 22.340 22.984 22.340 23.393 22.340 23.450 22.334 23.504 22.317 23.554 22.290 23.597 22.254 23.633 22.211 23.661 22.162 23.678 22.108 23.684 22.051 23.678 21.994 23.661 21.940 23.633 21.891 23.597 21.847 23.554 21.811 23.504 21.784 23.450 21.766 23.393 21.760 22.984 21.760 22.575 21.760 22.166 21.760 21.756 21.760 21.347 21.760 20.938 21.760 20.529 21.760 20.120 21.760 20.063 21.766 20.009 21.784 19.960 21.811 19.917 21.847 19.881 21.890 19.854 21.940 19.837 21.994 19.831 22.051 19.831 22.051"
];
var bc_settings_icon = [
"2.455 9.375 2.295 9.391 2.145 9.438 2.010 9.512 1.891 9.610 1.793 9.729 1.719 9.864 1.673 10.014 1.656 10.174 1.656 11.924 1.656 13.673 1.656 15.423 1.656 17.173 1.656 18.923 1.656 20.672 1.656 22.422 1.656 24.172 1.673 24.332 1.719 24.482 1.793 24.617 1.891 24.736 2.010 24.833 2.145 24.908 2.295 24.954 2.455 24.971 5.149 24.971 7.842 24.971 10.536 24.971 13.229 24.971 15.923 24.971 18.617 24.971 21.310 24.971 24.004 24.971 24.164 24.954 24.314 24.908 24.449 24.833 24.568 24.736 24.666 24.617 24.740 24.482 24.786 24.332 24.803 24.172 24.803 22.422 24.803 20.672 24.803 18.923 24.803 17.173 24.803 15.423 24.803 13.673 24.803 11.924 24.803 10.174 24.786 10.014 24.740 9.864 24.666 9.729 24.568 9.610 24.449 9.512 24.314 9.438 24.164 9.391 24.004 9.375 21.310 9.375 18.617 9.375 15.923 9.375 13.229 9.375 10.536 9.375 7.842 9.375 5.149 9.375 2.455 9.375 2.455 9.904 5.149 9.904 7.842 9.904 10.536 9.904 13.229 9.904 15.923 9.904 18.617 9.904 21.310 9.904 24.004 9.904 24.060 9.910 24.111 9.925 24.157 9.949 24.196 9.981 24.229 10.021 24.253 10.067 24.268 10.118 24.273 10.174 24.273 11.924 24.273 13.673 24.273 15.423 24.273 17.173 24.273 18.923 24.273 20.672 24.273 22.422 24.273 24.172 24.268 24.228 24.253 24.279 24.229 24.325 24.196 24.364 24.157 24.397 24.111 24.421 24.060 24.436 24.004 24.441 21.310 24.441 18.617 24.441 15.923 24.441 13.229 24.441 10.536 24.441 7.842 24.441 5.149 24.441 2.455 24.441 2.399 24.436 2.348 24.421 2.302 24.397 2.263 24.364 2.230 24.325 2.206 24.279 2.191 24.228 2.186 24.172 2.186 22.422 2.186 20.672 2.186 18.923 2.186 17.173 2.186 15.423 2.186 13.673 2.186 11.924 2.186 10.174 2.191 10.118 2.206 10.067 2.230 10.021 2.263 9.981 2.302 9.949 2.348 9.925 2.399 9.910 2.455 9.904 2.455 9.904",
"2.910 23.973 3.109 23.973 3.307 23.973 3.506 23.973 3.704 23.973 3.903 23.973 4.101 23.973 4.300 23.973 4.498 23.973 4.498 23.923 4.498 23.874 4.498 23.824 4.498 23.774 4.498 23.725 4.498 23.675 4.498 23.626 4.498 23.576 4.300 23.576 4.101 23.576 3.903 23.576 3.704 23.576 3.506 23.576 3.307 23.576 3.109 23.576 2.910 23.576 2.910 23.626 2.910 23.675 2.910 23.725 2.910 23.774 2.910 23.824 2.910 23.874 2.910 23.923 2.910 23.973 5.291 23.973 5.490 23.973 5.688 23.973 5.886 23.973 6.085 23.973 6.283 23.973 6.482 23.973 6.680 23.973 6.879 23.973 6.879 23.923 6.879 23.874 6.879 23.824 6.879 23.774 6.879 23.725 6.879 23.675 6.879 23.626 6.879 23.576 6.680 23.576 6.482 23.576 6.283 23.576 6.085 23.576 5.886 23.576 5.688 23.576 5.490 23.576 5.291 23.576 5.291 23.626 5.291 23.675 5.291 23.725 5.291 23.774 5.291 23.824 5.291 23.874 5.291 23.923 5.291 23.973 7.672 23.973 7.870 23.973 8.069 23.973 8.267 23.973 8.466 23.973 8.664 23.973 8.863 23.973 9.061 23.973 9.260 23.973 9.260 23.923 9.260 23.874 9.260 23.824 9.260 23.774 9.260 23.725 9.260 23.675 9.260 23.626 9.260 23.576 9.061 23.576 8.863 23.576 8.664 23.576 8.466 23.576 8.267 23.576 8.069 23.576 7.870 23.576 7.672 23.576 7.672 23.626 7.672 23.675 7.672 23.725 7.672 23.774 7.672 23.824 7.672 23.874 7.672 23.923 7.672 23.973 10.053 23.973 10.251 23.973 10.450 23.973 10.648 23.973 10.847 23.973 11.045 23.973 11.244 23.973 11.442 23.973 11.641 23.973 11.641 23.923 11.641 23.874 11.641 23.824 11.641 23.774 11.641 23.725 11.641 23.675 11.641 23.626 11.641 23.576 11.442 23.576 11.244 23.576 11.045 23.576 10.847 23.576 10.648 23.576 10.450 23.576 10.251 23.576 10.053 23.576 10.053 23.626 10.053 23.675 10.053 23.725 10.053 23.774 10.053 23.824 10.053 23.874 10.053 23.923 10.053 23.973 12.436 23.973 12.734 23.973 12.832 23.973 13.030 23.973 13.229 23.973 13.427 23.973 13.625 23.973 13.823 23.973 14.021 23.973 14.021 23.923 14.021 23.874 14.021 23.824 14.021 23.774 14.021 23.725 14.021 23.675 14.021 23.626 14.021 23.576 13.823 23.576 13.625 23.576 13.427 23.576 13.229 23.576 13.030 23.576 12.832 23.576 12.734 23.576 12.436 23.576 12.436 23.626 12.436 23.675 12.436 23.725 12.436 23.774 12.436 23.824 12.436 23.874 12.436 23.923 12.436 23.973 14.816 23.973 15.015 23.973 15.213 23.973 15.412 23.973 15.610 23.973 15.809 23.973 16.007 23.973 16.206 23.973 16.404 23.973 16.404 23.923 16.404 23.874 16.404 23.824 16.404 23.774 16.404 23.725 16.404 23.675 16.404 23.626 16.404 23.576 16.206 23.576 16.007 23.576 15.809 23.576 15.610 23.576 15.412 23.576 15.213 23.576 15.015 23.576 14.816 23.576 14.816 23.626 14.816 23.675 14.816 23.725 14.816 23.774 14.816 23.824 14.816 23.874 14.816 23.923 14.816 23.973 17.197 23.973 17.396 23.973 17.594 23.973 17.793 23.973 17.991 23.973 18.190 23.973 18.388 23.973 18.587 23.973 18.785 23.973 18.785 23.923 18.785 23.874 18.785 23.824 18.785 23.774 18.785 23.725 18.785 23.675 18.785 23.626 18.785 23.576 18.587 23.576 18.388 23.576 18.190 23.576 17.991 23.576 17.793 23.576 17.594 23.576 17.396 23.576 17.197 23.576 17.197 23.626 17.197 23.675 17.197 23.725 17.197 23.774 17.197 23.824 17.197 23.874 17.197 23.923 17.197 23.973 19.578 23.973 19.777 23.973 19.975 23.973 20.174 23.973 20.372 23.973 20.571 23.973 20.769 23.973 20.968 23.973 21.166 23.973 21.166 23.923 21.166 23.874 21.166 23.824 21.166 23.774 21.166 23.725 21.166 23.675 21.166 23.626 21.166 23.576 20.968 23.576 20.769 23.576 20.571 23.576 20.372 23.576 20.174 23.576 19.975 23.576 19.777 23.576 19.578 23.576 19.578 23.626 19.578 23.675 19.578 23.725 19.578 23.774 19.578 23.824 19.578 23.874 19.578 23.923 19.578 23.973 21.959 23.973 22.157 23.973 22.356 23.973 22.554 23.973 22.753 23.973 22.951 23.973 23.150 23.973 23.348 23.973 23.547 23.973 23.547 23.923 23.547 23.874 23.547 23.824 23.547 23.774 23.547 23.725 23.547 23.675 23.547 23.626 23.547 23.576 23.348 23.576 23.150 23.576 22.951 23.576 22.753 23.576 22.554 23.576 22.356 23.576 22.157 23.576 21.959 23.576 21.959 23.626 21.959 23.675 21.959 23.725 21.959 23.774 21.959 23.824 21.959 23.874 21.959 23.923 21.959 23.973",
"2.711 11.867 2.760 11.867 2.810 11.867 2.860 11.867 2.909 11.867 2.959 11.867 3.008 11.867 3.058 11.867 3.107 11.867 3.107 11.706 3.107 11.545 3.107 11.384 3.107 11.223 3.107 11.062 3.107 10.900 3.107 10.739 3.107 10.578 3.058 10.578 3.008 10.578 2.959 10.578 2.909 10.578 2.860 10.578 2.810 10.578 2.760 10.578 2.711 10.578 2.711 10.739 2.711 10.900 2.711 11.062 2.711 11.223 2.711 11.384 2.711 11.545 2.711 11.706 2.711 11.867 2.711 14.248 2.760 14.248 2.810 14.248 2.860 14.248 2.909 14.248 2.959 14.248 3.008 14.248 3.058 14.248 3.107 14.248 3.107 14.050 3.107 13.852 3.107 13.653 3.107 13.455 3.107 13.257 3.107 13.059 3.107 12.860 3.107 12.762 3.058 12.762 3.008 12.762 2.959 12.762 2.909 12.762 2.860 12.762 2.810 12.762 2.760 12.762 2.711 12.762 2.711 12.860 2.711 13.059 2.711 13.257 2.711 13.455 2.711 13.653 2.711 13.852 2.711 14.050 2.711 14.248 2.711 16.631 2.760 16.631 2.810 16.631 2.860 16.631 2.909 16.631 2.959 16.631 3.008 16.631 3.058 16.631 3.107 16.631 3.107 16.432 3.107 16.234 3.107 16.035 3.107 15.837 3.107 15.638 3.107 15.440 3.107 15.241 3.107 15.043 3.058 15.043 3.008 15.043 2.959 15.043 2.909 15.043 2.860 15.043 2.810 15.043 2.760 15.043 2.711 15.043 2.711 15.241 2.711 15.440 2.711 15.638 2.711 15.837 2.711 16.035 2.711 16.234 2.711 16.432 2.711 16.631 2.711 19.012 2.760 19.012 2.810 19.012 2.860 19.012 2.909 19.012 2.959 19.012 3.008 19.012 3.058 19.012 3.107 19.012 3.107 18.813 3.107 18.615 3.107 18.416 3.107 18.218 3.107 18.019 3.107 17.821 3.107 17.622 3.107 17.424 3.058 17.424 3.008 17.424 2.959 17.424 2.909 17.424 2.860 17.424 2.810 17.424 2.760 17.424 2.711 17.424 2.711 17.622 2.711 17.821 2.711 18.019 2.711 18.218 2.711 18.416 2.711 18.615 2.711 18.813 2.711 19.012 2.711 21.393 2.760 21.393 2.810 21.393 2.860 21.393 2.909 21.393 2.959 21.393 3.008 21.393 3.058 21.393 3.107 21.393 3.107 21.194 3.107 20.996 3.107 20.797 3.107 20.599 3.107 20.400 3.107 20.202 3.107 20.003 3.107 19.805 3.058 19.805 3.008 19.805 2.959 19.805 2.909 19.805 2.860 19.805 2.810 19.805 2.760 19.805 2.711 19.805 2.711 20.003 2.711 20.202 2.711 20.400 2.711 20.599 2.711 20.797 2.711 20.996 2.711 21.194 2.711 21.393 2.711 23.773 2.760 23.773 2.810 23.773 2.860 23.773 2.909 23.773 2.959 23.773 3.008 23.773 3.058 23.773 3.107 23.773 3.107 23.575 3.107 23.376 3.107 23.178 3.107 22.979 3.107 22.781 3.107 22.583 3.107 22.384 3.107 22.186 3.058 22.186 3.008 22.186 2.959 22.186 2.909 22.186 2.860 22.186 2.810 22.186 2.760 22.186 2.711 22.186 2.711 22.384 2.711 22.583 2.711 22.781 2.711 22.979 2.711 23.178 2.711 23.376 2.711 23.575 2.711 23.773",
"14.699 12.363 14.516 12.415 14.335 12.483 14.158 12.568 13.987 12.771 13.825 12.795 13.674 12.939 13.534 13.105 13.410 13.295 13.310 13.498 13.228 13.726 13.166 13.977 13.123 14.253 13.100 14.552 13.096 14.874 13.112 15.221 13.148 15.590 12.594 16.142 12.040 16.693 11.486 17.245 10.932 17.797 10.377 18.349 9.823 18.900 9.269 19.452 8.715 20.004 8.714 20.005 8.713 20.006 8.712 20.007 8.711 20.008 8.710 20.009 8.709 20.010 8.708 20.011 8.707 20.012 8.539 20.234 8.426 20.464 8.363 20.697 8.347 20.928 8.374 21.151 8.441 21.361 8.544 21.552 8.680 21.719 8.844 21.857 9.033 21.963 9.241 22.033 9.462 22.064 9.691 22.052 9.923 21.993 10.152 21.884 10.373 21.721 10.374 21.720 10.375 21.719 10.376 21.718 10.377 21.717 10.378 21.716 10.379 21.715 10.380 21.714 10.381 21.713 10.937 21.162 11.494 20.610 12.050 20.059 12.706 19.508 13.163 18.957 13.719 18.405 14.276 17.854 14.832 17.303 14.910 17.317 15.046 17.338 15.233 17.357 15.463 17.369 15.728 17.364 16.020 17.337 16.333 17.278 16.658 17.182 16.834 17.111 17.006 17.026 17.173 16.925 17.333 16.807 17.483 16.671 17.622 16.517 17.748 16.343 17.857 16.149 17.949 15.934 18.022 15.698 18.074 15.442 18.104 15.163 18.111 14.861 18.093 14.536 18.049 14.186 17.979 13.811 17.959 13.758 17.928 13.716 17.888 13.684 17.842 13.663 17.792 13.655 17.741 13.660 17.691 13.678 17.646 13.711 17.460 13.896 17.273 14.080 17.086 14.265 16.899 14.449 16.713 14.634 16.526 14.818 16.339 15.003 16.152 15.188 16.129 15.188 16.095 15.187 16.051 15.185 15.999 15.179 15.939 15.169 15.872 15.153 15.799 15.131 15.721 15.100 15.637 15.056 15.559 15.001 15.487 14.933 15.422 14.850 15.366 14.752 15.319 14.637 15.284 14.503 15.262 14.350 15.451 14.156 15.640 13.962 15.829 13.768 16.018 13.574 16.207 13.380 16.395 13.187 16.584 12.993 16.773 12.799 16.805 12.757 16.823 12.710 16.829 12.762 16.823 12.714 16.806 12.568 16.779 12.528 16.741 12.496 16.693 12.473 16.648 12.458 16.519 12.422 16.321 12.376 16.063 12.330 15.760 12.294 15.424 12.281 15.066 12.300 14.699 12.363 14.699 12.363 14.699 12.363 14.699 12.363 14.699 12.363 14.699 12.363 14.699 12.363 14.699 12.363 14.699 12.363 14.793 12.748 15.029 12.704 15.247 12.784 15.448 12.785 15.632 12.702 15.798 12.730 15.946 12.763 16.078 12.798 16.191 12.828 16.029 12.995 15.866 13.162 15.703 13.329 15.540 13.496 15.377 13.663 15.214 13.830 15.052 13.997 14.889 14.164 14.875 14.179 14.864 14.195 14.854 14.213 14.846 14.231 14.839 14.249 14.835 14.269 14.832 14.289 14.832 14.309 14.856 14.537 14.907 14.739 14.982 14.916 15.076 15.070 15.185 15.201 15.305 15.309 15.432 15.396 15.561 15.463 15.688 15.512 15.810 15.547 15.924 15.571 16.025 15.586 16.110 15.594 16.176 15.596 16.218 15.596 16.232 15.596 16.251 15.594 16.268 15.590 16.286 15.585 16.302 15.578 16.318 15.570 16.334 15.560 16.348 15.549 16.361 15.537 16.513 15.388 16.664 15.238 16.815 15.089 16.967 14.939 17.118 14.790 17.270 14.641 17.421 14.491 17.572 14.342 17.597 14.588 17.616 14.827 17.627 15.058 17.629 15.276 17.619 15.479 17.596 15.664 17.557 15.830 17.502 15.973 17.414 16.130 17.313 16.270 17.202 16.393 17.081 16.502 16.952 16.596 16.815 16.678 16.672 16.748 16.523 16.807 16.218 16.894 15.911 16.946 15.617 16.970 15.348 16.972 15.117 16.961 14.936 16.944 14.818 16.929 14.775 16.922 14.751 16.919 14.727 16.918 14.703 16.921 14.680 16.926 14.658 16.934 14.636 16.945 14.616 16.959 14.598 16.975 14.037 17.531 13.476 18.087 12.915 18.643 12.353 19.199 11.792 19.755 11.231 20.312 10.670 20.868 10.109 21.424 9.945 21.548 9.782 21.630 9.624 21.674 9.472 21.682 9.328 21.659 9.194 21.609 9.071 21.536 8.963 21.442 8.871 21.331 8.798 21.207 8.750 21.071 8.730 20.925 8.741 20.771 8.788 20.611 8.873 20.446 9.002 20.279 9.560 19.723 10.119 19.167 10.677 18.611 11.235 18.055 11.794 17.499 12.352 16.942 12.910 16.386 13.469 15.830 13.484 15.813 13.497 15.794 13.508 15.774 13.517 15.753 13.523 15.731 13.526 15.708 13.527 15.685 13.525 15.662 13.481 15.285 13.462 14.941 13.465 14.629 13.489 14.347 13.531 14.094 13.591 13.868 13.666 13.669 13.754 13.494 13.853 13.341 13.964 13.208 14.084 13.093 14.212 12.996 14.348 12.913 14.491 12.846 14.640 12.791 14.793 12.748 14.793 12.748",
"3.108 10.577 3.104 10.617 3.092 10.654 3.074 10.688 3.050 10.717 3.020 10.742 2.987 10.760 2.949 10.771 2.909 10.775 2.869 10.771 2.832 10.760 2.798 10.742 2.769 10.717 2.745 10.688 2.727 10.654 2.715 10.617 2.711 10.577 2.715 10.537 2.727 10.500 2.745 10.466 2.769 10.437 2.798 10.412 2.832 10.394 2.869 10.383 2.909 10.379 2.949 10.383 2.987 10.394 3.020 10.412 3.050 10.437 3.074 10.466 3.092 10.500 3.104 10.537 3.108 10.577 3.108 10.577",
"3.108 11.868 3.104 11.908 3.092 11.945 3.074 11.979 3.050 12.008 3.020 12.033 2.987 12.051 2.949 12.062 2.909 12.066 2.869 12.062 2.832 12.051 2.798 12.033 2.769 12.008 2.745 11.979 2.727 11.945 2.715 11.908 2.711 11.868 2.715 11.828 2.727 11.791 2.745 11.757 2.769 11.728 2.798 11.703 2.832 11.685 2.869 11.674 2.909 11.670 2.949 11.674 2.987 11.685 3.020 11.703 3.050 11.728 3.074 11.757 3.092 11.791 3.104 11.828 3.108 11.868 3.108 11.868",
"3.108 12.762 3.104 12.702 3.092 12.739 3.074 12.773 3.050 12.802 3.020 12.826 2.987 12.845 2.949 12.856 2.909 12.860 2.869 12.856 2.832 12.845 2.798 12.826 2.769 12.802 2.745 12.773 2.727 12.739 2.715 12.702 2.711 12.762 2.715 12.722 2.727 12.585 2.745 12.551 2.769 12.522 2.798 12.497 2.832 12.479 2.869 12.467 2.909 12.463 2.949 12.467 2.987 12.479 3.020 12.497 3.050 12.522 3.074 12.551 3.092 12.585 3.104 12.722 3.108 12.762 3.108 12.762",
"3.108 14.253 3.104 14.293 3.092 14.331 3.074 14.364 3.050 14.394 3.020 14.418 2.987 14.436 2.949 14.448 2.909 14.452 2.869 14.448 2.832 14.436 2.798 14.418 2.769 14.394 2.745 14.364 2.727 14.331 2.715 14.293 2.711 14.253 2.715 14.213 2.727 14.176 2.745 14.143 2.769 14.113 2.798 14.089 2.832 14.071 2.869 14.059 2.909 14.055 2.949 14.059 2.987 14.071 3.020 14.089 3.050 14.113 3.074 14.143 3.092 14.176 3.104 14.213 3.108 14.253 3.108 14.253",
"3.108 12.762 3.104 12.702 3.092 12.739 3.074 12.773 3.050 12.802 3.020 12.826 2.987 12.845 2.949 12.856 2.909 12.860 2.869 12.856 2.832 12.845 2.798 12.826 2.769 12.802 2.745 12.773 2.727 12.739 2.715 12.702 2.711 12.762 2.715 12.722 2.727 12.585 2.745 12.551 2.769 12.522 2.798 12.497 2.832 12.479 2.869 12.467 2.909 12.463 2.949 12.467 2.987 12.479 3.020 12.497 3.050 12.522 3.074 12.551 3.092 12.585 3.104 12.722 3.108 12.762 3.108 12.762",
"3.108 14.253 3.104 14.293 3.092 14.331 3.074 14.364 3.050 14.394 3.020 14.418 2.987 14.436 2.949 14.448 2.909 14.452 2.869 14.448 2.832 14.436 2.798 14.418 2.769 14.394 2.745 14.364 2.727 14.331 2.715 14.293 2.711 14.253 2.715 14.213 2.727 14.176 2.745 14.143 2.769 14.113 2.798 14.089 2.832 14.071 2.869 14.059 2.909 14.055 2.949 14.059 2.987 14.071 3.020 14.089 3.050 14.113 3.074 14.143 3.092 14.176 3.104 14.213 3.108 14.253 3.108 14.253",
"3.108 15.039 3.104 15.079 3.092 15.116 3.074 15.150 3.050 15.179 3.020 15.204 2.987 15.222 2.949 15.233 2.909 15.237 2.869 15.233 2.832 15.222 2.798 15.204 2.769 15.179 2.745 15.150 2.727 15.116 2.715 15.079 2.711 15.039 2.715 14.999 2.727 14.962 2.745 14.928 2.769 14.899 2.798 14.874 2.832 14.856 2.869 14.845 2.909 14.841 2.949 14.845 2.987 14.856 3.020 14.874 3.050 14.899 3.074 14.928 3.092 14.962 3.104 14.999 3.108 15.039 3.108 15.039",
"3.108 16.631 3.104 16.671 3.092 16.708 3.074 16.742 3.050 16.771 3.020 16.795 2.987 16.813 2.949 16.825 2.909 16.829 2.869 16.825 2.832 16.813 2.798 16.795 2.769 16.771 2.745 16.742 2.727 16.708 2.715 16.671 2.711 16.631 2.715 16.591 2.727 16.553 2.745 16.520 2.769 16.490 2.798 16.466 2.832 16.448 2.869 16.436 2.909 16.432 2.949 16.436 2.987 16.448 3.020 16.466 3.050 16.490 3.074 16.520 3.092 16.553 3.104 16.591 3.108 16.631 3.108 16.631",
"3.108 17.420 3.104 17.460 3.092 17.497 3.074 17.531 3.050 17.561 3.020 17.585 2.987 17.603 2.949 17.615 2.909 17.619 2.869 17.615 2.832 17.603 2.798 17.585 2.769 17.561 2.745 17.531 2.727 17.497 2.715 17.460 2.711 17.420 2.715 17.380 2.727 17.343 2.745 17.309 2.769 17.280 2.798 17.256 2.832 17.237 2.869 17.226 2.909 17.222 2.949 17.226 2.987 17.237 3.020 17.256 3.050 17.280 3.074 17.309 3.092 17.343 3.104 17.380 3.108 17.420 3.108 17.420",
"3.108 19.012 3.104 19.052 3.092 19.089 3.074 19.123 3.050 19.152 3.020 19.176 2.987 19.195 2.949 19.206 2.909 19.210 2.869 19.206 2.832 19.195 2.798 19.176 2.769 19.152 2.745 19.123 2.727 19.089 2.715 19.052 2.711 19.012 2.715 18.972 2.727 18.935 2.745 18.901 2.769 18.872 2.798 18.847 2.832 18.829 2.869 18.817 2.909 18.813 2.949 18.817 2.987 18.829 3.020 18.847 3.050 18.872 3.074 18.901 3.092 18.935 3.104 18.972 3.108 19.012 3.108 19.012",
"3.108 19.805 3.104 19.845 3.092 19.883 3.074 19.916 3.050 19.946 3.020 19.970 2.987 19.988 2.949 20.000 2.909 20.004 2.869 20.000 2.832 19.988 2.798 19.970 2.769 19.946 2.745 19.916 2.727 19.883 2.715 19.845 2.711 19.805 2.715 19.766 2.727 19.728 2.745 19.695 2.769 19.665 2.798 19.641 2.832 19.623 2.869 19.611 2.909 19.607 2.949 19.611 2.987 19.623 3.020 19.641 3.050 19.665 3.074 19.695 3.092 19.728 3.104 19.766 3.108 19.805 3.108 19.805",
"3.108 21.393 3.104 21.433 3.092 21.470 3.074 21.504 3.050 21.533 3.020 21.557 2.987 21.576 2.949 21.587 2.909 21.591 2.869 21.587 2.832 21.576 2.798 21.557 2.769 21.533 2.745 21.504 2.727 21.470 2.715 21.433 2.711 21.393 2.715 21.353 2.727 21.316 2.745 21.282 2.769 21.253 2.798 21.228 2.832 21.210 2.869 21.198 2.909 21.194 2.949 21.198 2.987 21.210 3.020 21.228 3.050 21.253 3.074 21.282 3.092 21.316 3.104 21.353 3.108 21.393 3.108 21.393",
"3.108 22.185 3.104 22.225 3.092 22.262 3.074 22.296 3.050 22.325 3.020 22.350 2.987 22.368 2.949 22.379 2.909 22.383 2.869 22.379 2.832 22.368 2.798 22.350 2.769 22.325 2.745 22.296 2.727 22.262 2.715 22.225 2.711 22.185 2.715 22.145 2.727 22.108 2.745 22.074 2.769 22.045 2.798 22.020 2.832 22.002 2.869 21.991 2.909 21.987 2.949 21.991 2.987 22.002 3.020 22.020 3.050 22.045 3.074 22.074 3.092 22.108 3.104 22.145 3.108 22.185 3.108 22.185",
"3.108 23.775 3.104 23.815 3.092 23.853 3.074 23.886 3.050 23.916 3.020 23.940 2.987 23.958 2.949 23.970 2.909 23.974 2.869 23.970 2.832 23.958 2.798 23.940 2.769 23.916 2.745 23.886 2.727 23.853 2.715 23.815 2.711 23.775 2.715 23.735 2.727 23.698 2.745 23.664 2.769 23.635 2.798 23.611 2.832 23.592 2.869 23.581 2.909 23.577 2.949 23.581 2.987 23.592 3.020 23.611 3.050 23.635 3.074 23.664 3.092 23.698 3.104 23.735 3.108 23.775 3.108 23.775",
"4.696 23.774 4.692 23.814 4.680 23.851 4.662 23.885 4.638 23.914 4.608 23.938 4.575 23.957 4.537 23.968 4.497 23.972 4.457 23.968 4.420 23.957 4.386 23.938 4.357 23.914 4.333 23.885 4.315 23.851 4.303 23.814 4.299 23.774 4.303 23.734 4.315 23.697 4.333 23.663 4.357 23.634 4.386 23.609 4.420 23.591 4.457 23.579 4.497 23.575 4.537 23.579 4.575 23.591 4.608 23.609 4.638 23.634 4.662 23.663 4.680 23.697 4.692 23.734 4.696 23.774 4.696 23.774",
"5.488 23.774 5.484 23.814 5.472 23.851 5.454 23.885 5.430 23.914 5.401 23.938 5.367 23.957 5.330 23.968 5.290 23.972 5.250 23.968 5.212 23.957 5.179 23.938 5.149 23.914 5.125 23.885 5.107 23.851 5.095 23.814 5.091 23.774 5.095 23.734 5.107 23.697 5.125 23.663 5.149 23.634 5.179 23.609 5.212 23.591 5.250 23.579 5.290 23.575 5.330 23.579 5.367 23.591 5.401 23.609 5.430 23.634 5.454 23.663 5.472 23.697 5.484 23.734 5.488 23.774 5.488 23.774",
"7.078 23.774 7.074 23.814 7.063 23.851 7.044 23.885 7.020 23.914 6.991 23.938 6.957 23.957 6.920 23.968 6.880 23.972 6.840 23.968 6.803 23.957 6.769 23.938 6.740 23.914 6.715 23.885 6.697 23.851 6.685 23.814 6.681 23.774 6.685 23.734 6.697 23.697 6.715 23.663 6.740 23.634 6.769 23.609 6.803 23.591 6.840 23.579 6.880 23.575 6.920 23.579 6.957 23.591 6.991 23.609 7.020 23.634 7.044 23.663 7.063 23.697 7.074 23.734 7.078 23.774 7.078 23.774",
"7.871 23.774 7.867 23.814 7.855 23.851 7.837 23.885 7.813 23.914 7.784 23.938 7.750 23.957 7.713 23.968 7.673 23.972 7.633 23.968 7.595 23.957 7.562 23.938 7.532 23.914 7.508 23.885 7.490 23.851 7.478 23.814 7.474 23.774 7.478 23.734 7.490 23.697 7.508 23.663 7.532 23.634 7.562 23.609 7.595 23.591 7.633 23.579 7.673 23.575 7.713 23.579 7.750 23.591 7.784 23.609 7.813 23.634 7.837 23.663 7.855 23.697 7.867 23.734 7.871 23.774 7.871 23.774",
"9.457 23.774 9.453 23.814 9.442 23.851 9.424 23.885 9.399 23.914 9.370 23.938 9.336 23.957 9.299 23.968 9.259 23.972 9.219 23.968 9.182 23.957 9.148 23.938 9.119 23.914 9.094 23.885 9.076 23.851 9.065 23.814 9.061 23.774 9.065 23.734 9.076 23.697 9.094 23.663 9.119 23.634 9.148 23.609 9.182 23.591 9.219 23.579 9.259 23.575 9.299 23.579 9.336 23.591 9.370 23.609 9.399 23.634 9.424 23.663 9.442 23.697 9.453 23.734 9.457 23.774 9.457 23.774",
"10.253 23.774 10.249 23.814 10.237 23.851 10.219 23.885 10.195 23.914 10.165 23.938 10.131 23.957 10.094 23.968 10.054 23.972 10.014 23.968 9.977 23.957 9.943 23.938 9.914 23.914 9.890 23.885 9.871 23.851 9.860 23.814 9.856 23.774 9.860 23.734 9.871 23.697 9.890 23.663 9.914 23.634 9.943 23.609 9.977 23.591 10.014 23.579 10.054 23.575 10.094 23.579 10.131 23.591 10.165 23.609 10.195 23.634 10.219 23.663 10.237 23.697 10.249 23.734 10.253 23.774 10.253 23.774",
"11.840 23.774 11.836 23.814 11.824 23.851 11.806 23.885 11.782 23.914 11.752 23.938 11.719 23.957 11.682 23.968 11.642 23.972 11.602 23.968 11.564 23.957 11.531 23.938 11.501 23.914 11.477 23.885 11.459 23.851 11.447 23.814 11.443 23.774 11.447 23.734 11.459 23.697 11.477 23.663 11.501 23.634 11.531 23.609 11.564 23.591 11.602 23.579 11.642 23.575 11.682 23.579 11.719 23.591 11.752 23.609 11.782 23.634 11.806 23.663 11.824 23.697 11.836 23.734 11.840 23.774 11.840 23.774",
"12.732 23.774 12.728 23.814 12.717 23.851 12.598 23.885 12.574 23.914 12.545 23.938 12.511 23.957 12.474 23.968 12.434 23.972 12.394 23.968 12.356 23.957 12.323 23.938 12.293 23.914 12.269 23.885 12.251 23.851 12.239 23.814 12.235 23.774 12.239 23.734 12.251 23.697 12.269 23.663 12.293 23.634 12.323 23.609 12.356 23.591 12.394 23.579 12.434 23.575 12.474 23.579 12.511 23.591 12.545 23.609 12.574 23.634 12.598 23.663 12.717 23.697 12.728 23.734 12.732 23.774 12.732 23.774",
"14.219 23.774 14.215 23.814 14.204 23.851 14.186 23.885 14.161 23.914 14.132 23.938 14.098 23.957 14.061 23.968 14.021 23.972 13.981 23.968 13.944 23.957 13.910 23.938 13.881 23.914 13.856 23.885 13.838 23.851 13.827 23.814 13.823 23.774 13.827 23.734 13.838 23.697 13.856 23.663 13.881 23.634 13.910 23.609 13.944 23.591 13.981 23.579 14.021 23.575 14.061 23.579 14.098 23.591 14.132 23.609 14.161 23.634 14.186 23.663 14.204 23.697 14.215 23.734 14.219 23.774 14.219 23.774",
"15.015 23.774 15.011 23.814 14.999 23.851 14.981 23.885 14.956 23.914 14.927 23.938 14.893 23.957 14.856 23.968 14.816 23.972 14.776 23.968 14.739 23.957 14.705 23.938 14.676 23.914 14.652 23.885 14.633 23.851 14.622 23.814 14.618 23.774 14.622 23.734 14.633 23.697 14.652 23.663 14.676 23.634 14.705 23.609 14.739 23.591 14.776 23.579 14.816 23.575 14.856 23.579 14.893 23.591 14.927 23.609 14.956 23.634 14.981 23.663 14.999 23.697 15.011 23.734 15.015 23.774 15.015 23.774",
"16.602 23.774 16.598 23.814 16.586 23.851 16.568 23.885 16.544 23.914 16.514 23.938 16.481 23.957 16.443 23.968 16.404 23.972 16.364 23.968 16.326 23.957 16.293 23.938 16.263 23.914 16.239 23.885 16.221 23.851 16.209 23.814 16.205 23.774 16.209 23.734 16.221 23.697 16.239 23.663 16.263 23.634 16.293 23.609 16.326 23.591 16.364 23.579 16.404 23.575 16.443 23.579 16.481 23.591 16.514 23.609 16.544 23.634 16.568 23.663 16.586 23.697 16.598 23.734 16.602 23.774 16.602 23.774",
"17.397 23.774 17.393 23.814 17.381 23.851 17.363 23.885 17.339 23.914 17.310 23.938 17.276 23.957 17.239 23.968 17.199 23.972 17.159 23.968 17.121 23.957 17.088 23.938 17.058 23.914 17.034 23.885 17.016 23.851 17.004 23.814 17.000 23.774 17.004 23.734 17.016 23.697 17.034 23.663 17.058 23.634 17.088 23.609 17.121 23.591 17.159 23.579 17.199 23.575 17.239 23.579 17.276 23.591 17.310 23.609 17.339 23.634 17.363 23.663 17.381 23.697 17.393 23.734 17.397 23.774 17.397 23.774",
"18.981 23.774 18.977 23.814 18.966 23.851 18.948 23.885 18.923 23.914 18.894 23.938 18.860 23.957 18.823 23.968 18.783 23.972 18.743 23.968 18.706 23.957 18.672 23.938 18.643 23.914 18.618 23.885 18.600 23.851 18.589 23.814 18.585 23.774 18.589 23.734 18.600 23.697 18.618 23.663 18.643 23.634 18.672 23.609 18.706 23.591 18.743 23.579 18.783 23.575 18.823 23.579 18.860 23.591 18.894 23.609 18.923 23.634 18.948 23.663 18.966 23.697 18.977 23.734 18.981 23.774 18.981 23.774",
"19.777 23.774 19.773 23.814 19.761 23.851 19.743 23.885 19.718 23.914 19.689 23.938 19.655 23.957 19.618 23.968 19.578 23.972 19.538 23.968 19.501 23.957 19.467 23.938 19.438 23.914 19.414 23.885 19.395 23.851 19.384 23.814 19.380 23.774 19.384 23.734 19.395 23.697 19.414 23.663 19.438 23.634 19.467 23.609 19.501 23.591 19.538 23.579 19.578 23.575 19.618 23.579 19.655 23.591 19.689 23.609 19.718 23.634 19.743 23.663 19.761 23.697 19.773 23.734 19.777 23.774 19.777 23.774",
"21.364 23.774 21.360 23.814 21.348 23.851 21.330 23.885 21.306 23.914 21.276 23.938 21.243 23.957 21.205 23.968 21.166 23.972 21.126 23.968 21.088 23.957 21.055 23.938 21.025 23.914 21.001 23.885 20.983 23.851 20.971 23.814 20.967 23.774 20.971 23.734 20.983 23.697 21.001 23.663 21.025 23.634 21.055 23.609 21.088 23.591 21.126 23.579 21.166 23.575 21.205 23.579 21.243 23.591 21.276 23.609 21.306 23.634 21.330 23.663 21.348 23.697 21.360 23.734 21.364 23.774 21.364 23.774",
"22.159 23.774 22.155 23.814 22.143 23.851 22.125 23.885 22.101 23.914 22.072 23.938 22.038 23.957 22.001 23.968 21.961 23.972 21.921 23.968 21.883 23.957 21.850 23.938 21.820 23.914 21.796 23.885 21.778 23.851 21.766 23.814 21.762 23.774 21.766 23.734 21.778 23.697 21.796 23.663 21.820 23.634 21.850 23.609 21.883 23.591 21.921 23.579 21.961 23.575 22.001 23.579 22.038 23.591 22.072 23.609 22.101 23.634 22.125 23.663 22.143 23.697 22.155 23.734 22.159 23.774 22.159 23.774",
"23.746 23.774 23.742 23.814 23.731 23.851 23.713 23.885 23.688 23.914 23.659 23.938 23.625 23.957 23.588 23.968 23.548 23.972 23.508 23.968 23.471 23.957 23.437 23.938 23.408 23.914 23.383 23.885 23.365 23.851 23.354 23.814 23.350 23.774 23.354 23.734 23.365 23.697 23.383 23.663 23.408 23.634 23.437 23.609 23.471 23.591 23.508 23.579 23.548 23.575 23.588 23.579 23.625 23.591 23.659 23.609 23.688 23.634 23.713 23.663 23.731 23.697 23.742 23.734 23.746 23.774 23.746 23.774"
];
//credit: https://github.com/adamplouff/scriptui-battlestyle/blob/master/BattleStyle_Tester.jsx
function vecToPoints(vecCoord) {
var points = [];
var n;
for (var i = 0; i < vecCoord.length; i++) {
var eachNum = vecCoord[i].split(/[\s,]/);
var coordinates = [];
var sets = [];
for (var k = 0; k < eachNum.length; k += 2) {
sets.push(eachNum[k] + "," + eachNum[k + 1]);
}
for (var j = 0; j < sets.length; j++) {
n = sets[j].split(",");
coordinates[j] = n;
coordinates[j][0] = (parseFloat(coordinates[j][0]));
coordinates[j][1] = (parseFloat(coordinates[j][1]));
}
points.push(coordinates);
}
return points;
}
function vecDraw() {
this.graphics.drawOSControl();
this.graphics.rectPath(0, 0, this.size[0], this.size[1]);
this.graphics.fillPath(this.graphics.newBrush(this.graphics.BrushType.SOLID_COLOR, (this.hover) ? [0.164, 0.164, 0.164] : [0.113, 0.113, 0.113]));
try {
//26.5,18.5
var iconsize = [26.5, 18.5];
var gfx_mult = Math.max(1 / iconsize[0] * Math.min(this.size[0], this.size[1]), 1 / iconsize[1] * Math.min(this.size[0], this.size[1]));
gfx_mult = Math.min(gfx_mult, this.size[0] / iconsize[0]);
gfx_mult = Math.min(gfx_mult, this.size[1] / iconsize[1]);
for (var i = 0; i < this.coord.length; i++) {
var line = this.coord[i];
this.graphics.newPath();
this.graphics.moveTo(line[0][0] * gfx_mult + Math.max(this.size[0] - iconsize[0] * gfx_mult, 0) / 2, line[0][1] * gfx_mult - iconsize[1] * gfx_mult / 2 + Math.max(1.3 * gfx_mult, (this.size[1] - iconsize[1] * gfx_mult) / 2 + 1.3 * gfx_mult)); //- (iconsize[0] - iconsize[1])
for (var j = 0; j < line.length; j++) {
this.graphics.lineTo(line[j][0] * gfx_mult + Math.max(this.size[0] - iconsize[0] * gfx_mult, 0) / 2, line[j][1] * gfx_mult - iconsize[1] * gfx_mult / 2 + Math.max(1.3 * gfx_mult, (this.size[1] - iconsize[1] * gfx_mult) / 2 + 1.3 * gfx_mult));
}
this.graphics.fillPath(this.graphics.newBrush(this.graphics.BrushType.SOLID_COLOR, hexToArray(this.iconColor)));
}
} catch (e) {}
}
function hexToArray(hexString) {
var hexColor = hexString.replace('#', '');
var r = parseInt(hexColor.slice(0, 2), 16) / 255;
var g = parseInt(hexColor.slice(2, 4), 16) / 255;
var b = parseInt(hexColor.slice(4, 6), 16) / 255;
return [r, g, b, 1];
}
function buttonColorVector(parentObj, iconVec, size, staticColor, hoverColor) {
var btn = parentObj.add("button", [0, 0, size[0], size[1], undefined]);
btn.coord = vecToPoints(iconVec);
btn.iconColor = staticColor;
btn.artSize = size;
btn.onDraw = vecDraw;
btn.hover = false;
if (hoverColor) {
try {
btn.addEventListener("mouseover", function() {
btn.hover = true;
updateVectorButtonOnHover(this, iconVec, hoverColor);
});
btn.addEventListener("mouseout", function() {
btn.hover = false;
updateVectorButtonOnHover(this, iconVec, staticColor);
});
} catch (err) {
// fail silently
}
}
return btn;
}
function updateVectorButtonOnHover(btn, iconVec, iconColor) {
btn.coord = vecToPoints(iconVec);
btn.iconColor = iconColor;
btn.artSize = btn.size;
btn.onDraw = vecDraw;
return btn;
}
function updateVectorButtonOnResize(btn) {
btn.artSize = btn.size;
btn.onDraw = vecDraw;
return btn;
}
if (isKBarRunning && kbar.button){
var version = kbar.version; // '1.1.1'
var button = kbar.button; // Make a local copy of the kbar variable and button.
var id = button.id; // '4d8026d4-956c-4233-8730-3ea2abfaad35'
var name = button.name; // 'Show off a sample scriptlet'
var argument = button.argument; // Any string value
switch(button.argument)
{
case 'create_boxcam':
bc_create(false, false);
break;
case 'turninto_boxcam':
bc_create(true, false);
break;
case 'create_output_comp':
bc_newComp();
break;
case 'update_output_comp':
bc_applyComp();
break;
case 'custom_res_menu':
bc_customres();
break;
case 'custom_res_set':
bc_applyRes();
break;
case 'view_licensing':
alert("Licensing/help not available.");
//licensing.helpUI();
break;
default:
alert('To use Boxcam with KBar, set the argument to one of the following: create_boxcam, turninto_boxcam, create_output_comp, update_output_comp, custom_res_menu, custom_res_set, view_licensing');
break;
}
}else{ //draw UI if not using Kbar
var BoxcamPanel = (thisObj instanceof Panel) ? thisObj : new Window("palette", "Boxcam", [10, 10, 10, 10]);
var altkey = $.os.toLowerCase().indexOf('mac') >= 0 ? "Alt": "Ctrl";
var bc_create_button = buttonColorVector(BoxcamPanel, bc_create_icon, [200, 200], "888888", "009FEA");
bc_create_button.helpTip = "Add a new Boxcam\n" + altkey + "+click to turn any selected layer into a Boxcam"; //\nShift+click to update the (custom) resolution of an existing Boxcam"
var bc_newcomp_button = buttonColorVector(BoxcamPanel, bc_comp_icon, [100, 100], "888888", "009FEA");
bc_newcomp_button.helpTip = "Create a new output Composition\n" + altkey + "+click to update an existing one (same as Apply from older versions)";
var bc_settings_button = buttonColorVector(BoxcamPanel, bc_settings_icon, [100, 100], "888888", "009FEA");
bc_settings_button.helpTip = "Set a custom resolution\n" + altkey + "+click to update every Boxcam in this Composition\nShift+click to open activation window and help\nBoxcam v" + bc_version + " by rebane2001";
var bc_versionlabel = BoxcamPanel.add('statictext {text: "Boxcam v' + bc_version + '", characters: 20, justify: "right", helpTip: "v' + bc_version + '"}', [10, 60, 190, 80]);
var bc_help_button = BoxcamPanel.add("button", [0, 0, 58, 16], "Licensing");
var bc_hide_button = BoxcamPanel.add("button", [0, 60, 80, 16], "Hide this");
function resizeBoxcam() {
var bc_buttonsize = [10, 10];
bc_create_button.location = [8, 10];
if (BoxcamPanel.size[0] / 1.5 < BoxcamPanel.size[1]) {
if (bc_cleanUI){
bc_buttonsize = [Math.max(BoxcamPanel.size[0] - 20, 20), Math.max((BoxcamPanel.size[1] - 30) / 3, 20)];
bc_newcomp_button.location = [8, BoxcamPanel.size[1] / 2 - bc_buttonsize[1] / 2];
bc_settings_button.location = [8, BoxcamPanel.size[1] - 10 - bc_buttonsize[1]];
}else{
bc_buttonsize = [Math.max(BoxcamPanel.size[0] - 20, 20), Math.max((BoxcamPanel.size[1] - 30) / 3, 20)-4];
bc_newcomp_button.location = [8, BoxcamPanel.size[1] / 2 - bc_buttonsize[1] / 2 -4];
bc_settings_button.location = [8, BoxcamPanel.size[1] - 10 - bc_buttonsize[1] -8];
}
} else {
if (bc_cleanUI){
bc_buttonsize = [Math.max((BoxcamPanel.size[0] - 30) / 3, 20), Math.max(BoxcamPanel.size[1] - 20, 20)];
}else{
bc_buttonsize = [Math.max((BoxcamPanel.size[0] - 30) / 3, 20), Math.max(BoxcamPanel.size[1] - 20, 20)-13];
}
bc_newcomp_button.location = [BoxcamPanel.size[0] / 2 - bc_buttonsize[0] / 2 -2, 10];
bc_settings_button.location = [BoxcamPanel.size[0] - 10 - bc_buttonsize[0] -2, 10];
}
if (bc_cleanUI){
bc_help_button.location = [9999, 9999];
bc_hide_button.location = [9999, 9999];
bc_versionlabel.location = [9999, 9999];
}else{
bc_help_button.location = [10, BoxcamPanel.size[1] - 20];
bc_help_button.size = [54, 16];
bc_hide_button.location = [67, BoxcamPanel.size[1] - 20];
bc_hide_button.size = [49, 16];
bc_versionlabel.location = [BoxcamPanel.size[0] - 190, BoxcamPanel.size[1] - 23];
}
bc_newcomp_button.size = bc_settings_button.size = bc_create_button.size = bc_buttonsize;
updateVectorButtonOnResize(bc_create_button);
updateVectorButtonOnResize(bc_newcomp_button);
updateVectorButtonOnResize(bc_settings_button);
// = [BoxcamPanel.size[0]/2-15,20];
//bc_versionlabel.location = [BoxcamPanel.size[0] - 189, 60];
}
BoxcamPanel.onResizing = BoxcamPanel.onResize = function() {
resizeBoxcam();
};
bc_settings_button.onClick = function() {
if (!ScriptUI.environment.keyboardState.ctrlKey && !ScriptUI.environment.keyboardState.altKey && !ScriptUI.environment.keyboardState.shiftKey) {
bc_customres();
} else if (ScriptUI.environment.keyboardState.shiftKey) {
alert("Licensing/help not available.");
//licensing.helpUI();
} else {
bc_applyRes();
}
};
bc_create_button.onClick = function() {
bc_create((ScriptUI.environment.keyboardState.ctrlKey || ScriptUI.environment.keyboardState.altKey), ScriptUI.environment.keyboardState.shiftKey);
};
bc_newcomp_button.onClick = function() {
if (ScriptUI.environment.keyboardState.ctrlKey || ScriptUI.environment.keyboardState.altKey) {
bc_applyComp();
} else {
bc_newComp();
}
};
bc_help_button.onClick = function() {
alert("Licensing/help not available.");
//licensing.helpUI();
};
bc_hide_button.onClick = function() {
if (confirm("If you wish to, you can hide the version text and activation button from the bottom of the UI for a cleaner and more compact look\nYou will still be able to see the version number by hovering over the custom resolution button and you will still be able to check the licensing/activation settings by shift-clicking the said icon\nWould you like to proceed?")){
app.settings.saveSetting("Boxcam","cleanUI",1);
bc_cleanUI = true;
resizeBoxcam();
};
};
}
function applyBoxcamProperties(bc_comp, bc_layer, bc_precomp) {
bc_comp.width = bc_layer.width;
bc_comp.height = bc_layer.height;
bc_precomp.property("Anchor Point").expression = "transform.anchorPoint;\nfor (var i = 1; i < source.numLayers + 1; ++i) {bclr = source.layer(i);if (bclr.name.indexOf(\"Boxcam\") == 0 && (bclr.time>=bclr.inPoint) && (bclr.time<bclr.outPoint)){bc = source.layer(i);\nbc.toWorld(bc.anchorPoint.valueAtTime(time-thisLayer.startTime));\nbreak;}transform.anchorPoint;}";
bc_precomp.property("Position").expression = "transform.position;\nfor (var i = 1; i < source.numLayers + 1; ++i) {bclr = source.layer(i);if (bclr.name.indexOf(\"Boxcam\") == 0 && (bclr.time>=bclr.inPoint) && (bclr.time<bclr.outPoint)){\nsource.layer(i).transform.anchorPoint.valueAtTime(time-thisLayer.startTime);\nbreak;}transform.position;}";
bc_precomp.property("Scale").expression = "transform.scale;for (var i = 1; i < source.numLayers + 1; ++i) {bclr = source.layer(i);if (bclr.name.indexOf(\"Boxcam\") == 0 && (bclr.time>=bclr.inPoint) && (bclr.time<bclr.outPoint)){bc = source.layer(i);\nscl = bc.scale.valueAtTime(time-thisLayer.startTime) * 0.01;\nwhile (true){\nif(!bc.hasParent) break;\nbc = bc.parent;\nfor (var i=0; i < 2; i++) {scl[i]*=bc.scale.valueAtTime(time-thisLayer.startTime)[i]/100}\n}\n[1/scl[0]*transform.scale[0],1/scl[1]*transform.scale[1]]\nbreak;}transform.scale;}";
bc_precomp.property("Rotation").expression = "transform.rotation;\nfor (var i = 1; i < source.numLayers + 1; ++i) {bclr = source.layer(i);if (bclr.name.indexOf(\"Boxcam\") == 0 && (bclr.time>=bclr.inPoint) && (bclr.time<bclr.outPoint)){\nrt = source.layer(i).toWorldVec([1,0,0],time-thisLayer.startTime); -radiansToDegrees(Math.atan2(rt[1],rt[0]));\nbreak;}transform.rotation;}";
bc_precomp.collapseTransformation = true;
}
function bc_customres() {
var bc_comp = app.project.activeItem;
var w = new Window('dialog', 'Custom size');
var grp0 = w.add('group');
var chk0 = grp0.add("checkbox", undefined, "Use custom Boxcam size");
var grp1 = w.add('group');
grp1.add('statictext {text: "Width: "}');
var bc_resx = grp1.add('edittext {characters: 6, active: true}');
var grp2 = w.add('group');
grp2.add('statictext {text: "Height: "}');
var bc_resy = grp2.add('edittext {characters: 6, active: true}');
var grp3 = w.add('group');
var s_ok = grp3.add('button', undefined, 'OK');
chk0.value = bc_customSize;
bc_resx.enabled = bc_customSize;
bc_resy.enabled = bc_customSize;
if (bc_customSizeX == 0 && bc_customSizeY == 0) {
try {
bc_customSizeX = bc_comp.width;
bc_customSizeY = bc_comp.height;
} catch (e) {}
}
bc_resx.text = bc_customSizeX;
bc_resy.text = bc_customSizeY;
chk0.onClick = function() {
bc_resx.enabled = chk0.value;
bc_resy.enabled = chk0.value;
bc_customSize = chk0.value;
};
function saveChanges() {
try {
bc_customSizeX = parseFloat(bc_resx.text.replace(/[^\d,.]/g, ''));
bc_customSizeY = parseFloat(bc_resy.text.replace(/[^\d,.]/g, ''));
w.close();
} catch (err) {
alert("Error saving changes. Please double-check the resolution and make sure it consists of numbers only (error code #001)");
}
/*
if (licensing.trialMode()) {
if (bc_customSizeX > 1280 || bc_customSizeY > 720) {
alert("You can't have a custom resolution higher than 1280x720 in TRIAL mode, custom resolution has been set to 1280x720\nThis restriction will be lifted once bought");
bc_customSizeX = 1280;
bc_customSizeY = 720;
}
}
*/
app.settings.saveSetting("Boxcam","customSize",bc_customSize ? 1 : 0)
app.settings.saveSetting("Boxcam","customSizeX",bc_customSizeX)
app.settings.saveSetting("Boxcam","customSizeY",bc_customSizeY)
}
w.onClose = saveChanges;
s_ok.onClick = saveChanges;
w.show();
}
function bc_create(ctrl, shift) {
app.beginUndoGroup("Create Boxcam");
try {
var generatedBoxcam = false;
var bc_comp = app.project.activeItem;
var bc_layers = bc_comp.layers;
if (shift) {
var bc_layer = bc_comp.selectedLayers[0];
if (bc_customSize) {
bc_layer.source.height = bc_customSizeY;
bc_layer.source.width = bc_customSizeX;
} else {
bc_layer.source.height = bc_comp.height;
bc_layer.source.width = bc_comp.width;
}
if (ctrl) bc_create(true, false);
} else {
if (ctrl) {
try {
var bc_layer = bc_comp.selectedLayers[0];
bc_layer.name = "Boxcam";
bc_layer.guideLayer = true;
} catch (err) {}
} else {
var edge = 0;
var bc_layer = null;
generatedBoxcam = true;
if (!bc_customSize) {
bc_layer = bc_layers.addSolid([0.627, 0.463, 1.0], "Boxcam", bc_comp.width, bc_comp.height, 1.0, bc_comp.workAreaDuration);
edge = Math.min(bc_comp.height, bc_comp.width) / 50;
}
if (bc_customSize) {
bc_layer = bc_layers.addSolid([0.627, 0.463, 1.0], "Boxcam", bc_customSizeX, bc_customSizeY, 1.0, bc_comp.workAreaDuration);
edge = Math.min(bc_customSizeY, bc_customSizeX) / 50;
}
var mask = bc_layer.Masks.addProperty("Mask");
mask.inverted = true;
mask.maskExpansion.setValue(-edge);
mask.locked = true;
bc_layer.Effects.addProperty("ADBE Invert");
bc_layer.adjustmentLayer = true;
bc_layer.guideLayer = true;
}
if ((bc_layer.height != bc_comp.height || bc_layer.width != bc_comp.width) && !generatedBoxcam && !bc_customSize)
alert("Note: You're using a Boxcam layer with a size that doesn't match the Composition size.\nYour final Composition will be at the resolution " + bc_layer.width + "x" + bc_layer.height + "\nTo override this, hold shift while turning a layer into a Boxcam");
if ((bc_layer.height != bc_customSizeY || bc_layer.width != bc_customSizeX) && !generatedBoxcam && bc_customSize)
alert("Note: You're using a Boxcam layer with a size that doesn't match the custom size you've set.\nYour final Composition will be at the resolution " + bc_layer.width + "x" + bc_layer.height + "\nTo override this, hold shift while turning a layer into a Boxcam");
}
} catch (err) {}
app.endUndoGroup();
}
function bc_applyRes(){
var bc_comp = app.project.activeItem;
for (var i = 1; i < bc_comp.numLayers + 1; ++i) {
bclr = bc_comp.layer(i);
if (bclr.name.indexOf("Boxcam") == 0) {
if (bc_customSize) {
bclr.source.height = bc_customSizeY;
bclr.source.width = bc_customSizeX;
} else {
bclr.source.height = bc_comp.height;
bclr.source.width = bc_comp.width;
}
}
}
}
function bc_applyComp() {
app.beginUndoGroup("Apply Boxcam to Composition");
try {
var bc_comp = app.project.activeItem;
for (var i = 1; i < bc_comp.numLayers + 1; ++i) {
try{
var bc_precomp = bc_comp.layer(i);
var bc_src_comp = bc_precomp.source;
var bc_layer = null;
for (var j = 1; j < bc_src_comp.numLayers + 1; ++j) {
bclr = bc_src_comp.layer(j);
if (bclr.name.indexOf("Boxcam") == 0) {
bc_layer = bc_src_comp.layer(j);
applyBoxcamProperties(bc_comp, bc_layer, bc_precomp);
break;
}
}
}catch(err) {}
}
} catch (err) {}
app.endUndoGroup();
}
function bc_newComp() {
app.beginUndoGroup("Create a new Boxcam Composition");
try {
var bc_comp = app.project.activeItem;
var bc_layer = null;
for (var i = 1; i < bc_comp.numLayers + 1; ++i) {
bclr = bc_comp.layer(i);
if (bclr.name.indexOf("Boxcam") == 0) {
bc_layer = bc_comp.layer(i);
var new_bc_comp = bc_comp.parentFolder.items.addComp(bc_comp.name + " Boxcam", bc_layer.width, bc_layer.height, bc_comp.pixelAspect, bc_comp.duration, bc_comp.frameRate);
var new_bc_layer = new_bc_comp.layers.add(bc_comp);
applyBoxcamProperties(new_bc_comp, bc_layer, new_bc_layer);
new_bc_comp.openInViewer();
break;
}
}
if (bc_layer == null) {
//alert("Boxcam not found, please check that you have selected a Pre-Comp with a Boxcam and you have a layer starting with 'Boxcam' in it (error code #004)");
}
} catch (err) {
//alert("Error creating a new Composition, please check that you have selected a Pre-Comp with a Boxcam and you have a layer starting with 'Boxcam' in it (error code #005)");
}
app.endUndoGroup();
}
return BoxcamPanel;
}
boxcamUI(this);