· 4 years ago · Dec 13, 2020, 03:58 PM
1{
2 "action": {
3 "UpdateDisplay": {
4 "project": "CgEventsLib",
5 "source": {
6 "path": "actions/display",
7 "filename": "UpdateDisplay.action.ts"
8 },
9 "tostring": {},
10 "className": "UpdateDisplayAction",
11 "timestamp": 1606523608383,
12 "label": {
13 "en": "Update Display",
14 "zh": "更新顯示物件"
15 },
16 "description": {},
17 "allpaths": {
18 "en": [
19 [
20 "Update",
21 "Display"
22 ]
23 ],
24 "zh": [
25 [
26 "更新",
27 "顯示"
28 ]
29 ]
30 },
31 "properties": [
32 {
33 "key": "displayId",
34 "type": "string",
35 "format": "string",
36 "label": {
37 "en": "ID of the display object",
38 "zh": "物件的ID"
39 },
40 "description": {
41 "en": "The ID of the target display object. Use 'this' as a variable to indicate this object in an expression.",
42 "zh": "操縱對象的物件ID。使用區域變數'this'在表達式中取得這個物件。"
43 },
44 "required": 1,
45 "suggest": [
46 "actions<displayId>"
47 ]
48 },
49 {
50 "key": "setPosition",
51 "type": "boolean",
52 "label": {
53 "en": "Set Position",
54 "zh": "設定位置"
55 }
56 },
57 {
58 "key": "setPositionType",
59 "type": "string",
60 "label": {
61 "en": "Set Type",
62 "zh": "設定方式"
63 },
64 "visible": "{setPosition}",
65 "indent": 1,
66 "enum": [
67 "set",
68 "setObj",
69 "setMouse",
70 "direction",
71 "toPos",
72 "toObj",
73 "toMouse"
74 ],
75 "enumTitles": {
76 "en": [
77 "Set Position",
78 "At Object",
79 "At Mouse",
80 "Move in Directon",
81 "Move to Position",
82 "Move to Object",
83 "Move to Mouse"
84 ],
85 "zh": [
86 "設定位置",
87 "設定在一個顯示物件上",
88 "設定在鼠標上",
89 "朝一個方向移動",
90 "朝一個座標移動",
91 "朝一個顯示物件移動",
92 "朝鼠標移動"
93 ]
94 }
95 },
96 {
97 "key": "position",
98 "type": "#Point",
99 "label": {
100 "en": "Position",
101 "zh": "位置"
102 },
103 "default": {
104 "en": "{\"x\": \"{this.x}\", \"y\": \"{this.y}\"}"
105 },
106 "visible": "{setPosition} & (\"{setPositionType}\"==\"set\" | \"{setPositionType}\"==\"toPos\")",
107 "indent": 2
108 },
109 {
110 "key": "posDirAngle",
111 "type": "number",
112 "format": "string",
113 "label": {
114 "en": "Direction",
115 "zh": "方向"
116 },
117 "default": {
118 "en": "{this.rotationDeg}"
119 },
120 "visible": "{setPosition} & \"{setPositionType}\"==\"direction\"",
121 "indent": 2
122 },
123 {
124 "key": "posObj",
125 "type": "string",
126 "label": {
127 "en": "Target Object",
128 "zh": "目標物件"
129 },
130 "visible": "{setPosition} & (\"{setPositionType}\"==\"setObj\" | \"{setPositionType}\"==\"toObj\")",
131 "indent": 2,
132 "suggest": [
133 "actions<displayId>"
134 ]
135 },
136 {
137 "key": "posDirDist",
138 "type": "number",
139 "format": "string",
140 "label": {
141 "en": "Distance",
142 "zh": "距離"
143 },
144 "default": {
145 "en": "1"
146 },
147 "visible": "{setPosition} & \"{setPositionType}\"==\"direction\"",
148 "indent": 2
149 },
150 {
151 "key": "posRate",
152 "type": "number",
153 "format": "string",
154 "label": {
155 "en": "Shift Rate",
156 "zh": "位移率"
157 },
158 "default": {
159 "en": "1"
160 },
161 "description": {
162 "en": "The shift rate from the object's origin position to target position. Set to 1 to go exact target's position. Set to 0.5 to move half way to the target.\nTo move in exact pixels, set Shift Rate to 0, and set Min.Distance to the desired distance value in pixels.",
163 "zh": "從原位置位移至目標位置的比率。設為1將位移至目標位置。設為0.5則會朝目標位置移動一半的距離。\n若想要以像素為移動單位,請將位移率設為0,並調整最少移動距離。"
164 },
165 "visible": "{setPosition} & (\"{setPositionType}\"==\"toPos\" | \"{setPositionType}\"==\"toObj\" | \"{setPositionType}\"==\"toMouse\")",
166 "indent": 2
167 },
168 {
169 "key": "posRateParams",
170 "type": "object",
171 "format": "grid",
172 "gridOptions": [
173 "noTitle",
174 "noBorder"
175 ],
176 "visible": "{setPosition} & (\"{setPositionType}\"==\"toPos\" | \"{setPositionType}\"==\"toObj\" | \"{setPositionType}\"==\"toMouse\")",
177 "indent": 2
178 },
179 {
180 "key": "posMinDist",
181 "type": "number",
182 "format": "string",
183 "label": {
184 "en": "Min.Distance",
185 "zh": "最少移動距離"
186 },
187 "default": {
188 "en": "0"
189 },
190 "gridColumns": 4,
191 "parent": "posRateParams"
192 },
193 {
194 "key": "posGoOver",
195 "type": "boolean",
196 "label": {
197 "en": "Can Go Over Target",
198 "zh": "可超過目標位置"
199 },
200 "description": {
201 "en": "If checked and Min.Distance is greater than 0, the object can go over and across the target position.",
202 "zh": "若勾選且最少移動距離大於0,則物件移動可越過目標位置。"
203 },
204 "gridColumns": 3,
205 "parent": "posRateParams"
206 },
207 {
208 "key": "posMaxDist",
209 "type": "number",
210 "format": "string",
211 "label": {
212 "en": "Max.Distance",
213 "zh": "最多移動距離"
214 },
215 "default": {
216 "en": "2147483647"
217 },
218 "gridColumns": 5,
219 "parent": "posRateParams"
220 },
221 {
222 "key": "setRotation",
223 "type": "boolean",
224 "label": {
225 "en": "Set Rotation",
226 "zh": "設定旋轉角度"
227 }
228 },
229 {
230 "key": "setRotationType",
231 "type": "string",
232 "label": {
233 "en": "Set Type",
234 "zh": "設定方式"
235 },
236 "visible": "{setRotation}",
237 "indent": 1,
238 "enum": [
239 "set",
240 "facePos",
241 "faceObj",
242 "faceMouse",
243 "backPos",
244 "backObj",
245 "backMouse"
246 ],
247 "enumTitles": {
248 "en": [
249 "Set Rotation",
250 "Face a Point",
251 "Face an Object",
252 "Face Mouse",
253 "Back to a Point",
254 "Back to an Object",
255 "Back to Mouse"
256 ],
257 "zh": [
258 "設定旋轉角度",
259 "轉向一個座標",
260 "轉向一個顯示物件",
261 "轉向鼠標",
262 "背向一個座標",
263 "背向一個顯示物件",
264 "背向鼠標"
265 ]
266 }
267 },
268 {
269 "key": "rotation",
270 "type": "number",
271 "format": "string",
272 "label": {
273 "en": "Rotate Degrees",
274 "zh": "旋轉角度"
275 },
276 "unit": {
277 "en": "degrees",
278 "zh": "角度"
279 },
280 "default": {
281 "en": "{this.rotationDeg}"
282 },
283 "visible": "{setRotation} & \"{setRotationType}\"==\"set\"",
284 "indent": 2
285 },
286 {
287 "key": "rotFacePos",
288 "type": "#Point",
289 "label": {
290 "en": "Target Position",
291 "zh": "目標位置"
292 },
293 "default": {
294 "en": "{\"x\": \"{this.x} + 1\", \"y\": \"{this.y} + 1\"}"
295 },
296 "visible": "{setRotation} & (\"{setRotationType}\"==\"facePos\" | \"{setRotationType}\"==\"backPos\")",
297 "indent": 2
298 },
299 {
300 "key": "rotFaceObj",
301 "type": "string",
302 "label": {
303 "en": "Target Object",
304 "zh": "目標物件"
305 },
306 "visible": "{setRotation} & (\"{setRotationType}\"==\"faceObj\" | \"{setRotationType}\"==\"backObj\")",
307 "indent": 2,
308 "suggest": [
309 "actions<displayId>"
310 ]
311 },
312 {
313 "key": "rotOptimize",
314 "type": "boolean",
315 "label": {
316 "en": "Optimize Target Rotation",
317 "zh": "優化目標角度"
318 },
319 "default": {
320 "en": "true"
321 },
322 "description": {
323 "en": "If checked, the target rotation will be adjusted no more then ±180 degrees from from the current rotation for better for tween animation.",
324 "zh": "若勾選,則目標角度會被調整為離目前角度不超過±180的角度,讓旋轉的補間動畫不會繞圈圈。"
325 },
326 "visible": "{setRotation}",
327 "indent": 1
328 },
329 {
330 "key": "rotRateParams",
331 "type": "object",
332 "format": "grid",
333 "gridOptions": [
334 "noTitle",
335 "noBorder"
336 ],
337 "visible": "{setRotation}",
338 "indent": 1
339 },
340 {
341 "key": "rotRate",
342 "type": "number",
343 "format": "string",
344 "label": {
345 "en": "Rotate Rate",
346 "zh": "旋轉率"
347 },
348 "default": {
349 "en": "1"
350 },
351 "gridColumns": 4,
352 "parent": "rotRateParams"
353 },
354 {
355 "key": "rotMin",
356 "type": "number",
357 "format": "string",
358 "label": {
359 "en": "Min.Rotation",
360 "zh": "最少旋轉角度"
361 },
362 "default": {
363 "en": "0"
364 },
365 "gridColumns": 4,
366 "parent": "rotRateParams"
367 },
368 {
369 "key": "rotMax",
370 "type": "number",
371 "format": "string",
372 "label": {
373 "en": "Max.Rotation",
374 "zh": "最多旋轉角度"
375 },
376 "default": {
377 "en": "2147483647"
378 },
379 "gridColumns": 4,
380 "parent": "rotRateParams"
381 },
382 {
383 "key": "setScale",
384 "type": "boolean",
385 "label": {
386 "en": "Set Scale",
387 "zh": "設定縮放"
388 }
389 },
390 {
391 "key": "scale",
392 "type": "#Point",
393 "label": {
394 "en": "Scale",
395 "zh": "縮放"
396 },
397 "default": {
398 "en": "{\"x\": \"{this.scale.x}\", \"y\": \"{this.scale.y}\"}"
399 },
400 "visible": "{setScale}",
401 "indent": 1
402 },
403 {
404 "key": "setAlpha",
405 "type": "boolean",
406 "label": {
407 "en": "Set Alpha",
408 "zh": "設定透明度"
409 }
410 },
411 {
412 "key": "alpha",
413 "type": "number",
414 "format": "string",
415 "label": {
416 "en": "Alpha",
417 "zh": "透明度"
418 },
419 "default": {
420 "en": "{this.alpha}"
421 },
422 "visible": "{setAlpha}",
423 "indent": 1
424 },
425 {
426 "key": "setTint",
427 "type": "boolean",
428 "label": {
429 "en": "Set Tint",
430 "zh": "設定著色"
431 }
432 },
433 {
434 "key": "tint",
435 "type": "string",
436 "format": "color",
437 "label": {
438 "en": "Tint Color",
439 "zh": "著色顏色"
440 },
441 "visible": "{setTint}",
442 "indent": 1
443 },
444 {
445 "key": "setVisible",
446 "type": "boolean",
447 "label": {
448 "en": "Set Visible",
449 "zh": "設定顯示與否"
450 }
451 },
452 {
453 "key": "visible",
454 "type": "boolean",
455 "format": "string",
456 "label": {
457 "en": "Visible",
458 "zh": "顯示"
459 },
460 "visible": "{setVisible}",
461 "indent": 1
462 },
463 {
464 "key": "setTween",
465 "type": "boolean",
466 "label": {
467 "en": "Set Tween",
468 "zh": "設定補間動畫"
469 }
470 },
471 {
472 "key": "tween",
473 "type": "#Tween",
474 "label": {
475 "en": "Tween",
476 "zh": "補間動畫"
477 },
478 "visible": "{setTween}",
479 "indent": 1
480 },
481 {
482 "key": "disabled",
483 "type": "boolean",
484 "label": {
485 "en": "Disable",
486 "zh": "停用"
487 },
488 "default": {
489 "en": "false"
490 }
491 }
492 ]
493 },
494 "SizeSprite": {
495 "project": "CgEventsLib",
496 "source": {
497 "path": "actions/display",
498 "filename": "SizeSprite.action.ts"
499 },
500 "tostring": {},
501 "className": "SizeSpriteAction",
502 "timestamp": 1606523608383,
503 "label": {
504 "en": "Size Sprite",
505 "zh": "圖案尺寸"
506 },
507 "description": {
508 "en": "Update the size of a sprite.",
509 "zh": "改變一張圖的尺寸。"
510 },
511 "allpaths": {
512 "en": [
513 [
514 "Update",
515 "Display"
516 ]
517 ],
518 "zh": [
519 [
520 "更新",
521 "顯示"
522 ]
523 ]
524 },
525 "properties": [
526 {
527 "key": "displayId",
528 "type": "string",
529 "format": "string",
530 "label": {
531 "en": "ID of the display object",
532 "zh": "物件的ID"
533 },
534 "description": {
535 "en": "The ID of the target display object. Use 'this' as a variable to indicate this object in an expression.",
536 "zh": "操縱對象的物件ID。使用區域變數'this'在表達式中取得這個物件。"
537 },
538 "required": 1,
539 "suggest": [
540 "actions<displayId>"
541 ]
542 },
543 {
544 "key": "setPosition",
545 "type": "boolean",
546 "label": {
547 "en": "Set Position",
548 "zh": "設定位置"
549 }
550 },
551 {
552 "key": "position",
553 "type": "#Point",
554 "label": {
555 "en": "Position",
556 "zh": "位置"
557 },
558 "default": {
559 "en": "{\"x\": \"{this.x}\", \"y\": \"{this.y}\"}"
560 },
561 "visible": "{setPosition}",
562 "indent": 1
563 },
564 {
565 "key": "width",
566 "type": "number",
567 "format": "string",
568 "label": {
569 "en": "Width",
570 "zh": "寬度"
571 },
572 "default": {
573 "en": "{this.width}"
574 },
575 "description": {
576 "en": "Width of the sprite will be set to this value",
577 "zh": "圖片會被調整為設定的寬度"
578 }
579 },
580 {
581 "key": "height",
582 "type": "number",
583 "format": "string",
584 "label": {
585 "en": "height",
586 "zh": "高度"
587 },
588 "default": {
589 "en": "{this.height}"
590 },
591 "description": {
592 "en": "Height of the sprite will be set to this value",
593 "zh": "圖片會被調整為設定的高度"
594 }
595 },
596 {
597 "key": "setTween",
598 "type": "boolean",
599 "label": {
600 "en": "Set Tween",
601 "zh": "設定補間動畫"
602 }
603 },
604 {
605 "key": "tween",
606 "type": "#Tween",
607 "label": {
608 "en": "Tween",
609 "zh": "補間動畫"
610 },
611 "visible": "{setTween}",
612 "indent": 1
613 },
614 {
615 "key": "disabled",
616 "type": "boolean",
617 "label": {
618 "en": "Disable",
619 "zh": "停用"
620 },
621 "default": {
622 "en": "false"
623 }
624 }
625 ]
626 },
627 "AddLayout": {
628 "project": "CgEventsLib",
629 "source": {
630 "path": "actions/display",
631 "filename": "AddLayout.action.ts"
632 },
633 "tostring": {},
634 "className": "AddLayoutAction",
635 "timestamp": 1606523608383,
636 "label": {
637 "en": "AddLayout",
638 "zh": "建立圖層佈局"
639 },
640 "description": {
641 "en": "Add a container and create sprites in the layout editor.",
642 "zh": "增加一個顯示節點,並在此節點上建立圖片、動畫。"
643 },
644 "allpaths": {
645 "en": [
646 [
647 "Create",
648 "Display"
649 ]
650 ],
651 "zh": [
652 [
653 "新增",
654 "顯示"
655 ]
656 ]
657 },
658 "properties": [
659 {
660 "key": "parentId",
661 "type": "string",
662 "format": "string",
663 "label": {
664 "en": "ID of the parent object",
665 "zh": "父節點的物件ID"
666 },
667 "description": {
668 "en": "[en] Find the parent by this ID, that this object is attached to. If not set, this object will be attached to the root node.\r",
669 "zh": "用來安置這個物件的父節點的ID。 若未設定,則此物件會被安置於根節點。"
670 },
671 "suggest": [
672 "actions<displayId>"
673 ]
674 },
675 {
676 "key": "atIndex",
677 "type": "string",
678 "format": "string",
679 "label": {
680 "en": "The index to insert at under the parent node",
681 "zh": "父節點的子物件順序位置"
682 },
683 "description": {
684 "en": "[en] The Index to add the object at. Leave empty to add on top. Set 0 to add at bottom.\r",
685 "zh": "將此物件安插於父節點下的子物件順序位置。留白設定以安插於圖層頂部。設定0以安插於圖層底部,"
686 }
687 },
688 {
689 "key": "displayId",
690 "type": "string",
691 "format": "string",
692 "label": {
693 "en": "ID of the display object",
694 "zh": "物件的ID"
695 },
696 "description": {
697 "en": "[en] Define the ID of the display object.\r",
698 "zh": "定義物件的ID"
699 },
700 "required": 1
701 },
702 {
703 "key": "displayId",
704 "type": "string",
705 "label": {
706 "en": "ID of the layer container",
707 "zh": "圖層的ID"
708 },
709 "description": {
710 "en": "Define the ID of the display object.\nIf set, a layer container will be created, and children objects defined in the layout editor will be attached under the layer container.\nIf not set, children objects will be attached directly under parentNode.",
711 "zh": "定義圖層的ID。\n若有設定,則會產生新圖層節點,所有佈局中的圖片會被加到該圖層節點。\n若未設定,則不會產生新圖層,所有佈局中的圖片會被直接加到父節點之下。"
712 }
713 },
714 {
715 "key": "layout",
716 "type": "object",
717 "format": "CgEditorLayout",
718 "label": {
719 "en": "layout",
720 "zh": "圖片佈局"
721 },
722 "description": {
723 "en": "Layout the images of this layer.",
724 "zh": "設計這個圖層的佈局"
725 }
726 },
727 {
728 "key": "useEditorGravity",
729 "type": "boolean",
730 "label": {
731 "en": "Import Gravity settings from the editor.",
732 "zh": "載入佈局編輯器的地心引力設定"
733 },
734 "default": {
735 "en": "false"
736 }
737 },
738 {
739 "key": "disabled",
740 "type": "boolean",
741 "label": {
742 "en": "Disable",
743 "zh": "停用"
744 },
745 "default": {
746 "en": "false"
747 }
748 }
749 ]
750 },
751 "SpriteRemove": {
752 "project": "CgEventsLib",
753 "source": {
754 "path": "actions/display",
755 "filename": "SpriteRemove.action.ts"
756 },
757 "tostring": {
758 "en": "{displayId}"
759 },
760 "className": "SpriteRemoveAction",
761 "timestamp": 1606523608383,
762 "label": {
763 "en": "SpriteRemove",
764 "zh": "移除圖片"
765 },
766 "description": {
767 "en": "Remove a sprite from the stage.",
768 "zh": "從舞台上移除一個圖片。"
769 },
770 "allpaths": {
771 "en": [
772 [
773 "Remove",
774 "Display"
775 ]
776 ],
777 "zh": [
778 [
779 "移除",
780 "顯示"
781 ]
782 ]
783 },
784 "properties": [
785 {
786 "key": "displayId",
787 "type": "string",
788 "format": "string",
789 "label": {
790 "en": "ID of the display object",
791 "zh": "物件的ID"
792 },
793 "description": {
794 "en": "The ID of the target display object.",
795 "zh": "移除對象的物件ID"
796 },
797 "required": 1,
798 "suggest": [
799 "actions<displayId>"
800 ]
801 },
802 {
803 "key": "disabled",
804 "type": "boolean",
805 "label": {
806 "en": "Disable",
807 "zh": "停用"
808 },
809 "default": {
810 "en": "false"
811 }
812 }
813 ]
814 },
815 "MakeButton": {
816 "project": "CgEventsLib",
817 "source": {
818 "path": "actions/behavior",
819 "filename": "MakeButton.action.ts"
820 },
821 "tostring": {
822 "en": "{displayId} => {buttonId}"
823 },
824 "className": "MakeButtonAction",
825 "timestamp": 1606523608383,
826 "label": {
827 "en": "Make Button",
828 "zh": "製作按鈕"
829 },
830 "description": {
831 "en": "Turns a display object to a button.",
832 "zh": "將一個顯示物件加上按鈕的行為。"
833 },
834 "allpaths": {
835 "en": [
836 [
837 "Create",
838 "Interactive"
839 ]
840 ],
841 "zh": [
842 [
843 "新增",
844 "互動"
845 ]
846 ]
847 },
848 "properties": [
849 {
850 "key": "displayId",
851 "type": "string",
852 "format": "string",
853 "label": {
854 "en": "ID of the display object",
855 "zh": "顯示物件的ID"
856 },
857 "description": {
858 "en": "The ID of the target display object.",
859 "zh": "製作按鈕用的物件ID"
860 },
861 "required": 1,
862 "suggest": [
863 "actions<displayId>"
864 ]
865 },
866 {
867 "key": "buttonId",
868 "type": "string",
869 "format": "string",
870 "label": {
871 "en": "ID of the button",
872 "zh": "按鈕的ID"
873 },
874 "description": {
875 "en": "The ID of the button",
876 "zh": "按鈕的ID"
877 },
878 "required": 1
879 },
880 {
881 "key": "scaleEffect",
882 "type": "boolean",
883 "label": {
884 "en": "Add scaling effects when mouse over and down.",
885 "zh": "在滑鼠移上去及點擊時加上縮放效果"
886 }
887 },
888 {
889 "key": "disabled",
890 "type": "boolean",
891 "label": {
892 "en": "Disable",
893 "zh": "停用"
894 },
895 "default": {
896 "en": "false"
897 }
898 }
899 ]
900 },
901 "PlaySound": {
902 "project": "CgEventsLib",
903 "source": {
904 "path": "actions/sound",
905 "filename": "PlaySound.action.ts"
906 },
907 "tostring": {},
908 "className": "PlaySoundAction",
909 "timestamp": 1606523608383,
910 "label": {
911 "en": "PlaySound",
912 "zh": "播放音效"
913 },
914 "description": {
915 "en": "Play a sound effect",
916 "zh": "播放一段音效"
917 },
918 "allpaths": {
919 "en": [
920 [
921 "Create",
922 "Sound"
923 ]
924 ],
925 "zh": [
926 [
927 "新增",
928 "音效"
929 ]
930 ]
931 },
932 "properties": [
933 {
934 "key": "alias",
935 "type": "string",
936 "format": "string",
937 "label": {
938 "en": "Resource Alias",
939 "zh": "資源的代理名字"
940 },
941 "description": {
942 "en": "Use this resource to play a sound effect.",
943 "zh": "使用這個資源播放音效"
944 },
945 "required": 1,
946 "suggest": [
947 "resources<sound>"
948 ]
949 },
950 {
951 "key": "soundId",
952 "type": "string",
953 "format": "string",
954 "label": {
955 "en": "ID of the sound object",
956 "zh": "音效的實體ID"
957 },
958 "description": {
959 "en": "Define the ID of the sound instance.",
960 "zh": "定義播放音效的實體ID"
961 }
962 },
963 {
964 "key": "volume",
965 "type": "number",
966 "format": "string",
967 "label": {
968 "en": "Volume",
969 "zh": "音量"
970 },
971 "default": {
972 "en": "1"
973 },
974 "description": {
975 "en": "The volume of the sound.",
976 "zh": "音量大小"
977 }
978 },
979 {
980 "key": "fadeDuration",
981 "type": "number",
982 "format": "string",
983 "label": {
984 "en": "Fadein Duration",
985 "zh": "淡入的時間"
986 },
987 "unit": {
988 "en": "millisecond",
989 "zh": "毫秒"
990 },
991 "default": {
992 "en": "0"
993 }
994 },
995 {
996 "key": "loop",
997 "type": "boolean",
998 "label": {
999 "en": "Loop",
1000 "zh": "循環播放"
1001 },
1002 "description": {
1003 "en": "Set the sound instance to loop",
1004 "zh": "是否循環播放"
1005 }
1006 },
1007 {
1008 "key": "wait",
1009 "type": "boolean",
1010 "label": {
1011 "en": "Wait",
1012 "zh": "等待"
1013 },
1014 "default": {
1015 "en": "false"
1016 },
1017 "description": {
1018 "en": "If checked, this action will wait for the sound ends before triggering next action in this event.",
1019 "zh": "若勾選,則這個動作會等待音效播放結束再接續事件的下一個動作。"
1020 },
1021 "visible": "{loop}==false"
1022 },
1023 {
1024 "key": "disabled",
1025 "type": "boolean",
1026 "label": {
1027 "en": "Disable",
1028 "zh": "停用"
1029 },
1030 "default": {
1031 "en": "false"
1032 }
1033 }
1034 ]
1035 },
1036 "SetGlobal": {
1037 "project": "CgEventsLib",
1038 "source": {
1039 "path": "actions/system",
1040 "filename": "SetGlobal.action.ts"
1041 },
1042 "tostring": {
1043 "en": "{key}: {valueType} = {value}"
1044 },
1045 "className": "SetGlobalAction",
1046 "timestamp": 1606523608383,
1047 "label": {
1048 "en": "Set Global Variable",
1049 "zh": "儲存全域變數"
1050 },
1051 "description": {
1052 "en": "Store a value into a global variable",
1053 "zh": "將一個值儲存至一個全域變數"
1054 },
1055 "allpaths": {
1056 "en": [
1057 [
1058 "Variable"
1059 ]
1060 ],
1061 "zh": [
1062 [
1063 "變數"
1064 ]
1065 ]
1066 },
1067 "properties": [
1068 {
1069 "key": "key",
1070 "type": "string",
1071 "format": "string",
1072 "label": {
1073 "en": "Name of the variable",
1074 "zh": "變數名稱"
1075 },
1076 "description": {
1077 "en": "Define the variable name",
1078 "zh": "定義變數名稱"
1079 },
1080 "required": 1
1081 },
1082 {
1083 "key": "valueType",
1084 "type": "string",
1085 "label": {
1086 "en": "Value Type",
1087 "zh": "變數值型別"
1088 },
1089 "enum": [
1090 "string",
1091 "integer",
1092 "number",
1093 "boolean"
1094 ],
1095 "enumTitles": {
1096 "en": [
1097 "string",
1098 "integer",
1099 "number",
1100 "boolean"
1101 ],
1102 "zh": [
1103 "字串",
1104 "整數",
1105 "數字",
1106 "布林值"
1107 ]
1108 }
1109 },
1110 {
1111 "key": "value",
1112 "type": "string",
1113 "format": "string",
1114 "label": {
1115 "en": "Value",
1116 "zh": "變數的值"
1117 },
1118 "description": {
1119 "en": "Define the value to be stored in the variable",
1120 "zh": "定義欲儲存的變數的值"
1121 }
1122 },
1123 {
1124 "key": "disabled",
1125 "type": "boolean",
1126 "label": {
1127 "en": "Disable",
1128 "zh": "停用"
1129 },
1130 "default": {
1131 "en": "false"
1132 }
1133 }
1134 ]
1135 },
1136 "AddCamera": {
1137 "project": "CgEventsLib",
1138 "source": {
1139 "path": "actions/display",
1140 "filename": "AddCamera.action.ts"
1141 },
1142 "tostring": {},
1143 "className": "AddCameraAction",
1144 "timestamp": 1606523608383,
1145 "label": {
1146 "en": "AddCamera",
1147 "zh": "建立攝影機"
1148 },
1149 "description": {
1150 "en": "Create a camera to pan and focus on an assigned object.",
1151 "zh": "建立一個攝影機,以平移圖層、設定焦點。"
1152 },
1153 "allpaths": {
1154 "en": [
1155 [
1156 "Create",
1157 "Display"
1158 ]
1159 ],
1160 "zh": [
1161 [
1162 "新增",
1163 "顯示"
1164 ]
1165 ]
1166 },
1167 "properties": [
1168 {
1169 "key": "cameraId",
1170 "type": "string",
1171 "label": {
1172 "en": "ID of the camera",
1173 "zh": "攝影機ID"
1174 },
1175 "required": 1
1176 },
1177 {
1178 "key": "size",
1179 "type": "#Size",
1180 "label": {
1181 "en": "Camera Size",
1182 "zh": "攝影機尺寸"
1183 },
1184 "default": {
1185 "en": "{\"width\": \"{stage.width}\", \"height\": \"{stage.height}\"}"
1186 }
1187 },
1188 {
1189 "key": "displayId",
1190 "type": "string",
1191 "label": {
1192 "en": "ID of the camera stage",
1193 "zh": "攝影機舞台ID"
1194 },
1195 "description": {
1196 "en": "The display object that is positioned by the camera.",
1197 "zh": "由此攝影機更新其位置的顯示物件。"
1198 },
1199 "required": 1,
1200 "suggest": [
1201 "actions<displayId>"
1202 ]
1203 },
1204 {
1205 "key": "focusId",
1206 "type": "string",
1207 "label": {
1208 "en": "ID of the object to focus",
1209 "zh": "焦點物件ID"
1210 },
1211 "description": {
1212 "en": "The ID of the display object to focus.",
1213 "zh": "焦點物件ID"
1214 },
1215 "suggest": [
1216 "actions<displayId>"
1217 ]
1218 },
1219 {
1220 "key": "autoLinkTilingSprites",
1221 "type": "boolean",
1222 "label": {
1223 "en": "Auto Link TilingSprites",
1224 "zh": "自動連結連結鋪磚貼圖"
1225 },
1226 "default": {
1227 "en": "true"
1228 },
1229 "description": {
1230 "en": "If check, the camera will link all tiling sprites under the camera stage.\nThe move rate will be set to 1:1.\nUse the action \"Link TilingSprite To Camera\" if you want to customize the move rate.",
1231 "zh": "若勾選,此攝影機會自動連結在攝影機舞台之下的所有鋪磚貼圖。\n連結的移動比率為1:1\n若要自訂移動比率請使用動作「連結鋪磚貼圖與攝影機」。"
1232 }
1233 },
1234 {
1235 "key": "position",
1236 "type": "#Point",
1237 "label": {
1238 "en": "Initial Position",
1239 "zh": "初始位置"
1240 }
1241 },
1242 {
1243 "key": "rotate",
1244 "type": "boolean",
1245 "label": {
1246 "en": "Rotate with Focused Object",
1247 "zh": "隨焦點物件旋轉"
1248 }
1249 },
1250 {
1251 "key": "rotation",
1252 "type": "number",
1253 "format": "string",
1254 "label": {
1255 "en": "Initial Rotation",
1256 "zh": "初始角度"
1257 },
1258 "default": {
1259 "en": "0"
1260 },
1261 "visible": "{rotate}",
1262 "indent": 1
1263 },
1264 {
1265 "key": "area",
1266 "type": "#Area",
1267 "label": {
1268 "en": "Visible Game Area",
1269 "zh": "可視遊戲範圍"
1270 },
1271 "default": {
1272 "en": "{\"x\": -1000000, \"y\": -1000000, \"width\": 2000000, \"height\": 2000000, \"right\": 1000000, \"bottom\": 1000000}"
1273 }
1274 },
1275 {
1276 "key": "updateRatio",
1277 "type": "number",
1278 "label": {
1279 "en": "Update Move Distance Ratio",
1280 "zh": "更新移動距離比例"
1281 },
1282 "default": {
1283 "en": "0.5"
1284 },
1285 "description": {
1286 "en": "The ratio of moving distance against the distance to target position. Smaller value makes the move smoother.",
1287 "zh": "攝影機實際移動與目標距離的比例。越小的數字會讓移動越平順。"
1288 }
1289 },
1290 {
1291 "key": "updateMax",
1292 "type": "number",
1293 "label": {
1294 "en": "Max Move Distance Every Update",
1295 "zh": "最大更新移動距離"
1296 },
1297 "default": {
1298 "en": "32"
1299 },
1300 "description": {
1301 "en": "The max distance of camera moving in each update..",
1302 "zh": "攝影機每次更新最多可移動的距離。"
1303 }
1304 },
1305 {
1306 "key": "disabled",
1307 "type": "boolean",
1308 "label": {
1309 "en": "Disable",
1310 "zh": "停用"
1311 },
1312 "default": {
1313 "en": "false"
1314 }
1315 }
1316 ]
1317 },
1318 "StartEvents": {
1319 "project": "CgEventsLib",
1320 "source": {
1321 "path": "actions/system",
1322 "filename": "StartEvents.action.ts"
1323 },
1324 "tostring": {},
1325 "className": "StartEventsAction",
1326 "timestamp": 1606523608383,
1327 "label": {
1328 "en": "Start Events",
1329 "zh": "執行事件表"
1330 },
1331 "description": {
1332 "en": "Terminate current running events, then load and start the new .events file.",
1333 "zh": "終止目前運行的所有事件,然後下載新指定的.events檔案,並開始運行其中的事件。"
1334 },
1335 "allpaths": {
1336 "en": [
1337 [
1338 "System"
1339 ]
1340 ],
1341 "zh": [
1342 [
1343 "系統"
1344 ]
1345 ]
1346 },
1347 "properties": [
1348 {
1349 "key": "file",
1350 "type": "string",
1351 "format": "string",
1352 "label": {
1353 "en": "File(.event)",
1354 "zh": "檔案(.event)"
1355 },
1356 "required": 1,
1357 "suggest": [
1358 "sources<events>"
1359 ]
1360 },
1361 {
1362 "key": "keepGlobals",
1363 "type": "boolean",
1364 "label": {
1365 "en": "Pass the current global variables to the new events manager.",
1366 "zh": "傳遞全域變數至新表件表"
1367 }
1368 },
1369 {
1370 "key": "disabled",
1371 "type": "boolean",
1372 "label": {
1373 "en": "Disable",
1374 "zh": "停用"
1375 },
1376 "default": {
1377 "en": "false"
1378 }
1379 }
1380 ]
1381 },
1382 "SetMusic": {
1383 "project": "CgEventsLib",
1384 "source": {
1385 "path": "actions/sound",
1386 "filename": "SetMusic.action.ts"
1387 },
1388 "tostring": {},
1389 "className": "SetMusicAction",
1390 "timestamp": 1606523608383,
1391 "label": {
1392 "en": "Set Music",
1393 "zh": "設置音樂"
1394 },
1395 "description": {
1396 "en": "Play, Stop, a music. The music is always set to loop.",
1397 "zh": "播放、停止遊戲音樂"
1398 },
1399 "allpaths": {
1400 "en": [
1401 [
1402 "Create",
1403 "Sound"
1404 ]
1405 ],
1406 "zh": [
1407 [
1408 "新增",
1409 "音效"
1410 ]
1411 ]
1412 },
1413 "properties": [
1414 {
1415 "key": "alias",
1416 "type": "string",
1417 "format": "string",
1418 "label": {
1419 "en": "Resource Alias",
1420 "zh": "資源的代理名字"
1421 },
1422 "description": {
1423 "en": "Use this resource to play a music. If set to empty, the playing music will be stoped.",
1424 "zh": "使用這個資源播放音樂。 若設定空字串,則正在播放的音樂會被停止。"
1425 },
1426 "required": 1,
1427 "suggest": [
1428 "resources<sound>"
1429 ]
1430 },
1431 {
1432 "key": "volume",
1433 "type": "number",
1434 "format": "string",
1435 "label": {
1436 "en": "Volume",
1437 "zh": "音量"
1438 },
1439 "default": {
1440 "en": "1"
1441 },
1442 "description": {
1443 "en": "The volume of the sound.",
1444 "zh": "音量大小"
1445 }
1446 },
1447 {
1448 "key": "fadeDuration",
1449 "type": "number",
1450 "format": "string",
1451 "label": {
1452 "en": "Fadein Duration",
1453 "zh": "淡入的時間"
1454 },
1455 "unit": {
1456 "en": "millisecond",
1457 "zh": "毫秒"
1458 }
1459 },
1460 {
1461 "key": "disabled",
1462 "type": "boolean",
1463 "label": {
1464 "en": "Disable",
1465 "zh": "停用"
1466 },
1467 "default": {
1468 "en": "false"
1469 }
1470 }
1471 ]
1472 },
1473 "StopSound": {
1474 "project": "CgEventsLib",
1475 "source": {
1476 "path": "actions/sound",
1477 "filename": "StopSound.action.ts"
1478 },
1479 "tostring": {},
1480 "className": "StopSoundAction",
1481 "timestamp": 1606523608383,
1482 "label": {
1483 "en": "Stop Sound",
1484 "zh": "停止音效"
1485 },
1486 "description": {},
1487 "allpaths": {
1488 "en": [
1489 [
1490 "Remove",
1491 "Sound"
1492 ]
1493 ],
1494 "zh": [
1495 [
1496 "移除",
1497 "音效"
1498 ]
1499 ]
1500 },
1501 "properties": [
1502 {
1503 "key": "soundId",
1504 "type": "string",
1505 "format": "string",
1506 "label": {
1507 "en": "ID of the sound object",
1508 "zh": "音效的實體ID"
1509 },
1510 "description": {
1511 "en": "The ID of the sound instance to stop.",
1512 "zh": "欲停止播放的音效實體ID"
1513 },
1514 "required": 1,
1515 "suggest": [
1516 "actions<soundId>"
1517 ]
1518 },
1519 {
1520 "key": "fadeDuration",
1521 "type": "number",
1522 "format": "string",
1523 "label": {
1524 "en": "Fadeout Duration",
1525 "zh": "淡出的時間"
1526 },
1527 "unit": {
1528 "en": "millisecond",
1529 "zh": "毫秒"
1530 },
1531 "default": {
1532 "en": "0"
1533 }
1534 },
1535 {
1536 "key": "disabled",
1537 "type": "boolean",
1538 "label": {
1539 "en": "Disable",
1540 "zh": "停用"
1541 },
1542 "default": {
1543 "en": "false"
1544 }
1545 }
1546 ]
1547 },
1548 "AddPhysicsBody": {
1549 "project": "CgEventsLib",
1550 "source": {
1551 "path": "actions/behavior",
1552 "filename": "AddPhysicsBody.action.ts"
1553 },
1554 "tostring": {},
1555 "className": "AddPhysicsBodyAction",
1556 "timestamp": 1606523608383,
1557 "label": {
1558 "en": "Add Physics Body",
1559 "zh": "建立物理剛體"
1560 },
1561 "description": {},
1562 "allpaths": {
1563 "en": [
1564 [
1565 "Create",
1566 "Physics"
1567 ]
1568 ],
1569 "zh": [
1570 [
1571 "新增",
1572 "物理"
1573 ]
1574 ]
1575 },
1576 "properties": [
1577 {
1578 "key": "physicsId",
1579 "type": "string",
1580 "format": "string",
1581 "label": {
1582 "en": "ID of the physics body",
1583 "zh": "物理剛體的ID"
1584 },
1585 "description": {
1586 "en": "The ID of the target physics body.",
1587 "zh": "定義物理剛體的ID"
1588 },
1589 "required": 1
1590 },
1591 {
1592 "key": "bodyType",
1593 "type": "string",
1594 "label": {
1595 "en": "Body Type",
1596 "zh": "剛體類型"
1597 },
1598 "default": {
1599 "en": "static"
1600 },
1601 "description": {
1602 "en": "Choose a body type\nA static body is a body which isn’t affected by world forces it does not react to collisions.\nA dynamic body is a body which is affected by world forces and react to collisions.\nA kinematic body is an hybrid body which is not affected by forces and collisions like a static body but can moved with a linear velocity like a dynamic body.\n",
1603 "zh": "選擇剛體的類型\nstatic: 本身不移動,不被外力影響,也不因碰撞改變狀態。\ndynamic: 會受外力改變速度、位置,也會因碰撞而受力改變狀態。\nkinematic: 和static類似不受外力影響,但可以像dynamic以線性速度移動。"
1604 },
1605 "suggest": [
1606 "static",
1607 "dynamic",
1608 "kinematic"
1609 ]
1610 },
1611 {
1612 "key": "displayId",
1613 "type": "string",
1614 "format": "string",
1615 "label": {
1616 "en": "The ID of the display object",
1617 "zh": "連結顯示物件的ID"
1618 },
1619 "description": {
1620 "en": "The physics object will sync position/rotation with the display object.",
1621 "zh": "此物理剛體會同步位置、旋轉角度至連結的顯示物件。"
1622 },
1623 "suggest": [
1624 "actions<displayId>"
1625 ]
1626 },
1627 {
1628 "key": "syncPosition",
1629 "type": "boolean",
1630 "format": "string",
1631 "label": {
1632 "en": "Sync Position",
1633 "zh": "同步顯示物件的位置"
1634 },
1635 "visible": "{displayId}",
1636 "suggest": [
1637 "true",
1638 "false"
1639 ],
1640 "suggestFilter": "none"
1641 },
1642 {
1643 "key": "syncRotation",
1644 "type": "boolean",
1645 "format": "string",
1646 "label": {
1647 "en": "Sync Rotation",
1648 "zh": "同步顯示物件的旋轉角度"
1649 },
1650 "visible": "{displayId}",
1651 "suggest": [
1652 "true",
1653 "false"
1654 ],
1655 "suggestFilter": "none"
1656 },
1657 {
1658 "key": "linearDamping",
1659 "type": "number",
1660 "format": "string",
1661 "label": {
1662 "en": "Linear Damping",
1663 "zh": "線性阻尼"
1664 },
1665 "default": {
1666 "en": "0"
1667 }
1668 },
1669 {
1670 "key": "angularDamping",
1671 "type": "number",
1672 "format": "string",
1673 "label": {
1674 "en": "Angular Damping",
1675 "zh": "旋轉阻尼"
1676 },
1677 "default": {
1678 "en": "0"
1679 }
1680 },
1681 {
1682 "key": "fixedRotation",
1683 "type": "boolean",
1684 "label": {
1685 "en": "Fixed Rotation",
1686 "zh": "固定角度"
1687 },
1688 "default": {
1689 "en": "false"
1690 }
1691 },
1692 {
1693 "key": "position",
1694 "type": "#Point",
1695 "label": {
1696 "en": "Position",
1697 "zh": "位置"
1698 }
1699 },
1700 {
1701 "key": "velocity",
1702 "type": "#Point",
1703 "label": {
1704 "en": "Linear Velocity.X",
1705 "zh": "線性速度"
1706 }
1707 },
1708 {
1709 "key": "av",
1710 "type": "number",
1711 "format": "string",
1712 "label": {
1713 "en": "Angular Velocity",
1714 "zh": "角速度"
1715 },
1716 "default": {
1717 "en": "0"
1718 }
1719 },
1720 {
1721 "key": "fixtures",
1722 "type": "array",
1723 "format": "tabs",
1724 "label": {
1725 "en": "Fixtures",
1726 "zh": "組件"
1727 },
1728 "arrayItem": "#B2Fixture"
1729 },
1730 {
1731 "key": "disabled",
1732 "type": "boolean",
1733 "label": {
1734 "en": "Disable",
1735 "zh": "停用"
1736 },
1737 "default": {
1738 "en": "false"
1739 }
1740 }
1741 ]
1742 },
1743 "SetPhysics": {
1744 "project": "CgEventsLib",
1745 "source": {
1746 "path": "actions/behavior",
1747 "filename": "SetPhysics.action.ts"
1748 },
1749 "tostring": {},
1750 "className": "SetPhysicsAction",
1751 "timestamp": 1606523608383,
1752 "label": {
1753 "en": "Physics Settings",
1754 "zh": "物理環境"
1755 },
1756 "description": {
1757 "en": "Config Physics world environment. Include Gravity and DebugDrawing.",
1758 "zh": "設定物理環境的參數,包括地心引力及偵錯繪圖等。"
1759 },
1760 "allpaths": {
1761 "en": [
1762 [
1763 "Update",
1764 "Physics"
1765 ]
1766 ],
1767 "zh": [
1768 [
1769 "更新",
1770 "物理"
1771 ]
1772 ]
1773 },
1774 "properties": [
1775 {
1776 "key": "gravity",
1777 "type": "#Point",
1778 "label": {
1779 "en": "Gravity",
1780 "zh": "地心引力"
1781 },
1782 "default": {
1783 "en": "{\"x\": 0, \"y\": 30}"
1784 }
1785 },
1786 {
1787 "key": "debugDraw",
1788 "type": "boolean",
1789 "label": {
1790 "en": "Debug Draw",
1791 "zh": "偵錯繪圖"
1792 }
1793 },
1794 {
1795 "key": "debugDrawParentId",
1796 "type": "string",
1797 "label": {
1798 "en": "Debug Draw Parent",
1799 "zh": "偵錯繪圖的父節點"
1800 },
1801 "visible": "{debugDraw}",
1802 "indent": 1,
1803 "suggest": [
1804 "actions<displayId>"
1805 ]
1806 },
1807 {
1808 "key": "disabled",
1809 "type": "boolean",
1810 "label": {
1811 "en": "Disable",
1812 "zh": "停用"
1813 },
1814 "default": {
1815 "en": "false"
1816 }
1817 }
1818 ]
1819 },
1820 "UpdatePhysicsBody": {
1821 "project": "CgEventsLib",
1822 "source": {
1823 "path": "actions/behavior",
1824 "filename": "UpdatePhysicsBody.action.ts"
1825 },
1826 "tostring": {},
1827 "className": "UpdatePhysicsBodyAction",
1828 "timestamp": 1606523608383,
1829 "label": {
1830 "en": "Update Physics Body",
1831 "zh": "更新物理剛體"
1832 },
1833 "description": {},
1834 "allpaths": {
1835 "en": [
1836 [
1837 "Update",
1838 "Physics"
1839 ]
1840 ],
1841 "zh": [
1842 [
1843 "更新",
1844 "物理"
1845 ]
1846 ]
1847 },
1848 "properties": [
1849 {
1850 "key": "physicsId",
1851 "type": "string",
1852 "format": "string",
1853 "label": {
1854 "en": "ID of the physics body",
1855 "zh": "物理剛體的ID"
1856 },
1857 "info": {
1858 "en": "localVar: this"
1859 },
1860 "required": 1,
1861 "suggest": [
1862 "actions<physicsId>"
1863 ]
1864 },
1865 {
1866 "key": "setBodyType",
1867 "type": "boolean",
1868 "label": {
1869 "en": "Set Body Type",
1870 "zh": "設定剛體類別"
1871 }
1872 },
1873 {
1874 "key": "bodyType",
1875 "type": "string",
1876 "label": {
1877 "en": "Body Type",
1878 "zh": "剛體類別"
1879 },
1880 "default": {
1881 "en": "dynamic"
1882 },
1883 "visible": "{setBodyType}",
1884 "enum": [
1885 "static",
1886 "dynamic",
1887 "kinematic"
1888 ],
1889 "enumTitles": {
1890 "en": [
1891 "static",
1892 "dynamic",
1893 "kinematic"
1894 ],
1895 "zh": [
1896 "靜態物件",
1897 "動態物件",
1898 "運動物件"
1899 ]
1900 }
1901 },
1902 {
1903 "key": "setPosition",
1904 "type": "boolean",
1905 "label": {
1906 "en": "Set Position",
1907 "zh": "設定位置"
1908 }
1909 },
1910 {
1911 "key": "position",
1912 "type": "#Point",
1913 "label": {
1914 "en": "Position",
1915 "zh": "位置"
1916 },
1917 "default": {
1918 "en": "{\"x\": \"{this.x}\", \"y\": \"{this.y}\"}"
1919 },
1920 "visible": "{setPosition}",
1921 "indent": 1
1922 },
1923 {
1924 "key": "setRotation",
1925 "type": "boolean",
1926 "label": {
1927 "en": "Set Rotation",
1928 "zh": "設定旋轉角度"
1929 }
1930 },
1931 {
1932 "key": "rotation",
1933 "type": "number",
1934 "format": "string",
1935 "label": {
1936 "en": "Rotation",
1937 "zh": "旋轉角度"
1938 },
1939 "unit": {
1940 "en": "degrees",
1941 "zh": "角度"
1942 },
1943 "default": {
1944 "en": "number({this.rotation} rad, deg)"
1945 },
1946 "visible": "{setRotation}",
1947 "indent": 1
1948 },
1949 {
1950 "key": "setVelocity",
1951 "type": "boolean",
1952 "label": {
1953 "en": "Set Velocity",
1954 "zh": "設定速度"
1955 }
1956 },
1957 {
1958 "key": "velocity",
1959 "type": "#Point",
1960 "label": {
1961 "en": "Velocity",
1962 "zh": "速度"
1963 },
1964 "default": {
1965 "en": "{\"x\": \"{this.velocityX}\", \"y\": \"{this.velocityY}\"}"
1966 },
1967 "visible": "{setVelocity}",
1968 "indent": 1
1969 },
1970 {
1971 "key": "addForce",
1972 "type": "boolean",
1973 "label": {
1974 "en": "Add Force",
1975 "zh": "施加原力"
1976 }
1977 },
1978 {
1979 "key": "force",
1980 "type": "#Point",
1981 "label": {
1982 "en": "Force",
1983 "zh": "原力向量"
1984 },
1985 "visible": "{addForce}",
1986 "indent": 1
1987 },
1988 {
1989 "key": "addImpulse",
1990 "type": "boolean",
1991 "label": {
1992 "en": "Add Impulse",
1993 "zh": "施加衝擊"
1994 }
1995 },
1996 {
1997 "key": "impulse",
1998 "type": "#Point",
1999 "label": {
2000 "en": "Impulse",
2001 "zh": "衝力向量"
2002 },
2003 "visible": "{addImpulse}",
2004 "indent": 1
2005 },
2006 {
2007 "key": "setAngularVelocity",
2008 "type": "boolean",
2009 "label": {
2010 "en": "Set Angular Velocity",
2011 "zh": "設定角速度"
2012 }
2013 },
2014 {
2015 "key": "angularVelocity",
2016 "type": "number",
2017 "format": "string",
2018 "label": {
2019 "en": "Angular Velocity",
2020 "zh": "角速度"
2021 },
2022 "default": {
2023 "en": "{this.angularVelocity}"
2024 },
2025 "visible": "{setAngularVelocity}",
2026 "indent": 1
2027 },
2028 {
2029 "key": "addTorque",
2030 "type": "boolean",
2031 "label": {
2032 "en": "Add Torque",
2033 "zh": "施加轉動力矩"
2034 }
2035 },
2036 {
2037 "key": "torque",
2038 "type": "number",
2039 "format": "string",
2040 "label": {
2041 "en": "Angular Velocity",
2042 "zh": "轉動力矩"
2043 },
2044 "visible": "{addTorque}",
2045 "indent": 1
2046 },
2047 {
2048 "key": "addAngularImpulse",
2049 "type": "boolean",
2050 "label": {
2051 "en": "Add Angular Impulse",
2052 "zh": "施加轉動衝力"
2053 }
2054 },
2055 {
2056 "key": "angularImpulse",
2057 "type": "number",
2058 "format": "string",
2059 "label": {
2060 "en": "Angular Impulse",
2061 "zh": "轉動衝力"
2062 },
2063 "visible": "{addAngularImpulse}",
2064 "indent": 1
2065 },
2066 {
2067 "key": "setDisplayObject",
2068 "type": "boolean",
2069 "label": {
2070 "en": "Reset the linked display object",
2071 "zh": "重新指定連結的顯示物件"
2072 }
2073 },
2074 {
2075 "key": "displayId",
2076 "type": "string",
2077 "format": "string",
2078 "label": {
2079 "en": "The ID of the display object",
2080 "zh": "連結顯示物件的ID"
2081 },
2082 "description": {
2083 "en": "The physics object will sync position/rotation with the display object.",
2084 "zh": "此物理剛體會同步位置、旋轉角度至連結的顯示物件。"
2085 },
2086 "visible": "{setDisplayObject}",
2087 "indent": 1,
2088 "suggest": [
2089 "actions<displayId>"
2090 ]
2091 },
2092 {
2093 "key": "syncPosition",
2094 "type": "boolean",
2095 "format": "string",
2096 "label": {
2097 "en": "Sync Position",
2098 "zh": "同步顯示物件的位置"
2099 },
2100 "info": {
2101 "en": "Leave empty to not change it",
2102 "zh": "留空以維持原值"
2103 },
2104 "infoButton": 0,
2105 "visible": "{setDisplayObject}",
2106 "indent": 1,
2107 "suggest": [
2108 " ",
2109 "true",
2110 "false"
2111 ],
2112 "suggestFilter": "none"
2113 },
2114 {
2115 "key": "syncRotation",
2116 "type": "boolean",
2117 "format": "string",
2118 "label": {
2119 "en": "Sync Rotation",
2120 "zh": "同步顯示物件的旋轉角度"
2121 },
2122 "info": {
2123 "en": "Leave empty to not change it",
2124 "zh": "留空以維持原值"
2125 },
2126 "description": {
2127 "en": "Leave empty to not change it.",
2128 "zh": "留空以維持原值"
2129 },
2130 "infoButton": 0,
2131 "visible": "{setDisplayObject}",
2132 "indent": 1,
2133 "suggest": [
2134 " ",
2135 "true",
2136 "false"
2137 ],
2138 "suggestFilter": "none"
2139 },
2140 {
2141 "key": "setTween",
2142 "type": "boolean",
2143 "label": {
2144 "en": "Set Tween",
2145 "zh": "設定補間動畫"
2146 }
2147 },
2148 {
2149 "key": "tween",
2150 "type": "#Tween",
2151 "label": {
2152 "en": "Tween",
2153 "zh": "補間動畫"
2154 },
2155 "visible": "{setTween}",
2156 "indent": 1
2157 },
2158 {
2159 "key": "disabled",
2160 "type": "boolean",
2161 "label": {
2162 "en": "Disable",
2163 "zh": "停用"
2164 },
2165 "default": {
2166 "en": "false"
2167 }
2168 }
2169 ]
2170 },
2171 "UpdateText": {
2172 "project": "CgEventsLib",
2173 "source": {
2174 "path": "actions/display",
2175 "filename": "UpdateText.action.ts"
2176 },
2177 "tostring": {},
2178 "className": "UpdateTextAction",
2179 "timestamp": 1606523608383,
2180 "label": {
2181 "en": "Update Text",
2182 "zh": "更新文字"
2183 },
2184 "description": {
2185 "en": "Description of this action in english."
2186 },
2187 "allpaths": {
2188 "en": [
2189 [
2190 "Update",
2191 "Display"
2192 ]
2193 ],
2194 "zh": [
2195 [
2196 "更新",
2197 "顯示"
2198 ]
2199 ]
2200 },
2201 "properties": [
2202 {
2203 "key": "displayId",
2204 "type": "string",
2205 "format": "string",
2206 "label": {
2207 "en": "ID of the display object",
2208 "zh": "物件的ID"
2209 },
2210 "description": {
2211 "en": "The ID of the target display object. Use 'this' as a variable to indicate this object in an expression.",
2212 "zh": "操縱對象的物件ID。使用區域變數'this'在表達式中取得這個物件。"
2213 },
2214 "required": 1,
2215 "suggest": [
2216 "actions<displayId>"
2217 ]
2218 },
2219 {
2220 "key": "text",
2221 "type": "string",
2222 "format": "textarea",
2223 "label": {
2224 "en": "text",
2225 "zh": "文字"
2226 },
2227 "default": {
2228 "en": "{this.text}"
2229 }
2230 },
2231 {
2232 "key": "setColor",
2233 "type": "boolean",
2234 "label": {
2235 "en": "Set Color",
2236 "zh": "設定著色"
2237 }
2238 },
2239 {
2240 "key": "fill",
2241 "type": "string",
2242 "format": "color",
2243 "label": {
2244 "en": "Fill Color",
2245 "zh": "字體顏色"
2246 },
2247 "visible": "{setColor}",
2248 "indent": 1
2249 },
2250 {
2251 "key": "stroke",
2252 "type": "string",
2253 "format": "color",
2254 "label": {
2255 "en": "Stroke Color",
2256 "zh": "字邊顏色"
2257 },
2258 "visible": "{setColor}",
2259 "indent": 1
2260 },
2261 {
2262 "key": "disabled",
2263 "type": "boolean",
2264 "label": {
2265 "en": "Disable",
2266 "zh": "停用"
2267 },
2268 "default": {
2269 "en": "false"
2270 }
2271 }
2272 ]
2273 },
2274 "Console": {
2275 "project": "CgEventsLib",
2276 "source": {
2277 "path": "actions/system",
2278 "filename": "Console.action.ts"
2279 },
2280 "tostring": {},
2281 "className": "ConsoleAction",
2282 "timestamp": 1606523608383,
2283 "label": {
2284 "en": "Console Log",
2285 "zh": "控制台輸出"
2286 },
2287 "description": {
2288 "en": "Log texts in the console output (For debug purpose).",
2289 "zh": "在控制台輸出文字(偵錯使用)。"
2290 },
2291 "allpaths": {
2292 "en": [
2293 [
2294 "System"
2295 ]
2296 ],
2297 "zh": [
2298 [
2299 "系統"
2300 ]
2301 ]
2302 },
2303 "properties": [
2304 {
2305 "key": "logType",
2306 "type": "string",
2307 "label": {
2308 "en": "Log Type",
2309 "zh": "輸出型式"
2310 },
2311 "enum": [
2312 "log",
2313 "error"
2314 ],
2315 "enumTitles": {
2316 "en": [
2317 "Normal Output",
2318 "Error Output"
2319 ],
2320 "zh": [
2321 "一般輸出",
2322 "錯誤警示"
2323 ]
2324 }
2325 },
2326 {
2327 "key": "text",
2328 "type": "string",
2329 "format": "string",
2330 "label": {
2331 "en": "Output Text",
2332 "zh": "輸出文字"
2333 }
2334 },
2335 {
2336 "key": "value",
2337 "type": "string",
2338 "format": "string",
2339 "label": {
2340 "en": "輸出物件"
2341 }
2342 },
2343 {
2344 "key": "disabled",
2345 "type": "boolean",
2346 "label": {
2347 "en": "Disable",
2348 "zh": "停用"
2349 },
2350 "default": {
2351 "en": "false"
2352 }
2353 }
2354 ]
2355 },
2356 "Wait": {
2357 "project": "CgEventsLib",
2358 "source": {
2359 "path": "actions/system",
2360 "filename": "Wait.action.ts"
2361 },
2362 "tostring": {},
2363 "className": "WaitAction",
2364 "timestamp": 1606523608383,
2365 "label": {
2366 "en": "Wait",
2367 "zh": "等待"
2368 },
2369 "description": {
2370 "en": "Wait a duration, and delay the following actions in the same event.",
2371 "zh": "等待一段時間,讓同一個事件中這個動作之後的其他動作延遲執行。"
2372 },
2373 "allpaths": {
2374 "en": [
2375 [
2376 "System"
2377 ]
2378 ],
2379 "zh": [
2380 [
2381 "系統"
2382 ]
2383 ]
2384 },
2385 "properties": [
2386 {
2387 "key": "duration",
2388 "type": "number",
2389 "format": "string",
2390 "label": {
2391 "en": "Duration",
2392 "zh": "時間"
2393 },
2394 "unit": {
2395 "en": "millisecond",
2396 "zh": "毫秒"
2397 },
2398 "default": {
2399 "en": "1000"
2400 },
2401 "required": 1
2402 },
2403 {
2404 "key": "disabled",
2405 "type": "boolean",
2406 "label": {
2407 "en": "Disable",
2408 "zh": "停用"
2409 },
2410 "default": {
2411 "en": "false"
2412 }
2413 }
2414 ]
2415 },
2416 "PhysicsController8Dirs": {
2417 "project": "CgEventsLib",
2418 "source": {
2419 "path": "actions/behavior",
2420 "filename": "PhysicsController8Dirs.action.ts"
2421 },
2422 "tostring": {},
2423 "className": "PhysicsController8DirsAction",
2424 "timestamp": 1606523608383,
2425 "label": {
2426 "en": "Eight-Directions Physics Controller",
2427 "zh": "八方向物理控制器"
2428 },
2429 "description": {
2430 "en": "Create a Eight-Directions Controller to control a physics object. Better fit for up-down view with zero gravity.",
2431 "zh": "啟動一個八方向的物理控制器,操縱一個物理物件,適合上視角平面遊戲。"
2432 },
2433 "allpaths": {
2434 "en": [
2435 [
2436 "Create",
2437 "Physics",
2438 "Controller"
2439 ]
2440 ],
2441 "zh": [
2442 [
2443 "新增",
2444 "物理",
2445 "控制器"
2446 ]
2447 ]
2448 },
2449 "properties": [
2450 {
2451 "key": "controllerId",
2452 "type": "string",
2453 "format": "string",
2454 "label": {
2455 "en": "ID of the Controller",
2456 "zh": "控制器的ID"
2457 },
2458 "required": 1
2459 },
2460 {
2461 "key": "physicsId",
2462 "type": "string",
2463 "label": {
2464 "en": "ID of the physics body",
2465 "zh": "物理剛體的ID"
2466 },
2467 "description": {
2468 "en": "The ID of the target physics body.",
2469 "zh": "控制對象的物理剛體ID"
2470 },
2471 "required": 1,
2472 "suggest": [
2473 "actions<physicsId>"
2474 ]
2475 },
2476 {
2477 "key": "supportWASD",
2478 "type": "boolean",
2479 "label": {
2480 "en": "Support WASD",
2481 "zh": "支援WASD鍵"
2482 },
2483 "default": {
2484 "en": "true"
2485 }
2486 },
2487 {
2488 "key": "speed",
2489 "type": "number",
2490 "format": "string",
2491 "label": {
2492 "en": "Max Speed",
2493 "zh": "最高速度"
2494 },
2495 "default": {
2496 "en": "50"
2497 }
2498 },
2499 {
2500 "key": "accRatio",
2501 "type": "number",
2502 "label": {
2503 "en": "Accelerate Ratio",
2504 "zh": "加速比率"
2505 },
2506 "default": {
2507 "en": "0.5"
2508 },
2509 "description": {
2510 "en": "The ratio to accelerate to the max speed every update frame(0 to 1).",
2511 "zh": "每次更新時加速到最高速度的比率(0到1)。"
2512 }
2513 },
2514 {
2515 "key": "turnRatio",
2516 "type": "number",
2517 "label": {
2518 "en": "Turn Ratio",
2519 "zh": "轉頭更新速率"
2520 },
2521 "default": {
2522 "en": "0.5"
2523 },
2524 "description": {
2525 "en": "The physics object turns toward the moving direction every updates in this turn ratio (0 to 1)\nSmaller value turns slower. Set 0 to not turn to moving direction.",
2526 "zh": "物理剛體會在每次更新時以此速率轉向行進方向(0到1)\n設定越小的值會使轉向越慢。設定0則不轉向。"
2527 }
2528 },
2529 {
2530 "key": "turnShift",
2531 "type": "number",
2532 "label": {
2533 "en": "Turn Shift",
2534 "zh": "轉頭角度偏移"
2535 },
2536 "unit": {
2537 "en": "degrees",
2538 "zh": "角度"
2539 },
2540 "default": {
2541 "en": "0"
2542 },
2543 "description": {
2544 "en": "Make the head turns to moving direction plus the turn-shift degrees.",
2545 "zh": "讓物體轉向行進方向的角度加上此角度偏移。"
2546 }
2547 },
2548 {
2549 "key": "disabled",
2550 "type": "boolean",
2551 "label": {
2552 "en": "Disable",
2553 "zh": "停用"
2554 },
2555 "default": {
2556 "en": "false"
2557 }
2558 }
2559 ]
2560 },
2561 "RemoveObject": {
2562 "project": "CgEventsLib",
2563 "source": {
2564 "path": "actions/behavior",
2565 "filename": "RemoveObject.action.ts"
2566 },
2567 "tostring": {},
2568 "className": "RemoveObjectAction",
2569 "timestamp": 1606523608383,
2570 "label": {
2571 "en": "Remove Object",
2572 "zh": "移除物件"
2573 },
2574 "description": {
2575 "en": "Remove an object(display, physics, controller, and etc.) from the game.",
2576 "zh": "將一個物件從遊戲中移除(可移除顯示物件、物理剛體、控制器等)。"
2577 },
2578 "allpaths": {
2579 "en": [
2580 [
2581 "Remove"
2582 ]
2583 ],
2584 "zh": [
2585 [
2586 "移除"
2587 ]
2588 ]
2589 },
2590 "properties": [
2591 {
2592 "key": "objectId",
2593 "type": "string",
2594 "format": "string",
2595 "label": {
2596 "en": "Object ID",
2597 "zh": "物件ID"
2598 },
2599 "required": 1,
2600 "suggest": [
2601 "actions<displayId,controllerId,physicsId,tweenId>"
2602 ]
2603 },
2604 {
2605 "key": "disabled",
2606 "type": "boolean",
2607 "label": {
2608 "en": "Disable",
2609 "zh": "停用"
2610 },
2611 "default": {
2612 "en": "false"
2613 }
2614 }
2615 ]
2616 },
2617 "SysContextmenu": {
2618 "project": "CgEventsLib",
2619 "source": {
2620 "path": "actions/system",
2621 "filename": "SysContextmenu.action.ts"
2622 },
2623 "tostring": {},
2624 "className": "SysContextmenuAction",
2625 "timestamp": 1606523608383,
2626 "label": {
2627 "en": "Disable System Contextmenu",
2628 "zh": "關閉系統右鍵選單"
2629 },
2630 "description": {
2631 "en": "[en] Disable System Contextmenu when mouse right button clicked.",
2632 "zh": "關閉系統右鍵選單"
2633 },
2634 "allpaths": {
2635 "en": [
2636 [
2637 "System"
2638 ]
2639 ],
2640 "zh": [
2641 [
2642 "系統"
2643 ]
2644 ]
2645 },
2646 "properties": [
2647 {
2648 "key": "act",
2649 "type": "string",
2650 "label": {
2651 "en": "Action",
2652 "zh": "動作"
2653 },
2654 "enum": [
2655 "disable",
2656 "enable"
2657 ],
2658 "enumTitles": {
2659 "en": [
2660 "Disable",
2661 "Enable"
2662 ],
2663 "zh": [
2664 "關閉",
2665 "不關閉"
2666 ]
2667 }
2668 },
2669 {
2670 "key": "disabled",
2671 "type": "boolean",
2672 "label": {
2673 "en": "Disable",
2674 "zh": "停用"
2675 },
2676 "default": {
2677 "en": "false"
2678 }
2679 }
2680 ]
2681 },
2682 "PhysicsControllerFps": {
2683 "project": "CgEventsLib",
2684 "source": {
2685 "path": "actions/behavior",
2686 "filename": "PhysicsControllerFps.action.ts"
2687 },
2688 "tostring": {},
2689 "className": "PhysicsControllerFpsAction",
2690 "timestamp": 1606523608383,
2691 "label": {
2692 "en": "FPS Physics Controller",
2693 "zh": "類第一人視角物理控制器"
2694 },
2695 "description": {
2696 "en": "Create a FPS-like Controller to control a physics object. Left/Right to turn, Up/Down to move forward and backward.",
2697 "zh": "啟動一個類似第一人視角的物理控制器,操縱一個物理物件,左右鍵轉向,前後鍵行走。"
2698 },
2699 "allpaths": {
2700 "en": [
2701 [
2702 "Create",
2703 "Physics",
2704 "Controller"
2705 ]
2706 ],
2707 "zh": [
2708 [
2709 "新增",
2710 "物理",
2711 "控制器"
2712 ]
2713 ]
2714 },
2715 "properties": [
2716 {
2717 "key": "controllerId",
2718 "type": "string",
2719 "format": "string",
2720 "label": {
2721 "en": "ID of the Controller",
2722 "zh": "控制器的ID"
2723 },
2724 "required": 1
2725 },
2726 {
2727 "key": "physicsId",
2728 "type": "string",
2729 "label": {
2730 "en": "ID of the physics body",
2731 "zh": "物理剛體的ID"
2732 },
2733 "description": {
2734 "en": "The ID of the target physics body.",
2735 "zh": "控制對象的物理剛體ID"
2736 },
2737 "required": 1,
2738 "suggest": [
2739 "actions<physicsId>"
2740 ]
2741 },
2742 {
2743 "key": "supportWASD",
2744 "type": "boolean",
2745 "label": {
2746 "en": "Support WASD",
2747 "zh": "支援WASD鍵"
2748 },
2749 "default": {
2750 "en": "true"
2751 }
2752 },
2753 {
2754 "key": "supportShift",
2755 "type": "boolean",
2756 "label": {
2757 "en": "Support Shift",
2758 "zh": "支援Shift鍵"
2759 },
2760 "default": {
2761 "en": "true"
2762 },
2763 "description": {
2764 "en": "Hold Shift key to move without turning.",
2765 "zh": "按住Shift鍵以不轉向平移。"
2766 }
2767 },
2768 {
2769 "key": "speed",
2770 "type": "number",
2771 "format": "string",
2772 "label": {
2773 "en": "Max Speed",
2774 "zh": "最高速度"
2775 },
2776 "default": {
2777 "en": "50"
2778 }
2779 },
2780 {
2781 "key": "accRatio",
2782 "type": "number",
2783 "label": {
2784 "en": "Accelerate Ratio",
2785 "zh": "加速比率"
2786 },
2787 "default": {
2788 "en": "0.5"
2789 },
2790 "description": {
2791 "en": "The ratio to accelerate to the max speed every update frame(0 to 1).",
2792 "zh": "每次更新時加速到最高速度的比率(0到1)。"
2793 }
2794 },
2795 {
2796 "key": "turnSpeed",
2797 "type": "number",
2798 "label": {
2799 "en": "Turn Speed",
2800 "zh": "轉頭速度"
2801 },
2802 "default": {
2803 "en": "0.3"
2804 }
2805 },
2806 {
2807 "key": "turnShift",
2808 "type": "number",
2809 "label": {
2810 "en": "Turn Shift",
2811 "zh": "轉頭角度偏移"
2812 },
2813 "unit": {
2814 "en": "degrees",
2815 "zh": "角度"
2816 },
2817 "default": {
2818 "en": "0"
2819 },
2820 "description": {
2821 "en": "Make the head turns to moving direction plus the turn-shift degrees.",
2822 "zh": "讓物體轉向行進方向的角度加上此角度偏移。"
2823 }
2824 },
2825 {
2826 "key": "disabled",
2827 "type": "boolean",
2828 "label": {
2829 "en": "Disable",
2830 "zh": "停用"
2831 },
2832 "default": {
2833 "en": "false"
2834 }
2835 }
2836 ]
2837 },
2838 "PhysicsControllerPlatformer": {
2839 "project": "CgEventsLib",
2840 "source": {
2841 "path": "actions/behavior",
2842 "filename": "PhysicsControllerPlatformer.action.ts"
2843 },
2844 "tostring": {},
2845 "className": "PhysicsControllerPlatformerAction",
2846 "timestamp": 1606523608383,
2847 "label": {
2848 "en": "Platformer Physics Controller",
2849 "zh": "側面視角平台遊戲的控制器"
2850 },
2851 "description": {
2852 "en": "Create a platformer game controller. Left/Right to walk, Up to jump",
2853 "zh": "新增一個類似馬利歐側面視角平台遊戲的控制器。左右鍵行走,上鍵跳躍。"
2854 },
2855 "allpaths": {
2856 "en": [
2857 [
2858 "Create",
2859 "Physics",
2860 "Controller"
2861 ]
2862 ],
2863 "zh": [
2864 [
2865 "新增",
2866 "物理",
2867 "控制器"
2868 ]
2869 ]
2870 },
2871 "properties": [
2872 {
2873 "key": "controllerId",
2874 "type": "string",
2875 "format": "string",
2876 "label": {
2877 "en": "ID of the Controller",
2878 "zh": "控制器的ID"
2879 },
2880 "required": 1
2881 },
2882 {
2883 "key": "physicsId",
2884 "type": "string",
2885 "label": {
2886 "en": "ID of the physics body",
2887 "zh": "物理剛體的ID"
2888 },
2889 "description": {
2890 "en": "The ID of the target physics body.",
2891 "zh": "控制對象的物理剛體ID"
2892 },
2893 "required": 1,
2894 "suggest": [
2895 "actions<physicsId>"
2896 ]
2897 },
2898 {
2899 "key": "supportWASD",
2900 "type": "boolean",
2901 "label": {
2902 "en": "Support WASD",
2903 "zh": "支援WASD鍵"
2904 },
2905 "default": {
2906 "en": "true"
2907 }
2908 },
2909 {
2910 "key": "speed",
2911 "type": "number",
2912 "format": "string",
2913 "label": {
2914 "en": "Max Speed",
2915 "zh": "最高速度"
2916 },
2917 "default": {
2918 "en": "50"
2919 }
2920 },
2921 {
2922 "key": "accRatio",
2923 "type": "number",
2924 "label": {
2925 "en": "Accelerate Ratio",
2926 "zh": "加速比率"
2927 },
2928 "default": {
2929 "en": "0.5"
2930 },
2931 "description": {
2932 "en": "The ratio to accelerate to the max speed every update frame(0 to 1).",
2933 "zh": "每次更新時加速到最高速度的比率(0到1)。"
2934 }
2935 },
2936 {
2937 "key": "jumpSpeed",
2938 "type": "number",
2939 "format": "string",
2940 "label": {
2941 "en": "Jump Initial Speed",
2942 "zh": "跳躍時的初速度"
2943 },
2944 "default": {
2945 "en": "150"
2946 }
2947 },
2948 {
2949 "key": "disabled",
2950 "type": "boolean",
2951 "label": {
2952 "en": "Disable",
2953 "zh": "停用"
2954 },
2955 "default": {
2956 "en": "false"
2957 }
2958 }
2959 ]
2960 },
2961 "SetCookie": {
2962 "project": "CgEventsLib",
2963 "source": {
2964 "path": "actions/system",
2965 "filename": "SetCookie.action.ts"
2966 },
2967 "tostring": {
2968 "en": "{key}: {valueType} = {value}"
2969 },
2970 "className": "SetCookieAction",
2971 "timestamp": 1606523608383,
2972 "label": {
2973 "en": "Set Cookies",
2974 "zh": "儲存Cookies"
2975 },
2976 "description": {
2977 "en": "Store a value into Cookies.",
2978 "zh": "將一個值儲存至Cookies。"
2979 },
2980 "allpaths": {
2981 "en": [
2982 [
2983 "System"
2984 ]
2985 ],
2986 "zh": [
2987 [
2988 "系統"
2989 ]
2990 ]
2991 },
2992 "properties": [
2993 {
2994 "key": "key",
2995 "type": "string",
2996 "format": "string",
2997 "label": {
2998 "en": "Name of the variable",
2999 "zh": "變數名稱"
3000 },
3001 "description": {
3002 "en": "Define the variable name",
3003 "zh": "定義變數名稱"
3004 },
3005 "required": 1
3006 },
3007 {
3008 "key": "valueType",
3009 "type": "string",
3010 "label": {
3011 "en": "Value Type",
3012 "zh": "變數值型別"
3013 },
3014 "enum": [
3015 "string",
3016 "integer",
3017 "number",
3018 "boolean"
3019 ],
3020 "enumTitles": {
3021 "en": [
3022 "string",
3023 "integer",
3024 "number",
3025 "boolean"
3026 ],
3027 "zh": [
3028 "字串",
3029 "整數",
3030 "數字",
3031 "布林值"
3032 ]
3033 }
3034 },
3035 {
3036 "key": "value",
3037 "type": "string",
3038 "format": "string",
3039 "label": {
3040 "en": "Value",
3041 "zh": "變數的值"
3042 },
3043 "description": {
3044 "en": "Define the value to be stored in the variable. The value needs to be able to be stringify as a json.",
3045 "zh": "定義欲儲存的變數的值。所設的值必須能被JSON.stringify字串化。"
3046 }
3047 },
3048 {
3049 "key": "disabled",
3050 "type": "boolean",
3051 "label": {
3052 "en": "Disable",
3053 "zh": "停用"
3054 },
3055 "default": {
3056 "en": "false"
3057 }
3058 }
3059 ]
3060 },
3061 "GetCookie": {
3062 "project": "CgEventsLib",
3063 "source": {
3064 "path": "actions/system",
3065 "filename": "GetCookie.action.ts"
3066 },
3067 "tostring": {},
3068 "className": "GetCookieAction",
3069 "timestamp": 1606523608383,
3070 "label": {
3071 "en": "Get Cookies",
3072 "zh": "取得Cookies"
3073 },
3074 "description": {
3075 "en": "Get a variable from Cookies and store the value in Global.",
3076 "zh": "將一個Cookie的值儲存至全域變數。"
3077 },
3078 "allpaths": {
3079 "en": [
3080 [
3081 "System"
3082 ]
3083 ],
3084 "zh": [
3085 [
3086 "系統"
3087 ]
3088 ]
3089 },
3090 "properties": [
3091 {
3092 "key": "ckey",
3093 "type": "string",
3094 "format": "string",
3095 "label": {
3096 "en": "Name of the desired variable in Cookies",
3097 "zh": "欲取得的Cookies變數名稱"
3098 },
3099 "required": 1
3100 },
3101 {
3102 "key": "key",
3103 "type": "string",
3104 "format": "string",
3105 "label": {
3106 "en": "Global variable name to store the value",
3107 "zh": "儲存Cookies值的全域變數名稱"
3108 },
3109 "required": 1
3110 },
3111 {
3112 "key": "disabled",
3113 "type": "boolean",
3114 "label": {
3115 "en": "Disable",
3116 "zh": "停用"
3117 },
3118 "default": {
3119 "en": "false"
3120 }
3121 }
3122 ]
3123 },
3124 "AnimPlay": {
3125 "project": "CgEventsLib",
3126 "source": {
3127 "path": "actions/display",
3128 "filename": "AnimPlay.action.ts"
3129 },
3130 "tostring": {},
3131 "className": "AnimPlayAction",
3132 "timestamp": 1606523608383,
3133 "label": {
3134 "en": "Animation",
3135 "zh": "動畫播放"
3136 },
3137 "description": {
3138 "en": "Make a MovieClip to play an animation. This action is valid for GAFMovieClip and SpritesheetMovieClip.",
3139 "zh": "讓一個顯示物件播放動畫。此動作只適用於GAFMovieClip以及SpritesheetMovieClip。"
3140 },
3141 "allpaths": {
3142 "en": [
3143 [
3144 "Update",
3145 "Display"
3146 ]
3147 ],
3148 "zh": [
3149 [
3150 "更新",
3151 "顯示"
3152 ]
3153 ]
3154 },
3155 "properties": [
3156 {
3157 "key": "displayId",
3158 "type": "string",
3159 "format": "string",
3160 "label": {
3161 "en": "ID of the display object",
3162 "zh": "物件的ID"
3163 },
3164 "description": {
3165 "en": "The ID of the target display object. Use 'this' as a variable to indicate this object in an expression.",
3166 "zh": "操縱對象的物件ID。使用區域變數'this'在表達式中取得這個物件。"
3167 },
3168 "required": 1,
3169 "suggest": [
3170 "actions<displayId>"
3171 ]
3172 },
3173 {
3174 "key": "action",
3175 "type": "string",
3176 "label": {
3177 "en": "Action",
3178 "zh": "操作"
3179 },
3180 "default": {
3181 "en": "playSeq"
3182 },
3183 "enum": [
3184 "play",
3185 "stop",
3186 "playSeq",
3187 "stopSeq",
3188 "playFrame",
3189 "stopFrame"
3190 ],
3191 "enumTitles": {
3192 "en": [
3193 "Play",
3194 "Stop",
3195 "Play Sequence",
3196 "Stop at first Frame of a Sequence",
3197 "Goto a frame and play",
3198 "Goto a frame and stop"
3199 ],
3200 "zh": [
3201 "播放",
3202 "停格",
3203 "播放指定動畫",
3204 "停格在指定動畫的第一格",
3205 "從第某格開始播放動畫",
3206 "停格在某一格"
3207 ]
3208 }
3209 },
3210 {
3211 "key": "sequence",
3212 "type": "string",
3213 "label": {
3214 "en": "Sequence",
3215 "zh": "動畫"
3216 },
3217 "required": 1,
3218 "visible": "\"{action}\"==\"playSeq\" | \"{action}\"==\"stopSeq\"",
3219 "indent": 1
3220 },
3221 {
3222 "key": "frame",
3223 "type": "number",
3224 "format": "string",
3225 "label": {
3226 "en": "Frame",
3227 "zh": "格數"
3228 },
3229 "default": {
3230 "en": "1"
3231 },
3232 "visible": "\"{action}\"==\"playFrame\" | \"{action}\"==\"stopFrame\"",
3233 "indent": 1
3234 },
3235 {
3236 "key": "loop",
3237 "type": "boolean",
3238 "format": "string",
3239 "label": {
3240 "en": "Loop",
3241 "zh": "循環播放"
3242 },
3243 "default": {
3244 "en": "true"
3245 },
3246 "visible": "\"{action}\"==\"play\" | \"{action}\"==\"playSeq\" | \"{action}\"==\"playFrame\"",
3247 "indent": 1,
3248 "suggest": [
3249 "true",
3250 "false"
3251 ],
3252 "suggestFilter": "none"
3253 },
3254 {
3255 "key": "autoRemove",
3256 "type": "boolean",
3257 "label": {
3258 "en": "Auto Remove When Animation Plays To The End",
3259 "zh": "當動畫播完後自動移除"
3260 },
3261 "visible": "{loop}==false",
3262 "indent": 2
3263 },
3264 {
3265 "key": "fps",
3266 "type": "number",
3267 "format": "string",
3268 "label": {
3269 "en": "Frames Per Second",
3270 "zh": "每秒播放影格數(FPS)"
3271 },
3272 "default": {
3273 "en": "30"
3274 },
3275 "visible": "\"{action}\"==\"play\" | \"{action}\"==\"playSeq\" | \"{action}\"==\"playFrame\"",
3276 "indent": 1
3277 },
3278 {
3279 "key": "disabled",
3280 "type": "boolean",
3281 "label": {
3282 "en": "Disable",
3283 "zh": "停用"
3284 },
3285 "default": {
3286 "en": "false"
3287 }
3288 }
3289 ]
3290 },
3291 "RemovePhysicsObj": {
3292 "project": "CgEventsLib",
3293 "source": {
3294 "path": "actions/behavior",
3295 "filename": "RemovePhysicsObj.action.ts"
3296 },
3297 "tostring": {},
3298 "className": "RemovePhysicsObjAction",
3299 "timestamp": 1606523608383,
3300 "label": {
3301 "en": "Remove Physics Object",
3302 "zh": "移除物理剛體"
3303 },
3304 "description": {
3305 "en": "Remove an physics object from the game.",
3306 "zh": "將一個物理剛體從遊戲中移除。"
3307 },
3308 "allpaths": {
3309 "en": [
3310 [
3311 "Remove",
3312 "Physics"
3313 ]
3314 ],
3315 "zh": [
3316 [
3317 "移除",
3318 "物理"
3319 ]
3320 ]
3321 },
3322 "properties": [
3323 {
3324 "key": "physicsId",
3325 "type": "string",
3326 "format": "string",
3327 "label": {
3328 "en": "ID of the physics body",
3329 "zh": "物理剛體的ID"
3330 },
3331 "required": 1,
3332 "suggest": [
3333 "actions<physicsId>"
3334 ]
3335 },
3336 {
3337 "key": "removeDisplay",
3338 "type": "boolean",
3339 "label": {
3340 "en": "Remove the linked DisplayObject as well",
3341 "zh": "順便移除連結的顯示物件"
3342 }
3343 },
3344 {
3345 "key": "disabled",
3346 "type": "boolean",
3347 "label": {
3348 "en": "Disable",
3349 "zh": "停用"
3350 },
3351 "default": {
3352 "en": "false"
3353 }
3354 }
3355 ]
3356 },
3357 "AddPhysicsLayout": {
3358 "project": "CgEventsLib",
3359 "source": {
3360 "path": "actions/behavior",
3361 "filename": "AddPhysicsLayout.action.ts"
3362 },
3363 "tostring": {},
3364 "className": "AddPhysicsLayoutAction",
3365 "timestamp": 1606523608383,
3366 "label": {
3367 "en": "Add Physics Layout",
3368 "zh": "佈局物理世界"
3369 },
3370 "description": {
3371 "en": "Design a physics world by creating dynamic and static physics objects.",
3372 "zh": "設計一個物理世界的佈局。"
3373 },
3374 "allpaths": {
3375 "en": [
3376 [
3377 "Create",
3378 "Physics"
3379 ]
3380 ],
3381 "zh": [
3382 [
3383 "新增",
3384 "物理"
3385 ]
3386 ]
3387 },
3388 "properties": [
3389 {
3390 "key": "displayId",
3391 "type": "string",
3392 "label": {
3393 "en": "ID of the layer container",
3394 "zh": "圖層的ID"
3395 },
3396 "description": {
3397 "en": "Define the ID of the display object.\nIf set, a layer container will be created, and children objects defined in the layout editor will be attached under the layer container.\nIf not set, children objects will be attached directly under parentNode.",
3398 "zh": "定義圖層的ID。\n若有設定,則會產生新圖層節點,所有佈局中的圖片會被加到該圖層節點。\n若未設定,則不會產生新圖層,所有佈局中的圖片會被直接加到父節點之下。"
3399 }
3400 },
3401 {
3402 "key": "layout",
3403 "type": "object",
3404 "format": "CgEditorLayout",
3405 "label": {
3406 "en": "layout",
3407 "zh": "圖片佈局"
3408 },
3409 "description": {
3410 "en": "Layout the images of this layer.",
3411 "zh": "設計這個圖層的佈局"
3412 }
3413 },
3414 {
3415 "key": "useEditorGravity",
3416 "type": "boolean",
3417 "label": {
3418 "en": "Import Gravity settings from the editor.",
3419 "zh": "載入佈局編輯器的地心引力設定"
3420 },
3421 "default": {
3422 "en": "false"
3423 }
3424 },
3425 {
3426 "key": "layout",
3427 "type": "object",
3428 "format": "CgEditorLayout",
3429 "label": {
3430 "en": "layout",
3431 "zh": "物理佈局"
3432 },
3433 "description": {
3434 "en": "Layout the images of this layer.",
3435 "zh": "設計這個圖層的佈局"
3436 },
3437 "editorOptions": {
3438 "initMode": "physics"
3439 }
3440 }
3441 ]
3442 },
3443 "LinkTilingSpriteToCamera": {
3444 "project": "CgEventsLib",
3445 "source": {
3446 "path": "actions/behavior",
3447 "filename": "LinkTilingSpriteToCamera.action.ts"
3448 },
3449 "tostring": {},
3450 "className": "LinkTilingSpriteToCameraAction",
3451 "timestamp": 1606523608383,
3452 "label": {
3453 "en": "Link TilingSprite To Camera",
3454 "zh": "連結鋪磚貼圖與攝影機"
3455 },
3456 "description": {
3457 "en": "Linked TilingSprite automatically update tiling position when camera moves.",
3458 "zh": "連結的鋪磚貼圖會隨攝影機移動改變鋪磚位置。"
3459 },
3460 "allpaths": {
3461 "en": [
3462 [
3463 "Update",
3464 "Display"
3465 ]
3466 ],
3467 "zh": [
3468 [
3469 "更新",
3470 "顯示"
3471 ]
3472 ]
3473 },
3474 "properties": [
3475 {
3476 "key": "cameraId",
3477 "type": "string",
3478 "label": {
3479 "en": "ID of the camera",
3480 "zh": "攝影機ID"
3481 },
3482 "required": 1,
3483 "suggest": [
3484 "actions<cameraId>"
3485 ]
3486 },
3487 {
3488 "key": "displayId",
3489 "type": "string",
3490 "label": {
3491 "en": "ID of the tiling sprite",
3492 "zh": "鋪磚貼圖的顯示物件ID"
3493 },
3494 "required": 1,
3495 "suggest": [
3496 "actions<displayId>"
3497 ]
3498 },
3499 {
3500 "key": "ratio",
3501 "type": "#Point",
3502 "label": {
3503 "en": "Ratio of positioning",
3504 "zh": "位移率"
3505 },
3506 "default": {
3507 "en": "{\"x\":1, \"y\":1}"
3508 }
3509 },
3510 {
3511 "key": "disabled",
3512 "type": "boolean",
3513 "label": {
3514 "en": "Disable",
3515 "zh": "停用"
3516 },
3517 "default": {
3518 "en": "false"
3519 }
3520 }
3521 ]
3522 },
3523 "Reload": {
3524 "project": "CgEventsLib",
3525 "source": {
3526 "path": "actions/system",
3527 "filename": "Reload.action.ts"
3528 },
3529 "tostring": {},
3530 "className": "ReloadAction",
3531 "timestamp": 1606523608383,
3532 "label": {
3533 "en": "Reload",
3534 "zh": "重新載入"
3535 },
3536 "description": {
3537 "en": "Reload the webpage or the current event sheets."
3538 },
3539 "allpaths": {
3540 "en": [
3541 [
3542 "System"
3543 ]
3544 ],
3545 "zh": [
3546 [
3547 "系統"
3548 ]
3549 ]
3550 },
3551 "properties": [
3552 {
3553 "key": "target",
3554 "type": "string",
3555 "label": {
3556 "en": "Target to reload",
3557 "zh": "重新載入的對象"
3558 },
3559 "enum": [
3560 "webpage",
3561 "events"
3562 ],
3563 "enumTitles": {
3564 "en": [
3565 "WEB PAGE",
3566 "EVENTS SHEET"
3567 ],
3568 "zh": [
3569 "網頁",
3570 "事件表"
3571 ]
3572 }
3573 },
3574 {
3575 "key": "disabled",
3576 "type": "boolean",
3577 "label": {
3578 "en": "Disable",
3579 "zh": "停用"
3580 },
3581 "default": {
3582 "en": "false"
3583 }
3584 }
3585 ]
3586 },
3587 "TriggerEvent": {
3588 "project": "CgEventsLib",
3589 "source": {
3590 "path": "actions/system",
3591 "filename": "TriggerEvent.action.ts"
3592 },
3593 "tostring": {},
3594 "className": "TriggerEventAction",
3595 "timestamp": 1606523608383,
3596 "label": {
3597 "en": "Trigger Event",
3598 "zh": "觸發事件"
3599 },
3600 "description": {
3601 "en": "Manually trigger another event.",
3602 "zh": "手動觸發另一個事件。"
3603 },
3604 "allpaths": {
3605 "en": [
3606 [
3607 "Event"
3608 ]
3609 ],
3610 "zh": [
3611 [
3612 "事件"
3613 ]
3614 ]
3615 },
3616 "properties": [
3617 {
3618 "key": "eventId",
3619 "type": "string",
3620 "format": "string",
3621 "label": {
3622 "en": "ID of target event",
3623 "zh": "欲觸發的事件代碼"
3624 },
3625 "suggest": [
3626 "events<id>"
3627 ]
3628 },
3629 {
3630 "key": "localVars",
3631 "type": "array",
3632 "label": {
3633 "en": "Event Local Vars",
3634 "zh": "事件的區域變數"
3635 },
3636 "description": {
3637 "en": "Set local vars of the event, so the event knows targets or details when executing actions.",
3638 "zh": "設定事件內的區域變數,讓該事件在執行時能有正確的變數作為參考。"
3639 },
3640 "arrayItem": "#Variable"
3641 },
3642 {
3643 "key": "wait",
3644 "type": "string",
3645 "label": {
3646 "en": ""
3647 },
3648 "default": {
3649 "en": "wait"
3650 },
3651 "enum": [
3652 "wait",
3653 "noWait"
3654 ],
3655 "enumTitles": {
3656 "en": [
3657 "Wait the event execute all actions",
3658 "Do not wait"
3659 ],
3660 "zh": [
3661 "等待事件完成所有動作",
3662 "不等待"
3663 ]
3664 }
3665 },
3666 {
3667 "key": "disabled",
3668 "type": "boolean",
3669 "label": {
3670 "en": "Disable",
3671 "zh": "停用"
3672 },
3673 "default": {
3674 "en": "false"
3675 }
3676 }
3677 ]
3678 },
3679 "StopMusic": {
3680 "project": "CgEventsLib",
3681 "source": {
3682 "path": "actions/sound",
3683 "filename": "StopMusic.action.ts"
3684 },
3685 "tostring": {},
3686 "className": "StopMusicAction",
3687 "timestamp": 1606523608383,
3688 "label": {
3689 "en": "Stop Music",
3690 "zh": "停止播放音樂"
3691 },
3692 "description": {
3693 "en": "Stop the playing music.",
3694 "zh": "停止正在播放的音樂。"
3695 },
3696 "allpaths": {
3697 "en": [
3698 [
3699 "Remove",
3700 "Sound"
3701 ]
3702 ],
3703 "zh": [
3704 [
3705 "移除",
3706 "音效"
3707 ]
3708 ]
3709 },
3710 "properties": [
3711 {
3712 "key": "fadeDuration",
3713 "type": "number",
3714 "format": "string",
3715 "label": {
3716 "en": "Fadein Duration",
3717 "zh": "淡出的時間"
3718 },
3719 "unit": {
3720 "en": "millisecond",
3721 "zh": "毫秒"
3722 }
3723 },
3724 {
3725 "key": "disabled",
3726 "type": "boolean",
3727 "label": {
3728 "en": "Disable",
3729 "zh": "停用"
3730 },
3731 "default": {
3732 "en": "false"
3733 }
3734 }
3735 ]
3736 },
3737 "UpdateSound": {
3738 "project": "CgEventsLib",
3739 "source": {
3740 "path": "actions/sound",
3741 "filename": "UpdateSound.action.ts"
3742 },
3743 "tostring": {},
3744 "className": "UpdateSoundAction",
3745 "timestamp": 1606523608383,
3746 "label": {
3747 "en": "Update Sound",
3748 "zh": "調整音效"
3749 },
3750 "description": {
3751 "en": "Update the volume of a playing sound effect.\n調整一個播放中音效的音量。"
3752 },
3753 "allpaths": {
3754 "en": [
3755 [
3756 "Update",
3757 "Sound"
3758 ]
3759 ],
3760 "zh": [
3761 [
3762 "更新",
3763 "音效"
3764 ]
3765 ]
3766 },
3767 "properties": [
3768 {
3769 "key": "soundId",
3770 "type": "string",
3771 "format": "string",
3772 "label": {
3773 "en": "ID of the sound object",
3774 "zh": "音效的實體ID"
3775 },
3776 "description": {
3777 "en": "The ID of the sound instance to stop.",
3778 "zh": "欲調整的音效實體ID"
3779 },
3780 "required": 1,
3781 "suggest": [
3782 "actions<soundId>"
3783 ]
3784 },
3785 {
3786 "key": "volume",
3787 "type": "number",
3788 "format": "string",
3789 "label": {
3790 "en": "Volume",
3791 "zh": "音量"
3792 },
3793 "default": {
3794 "en": "1"
3795 },
3796 "description": {
3797 "en": "The volume of the sound.",
3798 "zh": "音量大小"
3799 }
3800 },
3801 {
3802 "key": "fadeDuration",
3803 "type": "number",
3804 "format": "string",
3805 "label": {
3806 "en": "Fadein Duration",
3807 "zh": "更新的時間"
3808 },
3809 "unit": {
3810 "en": "millisecond",
3811 "zh": "毫秒"
3812 }
3813 },
3814 {
3815 "key": "loop",
3816 "type": "boolean",
3817 "label": {
3818 "en": "Loop",
3819 "zh": "循環播放"
3820 },
3821 "description": {
3822 "en": "Set the sound instance to loop",
3823 "zh": "是否循環播放"
3824 }
3825 },
3826 {
3827 "key": "disabled",
3828 "type": "boolean",
3829 "label": {
3830 "en": "Disable",
3831 "zh": "停用"
3832 },
3833 "default": {
3834 "en": "false"
3835 }
3836 }
3837 ]
3838 },
3839 "AddWatch": {
3840 "project": "CgEventsLib",
3841 "source": {
3842 "path": "actions/system",
3843 "filename": "AddWatch.action.ts"
3844 },
3845 "tostring": {},
3846 "className": "AddWatchAction",
3847 "timestamp": 1606523608383,
3848 "label": {
3849 "en": "Add Watch",
3850 "zh": "增加觀察者"
3851 },
3852 "description": {
3853 "en": "Add a watch target for debugging purpose.",
3854 "zh": "增加一個偵錯用的觀察值。"
3855 },
3856 "allpaths": {
3857 "en": [
3858 [
3859 "System"
3860 ]
3861 ],
3862 "zh": [
3863 [
3864 "系統"
3865 ]
3866 ]
3867 },
3868 "properties": [
3869 {
3870 "key": "watchId",
3871 "type": "string",
3872 "format": "string",
3873 "label": {
3874 "en": "Watcher Id",
3875 "zh": "觀察ID"
3876 },
3877 "required": 1
3878 },
3879 {
3880 "key": "varname",
3881 "type": "string",
3882 "format": "string",
3883 "label": {
3884 "en": "Variable to Watch",
3885 "zh": "觀察變數名"
3886 },
3887 "required": 1,
3888 "suggest": [
3889 "actions<displayId,soundId,physicsId>"
3890 ]
3891 },
3892 {
3893 "key": "property",
3894 "type": "string",
3895 "format": "string",
3896 "label": {
3897 "en": "Property to Watch",
3898 "zh": "觀察屬性"
3899 }
3900 },
3901 {
3902 "key": "disabled",
3903 "type": "boolean",
3904 "label": {
3905 "en": "Disable",
3906 "zh": "停用"
3907 },
3908 "default": {
3909 "en": "false"
3910 }
3911 }
3912 ]
3913 },
3914 "RemoveWatch": {
3915 "project": "CgEventsLib",
3916 "source": {
3917 "path": "actions/system",
3918 "filename": "RemoveWatch.action.ts"
3919 },
3920 "tostring": {},
3921 "className": "RemoveWatchAction",
3922 "timestamp": 1606523608383,
3923 "label": {
3924 "en": "Remove Watch",
3925 "zh": "移除觀察者"
3926 },
3927 "description": {
3928 "en": "Remove a debugging watcher.",
3929 "zh": "移除一個偵錯用的觀察者。"
3930 },
3931 "allpaths": {
3932 "en": [
3933 [
3934 "System"
3935 ]
3936 ],
3937 "zh": [
3938 [
3939 "系統"
3940 ]
3941 ]
3942 },
3943 "properties": [
3944 {
3945 "key": "watchId",
3946 "type": "string",
3947 "format": "string",
3948 "label": {
3949 "en": "Watcher Id",
3950 "zh": "觀察ID"
3951 },
3952 "required": 1,
3953 "suggest": [
3954 "actions<watchId>"
3955 ]
3956 },
3957 {
3958 "key": "disabled",
3959 "type": "boolean",
3960 "label": {
3961 "en": "Disable",
3962 "zh": "停用"
3963 },
3964 "default": {
3965 "en": "false"
3966 }
3967 }
3968 ]
3969 },
3970 "SetDisplayParentAndIndex": {
3971 "project": "CgEventsLib",
3972 "source": {
3973 "path": "actions/display",
3974 "filename": "SetDisplayParentAndIndex.action.ts"
3975 },
3976 "tostring": {},
3977 "className": "SetDisplayParentAndIndexAction",
3978 "timestamp": 1606523608383,
3979 "label": {
3980 "en": "Update Display Index",
3981 "zh": "變更顯示物件的繪圖順序"
3982 },
3983 "description": {
3984 "en": "Change the index of the display object in its parent's children.\n0 to be at the bottom\na large number to set on top",
3985 "zh": "變更顯示物件在其父節點下子節點們的繪圖順序。\n設 0 會被排在最底層\n設定一個大一點的數字,可將物件放在頂層"
3986 },
3987 "allpaths": {
3988 "en": [
3989 [
3990 "Update",
3991 "Display"
3992 ]
3993 ],
3994 "zh": [
3995 [
3996 "更新",
3997 "顯示"
3998 ]
3999 ]
4000 },
4001 "properties": [
4002 {
4003 "key": "displayId",
4004 "type": "string",
4005 "format": "string",
4006 "label": {
4007 "en": "ID of the display object",
4008 "zh": "物件的ID"
4009 },
4010 "description": {
4011 "en": "The ID of the target display object. Use 'this' as a variable to indicate this object in an expression.",
4012 "zh": "操縱對象的物件ID。使用區域變數'this'在表達式中取得這個物件。"
4013 },
4014 "required": 1,
4015 "suggest": [
4016 "actions<displayId>"
4017 ]
4018 },
4019 {
4020 "key": "parentId",
4021 "type": "string",
4022 "format": "string",
4023 "label": {
4024 "en": "ID of the new parent",
4025 "zh": "新父節點的物件ID"
4026 },
4027 "description": {
4028 "en": "The ID of the new parent display object. Leave empty to stay under the same parent.",
4029 "zh": "新的父節點的物件ID。留空以留在原父節點下。"
4030 },
4031 "suggest": [
4032 "actions<displayId>"
4033 ]
4034 },
4035 {
4036 "key": "index",
4037 "type": "number",
4038 "format": "string",
4039 "label": {
4040 "en": "index",
4041 "zh": "順序"
4042 },
4043 "default": {
4044 "en": "100000"
4045 },
4046 "description": {
4047 "en": "0 to be at the bottom\na large number to set on top",
4048 "zh": "變更顯示物件在其父節點下子節點們的繪圖順序。\n設 0 會被排在最底層\n設定一個大一點的數字,可將物件放在頂層"
4049 }
4050 },
4051 {
4052 "key": "disabled",
4053 "type": "boolean",
4054 "label": {
4055 "en": "Disable",
4056 "zh": "停用"
4057 },
4058 "default": {
4059 "en": "false"
4060 }
4061 }
4062 ]
4063 },
4064 "SpriteAutoRemove": {
4065 "project": "CgEventsLib",
4066 "source": {
4067 "path": "actions/display",
4068 "filename": "SpriteAutoRemove.action.ts"
4069 },
4070 "tostring": {},
4071 "className": "SpriteAutoRemoveAction",
4072 "timestamp": 1606523608383,
4073 "label": {
4074 "en": "Auto Remove Sprite",
4075 "zh": "自動移除圖片"
4076 },
4077 "description": {
4078 "en": "Automatically remove a sprite when it leaves visible area of the stage.",
4079 "zh": "自動在圖片離開可視範圍後移除圖片。"
4080 },
4081 "allpaths": {
4082 "en": [
4083 [
4084 "Remove",
4085 "Display"
4086 ]
4087 ],
4088 "zh": [
4089 [
4090 "移除",
4091 "顯示"
4092 ]
4093 ]
4094 },
4095 "properties": [
4096 {
4097 "key": "displayId",
4098 "type": "string",
4099 "format": "string",
4100 "label": {
4101 "en": "ID of the display object",
4102 "zh": "物件的ID"
4103 },
4104 "description": {
4105 "en": "The ID of the target display object.",
4106 "zh": "移除對象的物件ID"
4107 },
4108 "required": 1,
4109 "suggest": [
4110 "actions<displayId>"
4111 ]
4112 },
4113 {
4114 "key": "visibleRange",
4115 "type": "string",
4116 "format": "string",
4117 "label": {
4118 "en": "Visible Range",
4119 "zh": "可視範圍"
4120 },
4121 "default": {
4122 "en": "fullscreen"
4123 },
4124 "required": 1,
4125 "enum": [
4126 "stage",
4127 "fullscreen"
4128 ],
4129 "enumTitles": {
4130 "en": [
4131 "Stage",
4132 "Fullscreen"
4133 ],
4134 "zh": [
4135 "舞台",
4136 "全螢幕"
4137 ]
4138 }
4139 },
4140 {
4141 "key": "delayStart",
4142 "type": "number",
4143 "format": "string",
4144 "label": {
4145 "en": "Delay Start",
4146 "zh": "延遲啟動"
4147 },
4148 "unit": {
4149 "en": "millisecond",
4150 "zh": "毫秒"
4151 },
4152 "default": {
4153 "en": "100"
4154 },
4155 "required": 1
4156 },
4157 {
4158 "key": "disabled",
4159 "type": "boolean",
4160 "label": {
4161 "en": "Disable",
4162 "zh": "停用"
4163 },
4164 "default": {
4165 "en": "false"
4166 }
4167 }
4168 ]
4169 },
4170 "SetObjectVar": {
4171 "project": "CgEventsLib",
4172 "source": {
4173 "path": "actions/system",
4174 "filename": "SetObjectVar.action.ts"
4175 },
4176 "tostring": {
4177 "en": "{objectId}.{key}: {valueType} = {value}"
4178 },
4179 "className": "SetObjectVarAction",
4180 "timestamp": 1606523608383,
4181 "label": {
4182 "en": "Set Object Variable",
4183 "zh": "儲存物件變數"
4184 },
4185 "description": {
4186 "en": "Store a value into a variable of an object",
4187 "zh": "將一個值儲存至一個物件所屬的變數"
4188 },
4189 "allpaths": {
4190 "en": [
4191 [
4192 "Variable"
4193 ]
4194 ],
4195 "zh": [
4196 [
4197 "變數"
4198 ]
4199 ]
4200 },
4201 "properties": [
4202 {
4203 "key": "objectId",
4204 "type": "string",
4205 "format": "string",
4206 "label": {
4207 "en": "Object ID",
4208 "zh": "物件ID"
4209 },
4210 "required": 1,
4211 "suggest": [
4212 "actions<displayId,controllerId,physicsId,tweenId>"
4213 ]
4214 },
4215 {
4216 "key": "key",
4217 "type": "string",
4218 "format": "string",
4219 "label": {
4220 "en": "Name of the variable",
4221 "zh": "變數名稱"
4222 },
4223 "description": {
4224 "en": "Define the variable name",
4225 "zh": "定義變數名稱"
4226 },
4227 "required": 1
4228 },
4229 {
4230 "key": "valueType",
4231 "type": "string",
4232 "label": {
4233 "en": "Value Type",
4234 "zh": "變數值型別"
4235 },
4236 "enum": [
4237 "string",
4238 "integer",
4239 "number",
4240 "boolean"
4241 ],
4242 "enumTitles": {
4243 "en": [
4244 "string",
4245 "integer",
4246 "number",
4247 "boolean"
4248 ],
4249 "zh": [
4250 "字串",
4251 "整數",
4252 "數字",
4253 "布林值"
4254 ]
4255 }
4256 },
4257 {
4258 "key": "value",
4259 "type": "string",
4260 "format": "string",
4261 "label": {
4262 "en": "Value",
4263 "zh": "變數的值"
4264 },
4265 "description": {
4266 "en": "Define the value to be stored in the variable",
4267 "zh": "定義欲儲存的變數的值"
4268 }
4269 },
4270 {
4271 "key": "disabled",
4272 "type": "boolean",
4273 "label": {
4274 "en": "Disable",
4275 "zh": "停用"
4276 },
4277 "default": {
4278 "en": "false"
4279 }
4280 }
4281 ]
4282 },
4283 "RenameObject": {
4284 "project": "CgEventsLib",
4285 "source": {
4286 "path": "actions/behavior",
4287 "filename": "RenameObject.action.ts"
4288 },
4289 "tostring": {},
4290 "className": "RenameObjectAction",
4291 "timestamp": 1606523608383,
4292 "label": {
4293 "en": "Rename Object",
4294 "zh": "物件更名"
4295 },
4296 "description": {
4297 "en": "Rename an object that is stored as a global variable. It needs the new name to be accessed after renamed.",
4298 "zh": "將一個儲存在全域變數的物件更名。更名後,該物件就需要用新的名字來存取。"
4299 },
4300 "allpaths": {
4301 "en": [
4302 [
4303 "Update"
4304 ]
4305 ],
4306 "zh": [
4307 [
4308 "更新"
4309 ]
4310 ]
4311 },
4312 "properties": [
4313 {
4314 "key": "oldId",
4315 "type": "string",
4316 "format": "string",
4317 "label": {
4318 "en": "Object ID",
4319 "zh": "物件ID"
4320 },
4321 "required": 1,
4322 "suggest": [
4323 "actions<displayId,controllerId,physicsId,tweenId>"
4324 ]
4325 },
4326 {
4327 "key": "objectId",
4328 "type": "string",
4329 "format": "string",
4330 "label": {
4331 "en": "Object New ID",
4332 "zh": "物件的新ID"
4333 },
4334 "required": 1,
4335 "suggest": [
4336 "actions<displayId,controllerId,physicsId,tweenId>"
4337 ]
4338 },
4339 {
4340 "key": "disabled",
4341 "type": "boolean",
4342 "label": {
4343 "en": "Disable",
4344 "zh": "停用"
4345 },
4346 "default": {
4347 "en": "false"
4348 }
4349 }
4350 ]
4351 },
4352 "DisableEvent": {
4353 "project": "CgEventsLib",
4354 "source": {
4355 "path": "actions/system",
4356 "filename": "DisableEvent.action.ts"
4357 },
4358 "tostring": {},
4359 "className": "DisableEventAction",
4360 "timestamp": 1606523608383,
4361 "label": {
4362 "en": "Disable Event",
4363 "zh": "停用事件"
4364 },
4365 "description": {
4366 "en": "Disable a event.",
4367 "zh": "停用一個事件。"
4368 },
4369 "allpaths": {
4370 "en": [
4371 [
4372 "Event"
4373 ]
4374 ],
4375 "zh": [
4376 [
4377 "事件"
4378 ]
4379 ]
4380 },
4381 "properties": [
4382 {
4383 "key": "eventId",
4384 "type": "string",
4385 "format": "string",
4386 "label": {
4387 "en": "ID of target event",
4388 "zh": "欲停用的事件代碼"
4389 },
4390 "suggest": [
4391 "events<id>"
4392 ]
4393 },
4394 {
4395 "key": "disabled",
4396 "type": "boolean",
4397 "label": {
4398 "en": "Disable",
4399 "zh": "停用"
4400 },
4401 "default": {
4402 "en": "false"
4403 }
4404 }
4405 ]
4406 },
4407 "GotoUrl": {
4408 "project": "CgEventsLib",
4409 "source": {
4410 "path": "actions/system",
4411 "filename": "GotoUrl.action.ts"
4412 },
4413 "tostring": {},
4414 "className": "GotoUrlAction",
4415 "timestamp": 1606523608383,
4416 "label": {
4417 "en": "Open Url",
4418 "zh": "開啟URL"
4419 },
4420 "description": {
4421 "en": "Open a URL",
4422 "zh": "開啟一個URL"
4423 },
4424 "allpaths": {
4425 "en": [
4426 [
4427 "System"
4428 ]
4429 ],
4430 "zh": [
4431 [
4432 "系統"
4433 ]
4434 ]
4435 },
4436 "properties": [
4437 {
4438 "key": "url",
4439 "type": "string",
4440 "format": "string",
4441 "label": {
4442 "en": "URL"
4443 },
4444 "required": 1
4445 },
4446 {
4447 "key": "target",
4448 "type": "string",
4449 "label": {
4450 "en": "Target",
4451 "zh": "目標視窗"
4452 },
4453 "default": {
4454 "en": "current"
4455 },
4456 "enum": [
4457 "current",
4458 "blank",
4459 "named"
4460 ],
4461 "enumTitles": {
4462 "en": [
4463 "Current",
4464 "Blank",
4465 "Named"
4466 ],
4467 "zh": [
4468 "目前視窗",
4469 "開新視窗",
4470 "指定視窗"
4471 ]
4472 }
4473 },
4474 {
4475 "key": "targetName",
4476 "type": "string",
4477 "format": "string",
4478 "label": {
4479 "en": "Target name",
4480 "zh": "指定視窗名稱"
4481 },
4482 "default": {
4483 "en": "mywindow"
4484 },
4485 "required": 1,
4486 "visible": "\"{target}\"==\"named\"",
4487 "indent": 1
4488 },
4489 {
4490 "key": "disabled",
4491 "type": "boolean",
4492 "label": {
4493 "en": "Disable",
4494 "zh": "停用"
4495 },
4496 "default": {
4497 "en": "false"
4498 }
4499 }
4500 ]
4501 }
4502 },
4503 "check": {
4504 "SpriteProp": {
4505 "project": "CgEventsLib",
4506 "source": {
4507 "path": "checks/display",
4508 "filename": "SpriteProp.check.ts"
4509 },
4510 "tostring": {},
4511 "className": "SpritePropCheck",
4512 "timestamp": 1606523608383,
4513 "label": {
4514 "en": "Display Property",
4515 "zh": "顯示屬性"
4516 },
4517 "description": {
4518 "en": "Compare one property of a display object against a value, including position, scale, size, alpha, and etc.",
4519 "zh": "檢查顯示物件的某個屬性是否符合條件,包括位置、縮放、尺寸、透明度等。"
4520 },
4521 "allpaths": {
4522 "en": [
4523 [
4524 "Display"
4525 ]
4526 ],
4527 "zh": [
4528 [
4529 "顯示"
4530 ]
4531 ]
4532 },
4533 "properties": [
4534 {
4535 "key": "operator",
4536 "type": "string",
4537 "format": "string",
4538 "label": {
4539 "en": "operator",
4540 "zh": "比較方式"
4541 },
4542 "description": {
4543 "en": "[en] The comparison operator\r",
4544 "zh": "比較方式"
4545 },
4546 "enum": [
4547 ">",
4548 ">=",
4549 "<",
4550 "<=",
4551 "==",
4552 "!="
4553 ]
4554 },
4555 {
4556 "key": "value",
4557 "type": "number",
4558 "format": "string",
4559 "label": {
4560 "en": "value",
4561 "zh": "比較值"
4562 },
4563 "description": {
4564 "en": "[en] the value to compare\r",
4565 "zh": "比較值"
4566 }
4567 },
4568 {
4569 "key": "displayId",
4570 "type": "string",
4571 "format": "string",
4572 "label": {
4573 "en": "ID of the display object",
4574 "zh": "顯示物件的ID"
4575 },
4576 "description": {
4577 "en": "[en] The ID of the target display object.\r",
4578 "zh": "檢查對象的物件ID"
4579 },
4580 "propertyOrder": 0,
4581 "suggest": [
4582 "actions<displayId>"
4583 ]
4584 },
4585 {
4586 "key": "property",
4587 "type": "string",
4588 "format": "string",
4589 "label": {
4590 "en": "Property",
4591 "zh": "屬性"
4592 },
4593 "description": {
4594 "en": "The property of the sprite to be compared",
4595 "zh": "用來比較的圖片屬性"
4596 },
4597 "propertyOrder": 900,
4598 "enum": [
4599 "x",
4600 "y",
4601 "scaleX",
4602 "scaleY",
4603 "width",
4604 "height",
4605 "alpha"
4606 ],
4607 "enumTitles": {
4608 "zh": [
4609 "位置(x)",
4610 "位置(y)",
4611 "水平縮放(scaleX)",
4612 "垂直縮放(scaleY)",
4613 "寬(width)",
4614 "高(height)",
4615 "透明度(alpha)"
4616 ]
4617 }
4618 },
4619 {
4620 "key": "disabled",
4621 "type": "boolean",
4622 "label": {
4623 "en": "Disable",
4624 "zh": "停用"
4625 },
4626 "default": {
4627 "en": "false"
4628 }
4629 },
4630 {
4631 "key": "_logi",
4632 "type": "object",
4633 "format": "grid",
4634 "label": {
4635 "en": "Logical Operation",
4636 "zh": "邏輯規則"
4637 }
4638 },
4639 {
4640 "key": "_and_or",
4641 "type": "string",
4642 "description": {
4643 "en": "To define the relation with the previous check.\nAND: group the check with its previous check as a single check.\nOR: when previous check fails, run this check instead. If previous check passes, skip this check.",
4644 "zh": "定義這個檢查與上一個檢查的關係。\nAND: 與上一個檢查合併為一個大檢查\nOR: 若上一個檢查不通過,則執行這個檢查。若上一個檢查已通過,則跳過這個檢查"
4645 },
4646 "parent": "_logi",
4647 "enum": [
4648 "",
4649 "AND",
4650 "OR"
4651 ]
4652 },
4653 {
4654 "key": "_not",
4655 "type": "boolean",
4656 "default": {
4657 "en": "false"
4658 },
4659 "description": {
4660 "en": "If checked, the check result will be reversed.",
4661 "zh": "若勾選,則反轉檢查的結果"
4662 },
4663 "parent": "_logi"
4664 },
4665 {
4666 "key": "_elseEventId",
4667 "type": "string",
4668 "label": {
4669 "en": "Else Trigger Event ID",
4670 "zh": "否則觸發事件ID"
4671 },
4672 "description": {
4673 "en": "When this event failed to pass the check test because of this check, it will trigger the event defined by this field.",
4674 "zh": "當這個事件觸發後因為這個檢查的關係而不執行動作,則會觸發這裏所設定的事件。"
4675 },
4676 "suggest": [
4677 "events<id>"
4678 ]
4679 }
4680 ]
4681 },
4682 "SpriteRotation": {
4683 "project": "CgEventsLib",
4684 "source": {
4685 "path": "checks/display",
4686 "filename": "SpriteRotation.check.ts"
4687 },
4688 "tostring": {},
4689 "className": "SpriteRotationCheck",
4690 "timestamp": 1606523608383,
4691 "label": {
4692 "en": "Display Rotation",
4693 "zh": "顯示角度"
4694 },
4695 "description": {
4696 "en": "Compare the rotation of a display object against a direction.",
4697 "zh": "檢查顯示物件的旋轉角度與一個指定方向的關係。"
4698 },
4699 "allpaths": {
4700 "en": [
4701 [
4702 "Display"
4703 ]
4704 ],
4705 "zh": [
4706 [
4707 "顯示"
4708 ]
4709 ]
4710 },
4711 "properties": [
4712 {
4713 "key": "operator",
4714 "type": "string",
4715 "format": "string",
4716 "label": {
4717 "en": "operator",
4718 "zh": "比較方式"
4719 },
4720 "description": {
4721 "en": "[en] The comparison operator\r",
4722 "zh": "比較方式"
4723 },
4724 "enum": [
4725 ">",
4726 ">=",
4727 "<",
4728 "<=",
4729 "==",
4730 "!="
4731 ]
4732 },
4733 {
4734 "key": "value",
4735 "type": "number",
4736 "format": "string",
4737 "label": {
4738 "en": "value",
4739 "zh": "比較值"
4740 },
4741 "description": {
4742 "en": "[en] the value to compare\r",
4743 "zh": "比較值"
4744 }
4745 },
4746 {
4747 "key": "displayId",
4748 "type": "string",
4749 "format": "string",
4750 "label": {
4751 "en": "ID of the display object",
4752 "zh": "顯示物件的ID"
4753 },
4754 "description": {
4755 "en": "[en] The ID of the target display object.\r",
4756 "zh": "檢查對象的物件ID"
4757 },
4758 "propertyOrder": 0,
4759 "suggest": [
4760 "actions<displayId>"
4761 ]
4762 },
4763 {
4764 "key": "value",
4765 "type": "number",
4766 "format": "string",
4767 "label": {
4768 "en": "Direction in degrees",
4769 "zh": "方向角度"
4770 },
4771 "description": {
4772 "en": "the direction in degrees to compare with the rotation of the object. The difference of the two degrees will be normalized to (-180, 180] in degrees before compared.",
4773 "zh": "用來和物件旋轉比較的方向角度(degrees)。 兩方物件的角度差值將被正規化至 (-180, 180] 的範圍內作比較。"
4774 }
4775 },
4776 {
4777 "key": "rangeOfError",
4778 "type": "number",
4779 "format": "string",
4780 "label": {
4781 "en": "Range of error",
4782 "zh": "誤差範圍"
4783 },
4784 "default": {
4785 "en": "5"
4786 },
4787 "description": {
4788 "en": "If the difference between test direction and the rotation of the object is less then this value, it is considered equal.",
4789 "zh": "若方向角度和物件旋轉角度的差值在誤差範圍內,則會被視為相等。"
4790 }
4791 },
4792 {
4793 "key": "disabled",
4794 "type": "boolean",
4795 "label": {
4796 "en": "Disable",
4797 "zh": "停用"
4798 },
4799 "default": {
4800 "en": "false"
4801 }
4802 },
4803 {
4804 "key": "_logi",
4805 "type": "object",
4806 "format": "grid",
4807 "label": {
4808 "en": "Logical Operation",
4809 "zh": "邏輯規則"
4810 }
4811 },
4812 {
4813 "key": "_and_or",
4814 "type": "string",
4815 "description": {
4816 "en": "To define the relation with the previous check.\nAND: group the check with its previous check as a single check.\nOR: when previous check fails, run this check instead. If previous check passes, skip this check.",
4817 "zh": "定義這個檢查與上一個檢查的關係。\nAND: 與上一個檢查合併為一個大檢查\nOR: 若上一個檢查不通過,則執行這個檢查。若上一個檢查已通過,則跳過這個檢查"
4818 },
4819 "parent": "_logi",
4820 "enum": [
4821 "",
4822 "AND",
4823 "OR"
4824 ]
4825 },
4826 {
4827 "key": "_not",
4828 "type": "boolean",
4829 "default": {
4830 "en": "false"
4831 },
4832 "description": {
4833 "en": "If checked, the check result will be reversed.",
4834 "zh": "若勾選,則反轉檢查的結果"
4835 },
4836 "parent": "_logi"
4837 },
4838 {
4839 "key": "_elseEventId",
4840 "type": "string",
4841 "label": {
4842 "en": "Else Trigger Event ID",
4843 "zh": "否則觸發事件ID"
4844 },
4845 "description": {
4846 "en": "When this event failed to pass the check test because of this check, it will trigger the event defined by this field.",
4847 "zh": "當這個事件觸發後因為這個檢查的關係而不執行動作,則會觸發這裏所設定的事件。"
4848 },
4849 "suggest": [
4850 "events<id>"
4851 ]
4852 }
4853 ]
4854 },
4855 "NumberCheck": {
4856 "project": "CgEventsLib",
4857 "source": {
4858 "path": "checks/system",
4859 "filename": "Number.check.ts"
4860 },
4861 "tostring": {},
4862 "className": "NumberCheck",
4863 "timestamp": 1606523608383,
4864 "label": {
4865 "en": "Compare Numbers",
4866 "zh": "比較數字"
4867 },
4868 "description": {
4869 "en": "Compare two values. Use number, variable, or even math expression for the values to be compared.",
4870 "zh": "比較兩個數字的關係。可用變數及數學式作為用來比較的值。"
4871 },
4872 "allpaths": {
4873 "en": [
4874 [
4875 "Variable"
4876 ]
4877 ],
4878 "zh": [
4879 [
4880 "變數"
4881 ]
4882 ]
4883 },
4884 "properties": [
4885 {
4886 "key": "value1",
4887 "type": "number",
4888 "format": "string",
4889 "label": {
4890 "en": "Value 1",
4891 "zh": "第一個比較值"
4892 },
4893 "description": {
4894 "en": "the first value to be compared",
4895 "zh": "第一個比較值"
4896 }
4897 },
4898 {
4899 "key": "operator",
4900 "type": "string",
4901 "label": {
4902 "en": "operator",
4903 "zh": "比較方式"
4904 },
4905 "description": {
4906 "en": "The comparison operator",
4907 "zh": "比較方式"
4908 },
4909 "enum": [
4910 ">",
4911 ">=",
4912 "<",
4913 "<=",
4914 "==",
4915 "!="
4916 ]
4917 },
4918 {
4919 "key": "value2",
4920 "type": "number",
4921 "format": "string",
4922 "label": {
4923 "en": "Value 2",
4924 "zh": "第二個比較值"
4925 },
4926 "description": {
4927 "en": "the second value to be compared",
4928 "zh": "第二個比較值"
4929 }
4930 },
4931 {
4932 "key": "disabled",
4933 "type": "boolean",
4934 "label": {
4935 "en": "Disable",
4936 "zh": "停用"
4937 },
4938 "default": {
4939 "en": "false"
4940 }
4941 },
4942 {
4943 "key": "_logi",
4944 "type": "object",
4945 "format": "grid",
4946 "label": {
4947 "en": "Logical Operation",
4948 "zh": "邏輯規則"
4949 }
4950 },
4951 {
4952 "key": "_and_or",
4953 "type": "string",
4954 "description": {
4955 "en": "To define the relation with the previous check.\nAND: group the check with its previous check as a single check.\nOR: when previous check fails, run this check instead. If previous check passes, skip this check.",
4956 "zh": "定義這個檢查與上一個檢查的關係。\nAND: 與上一個檢查合併為一個大檢查\nOR: 若上一個檢查不通過,則執行這個檢查。若上一個檢查已通過,則跳過這個檢查"
4957 },
4958 "parent": "_logi",
4959 "enum": [
4960 "",
4961 "AND",
4962 "OR"
4963 ]
4964 },
4965 {
4966 "key": "_not",
4967 "type": "boolean",
4968 "default": {
4969 "en": "false"
4970 },
4971 "description": {
4972 "en": "If checked, the check result will be reversed.",
4973 "zh": "若勾選,則反轉檢查的結果"
4974 },
4975 "parent": "_logi"
4976 },
4977 {
4978 "key": "_elseEventId",
4979 "type": "string",
4980 "label": {
4981 "en": "Else Trigger Event ID",
4982 "zh": "否則觸發事件ID"
4983 },
4984 "description": {
4985 "en": "When this event failed to pass the check test because of this check, it will trigger the event defined by this field.",
4986 "zh": "當這個事件觸發後因為這個檢查的關係而不執行動作,則會觸發這裏所設定的事件。"
4987 },
4988 "suggest": [
4989 "events<id>"
4990 ]
4991 }
4992 ]
4993 },
4994 "MousePosition": {
4995 "project": "CgEventsLib",
4996 "source": {
4997 "path": "checks/display",
4998 "filename": "MousePosition.check.ts"
4999 },
5000 "tostring": {},
5001 "className": "MousePositionCheck",
5002 "timestamp": 1606523608383,
5003 "label": {
5004 "en": "Mouse Position",
5005 "zh": "滑鼠座標"
5006 },
5007 "description": {
5008 "en": "Compare the x, y of the mouse position to a value.",
5009 "zh": "檢查滑鼠座標是否符合條件"
5010 },
5011 "allpaths": {
5012 "en": [
5013 [
5014 "Input"
5015 ]
5016 ],
5017 "zh": [
5018 [
5019 "輸入"
5020 ]
5021 ]
5022 },
5023 "properties": [
5024 {
5025 "key": "operator",
5026 "type": "string",
5027 "format": "string",
5028 "label": {
5029 "en": "operator",
5030 "zh": "比較方式"
5031 },
5032 "description": {
5033 "en": "[en] The comparison operator\r",
5034 "zh": "比較方式"
5035 },
5036 "enum": [
5037 ">",
5038 ">=",
5039 "<",
5040 "<=",
5041 "==",
5042 "!="
5043 ]
5044 },
5045 {
5046 "key": "value",
5047 "type": "number",
5048 "format": "string",
5049 "label": {
5050 "en": "value",
5051 "zh": "比較值"
5052 },
5053 "description": {
5054 "en": "[en] the value to compare\r",
5055 "zh": "比較值"
5056 }
5057 },
5058 {
5059 "key": "displayId",
5060 "type": "string",
5061 "format": "string",
5062 "label": {
5063 "en": "ID of the display object",
5064 "zh": "物件的ID"
5065 },
5066 "description": {
5067 "en": "If set, the mouse position will be calculated under this display object's coordinate. Otherwise, the mouse position of the root is used.",
5068 "zh": "若有設定物件ID,滑鼠的位置會在此物件下的座標中計算,否則會使用根節點的座標計算滑鼠位置。"
5069 },
5070 "propertyOrder": 0,
5071 "suggest": [
5072 "actions<displayId>"
5073 ]
5074 },
5075 {
5076 "key": "property",
5077 "type": "string",
5078 "format": "string",
5079 "label": {
5080 "en": "Property",
5081 "zh": "屬性"
5082 },
5083 "description": {
5084 "en": "the property of the sprite to be compared",
5085 "zh": "用來比較的圖片屬性"
5086 },
5087 "propertyOrder": 1,
5088 "enum": [
5089 "x",
5090 "y"
5091 ],
5092 "enumTitles": {
5093 "zh": [
5094 "位置(x)",
5095 "位置(y)"
5096 ]
5097 }
5098 },
5099 {
5100 "key": "disabled",
5101 "type": "boolean",
5102 "label": {
5103 "en": "Disable",
5104 "zh": "停用"
5105 },
5106 "default": {
5107 "en": "false"
5108 }
5109 },
5110 {
5111 "key": "_logi",
5112 "type": "object",
5113 "format": "grid",
5114 "label": {
5115 "en": "Logical Operation",
5116 "zh": "邏輯規則"
5117 }
5118 },
5119 {
5120 "key": "_and_or",
5121 "type": "string",
5122 "description": {
5123 "en": "To define the relation with the previous check.\nAND: group the check with its previous check as a single check.\nOR: when previous check fails, run this check instead. If previous check passes, skip this check.",
5124 "zh": "定義這個檢查與上一個檢查的關係。\nAND: 與上一個檢查合併為一個大檢查\nOR: 若上一個檢查不通過,則執行這個檢查。若上一個檢查已通過,則跳過這個檢查"
5125 },
5126 "parent": "_logi",
5127 "enum": [
5128 "",
5129 "AND",
5130 "OR"
5131 ]
5132 },
5133 {
5134 "key": "_not",
5135 "type": "boolean",
5136 "default": {
5137 "en": "false"
5138 },
5139 "description": {
5140 "en": "If checked, the check result will be reversed.",
5141 "zh": "若勾選,則反轉檢查的結果"
5142 },
5143 "parent": "_logi"
5144 },
5145 {
5146 "key": "_elseEventId",
5147 "type": "string",
5148 "label": {
5149 "en": "Else Trigger Event ID",
5150 "zh": "否則觸發事件ID"
5151 },
5152 "description": {
5153 "en": "When this event failed to pass the check test because of this check, it will trigger the event defined by this field.",
5154 "zh": "當這個事件觸發後因為這個檢查的關係而不執行動作,則會觸發這裏所設定的事件。"
5155 },
5156 "suggest": [
5157 "events<id>"
5158 ]
5159 }
5160 ]
5161 },
5162 "MouseOver": {
5163 "project": "CgEventsLib",
5164 "source": {
5165 "path": "checks/display",
5166 "filename": "MouseOver.check.ts"
5167 },
5168 "tostring": {},
5169 "className": "MouseOverCheck",
5170 "timestamp": 1606523608383,
5171 "label": {
5172 "en": "Mouse Over",
5173 "zh": "滑鼠懸浮於"
5174 },
5175 "description": {
5176 "en": "Check if the mouse is currently over a display object.",
5177 "zh": "檢查滑鼠目前是否正懸浮於某個顯示物件上。"
5178 },
5179 "allpaths": {
5180 "en": [
5181 [
5182 "Input"
5183 ]
5184 ],
5185 "zh": [
5186 [
5187 "輸入"
5188 ]
5189 ]
5190 },
5191 "properties": [
5192 {
5193 "key": "displayId",
5194 "type": "string",
5195 "format": "string",
5196 "label": {
5197 "en": "ID of the display object",
5198 "zh": "物件的ID"
5199 },
5200 "description": {
5201 "en": "The ID of the target display object.",
5202 "zh": "檢查對象的物件ID"
5203 },
5204 "propertyOrder": 0,
5205 "suggest": [
5206 "actions<displayId>"
5207 ]
5208 },
5209 {
5210 "key": "checkType",
5211 "type": "string",
5212 "format": "string",
5213 "label": {
5214 "en": "Check Type",
5215 "zh": "檢查方式"
5216 },
5217 "default": {
5218 "en": "over"
5219 },
5220 "description": {
5221 "en": "Check Type.",
5222 "zh": "檢查方式"
5223 },
5224 "enum": [
5225 "over",
5226 "not over"
5227 ],
5228 "enumTitles": {
5229 "zh": [
5230 "懸浮其上",
5231 "沒有懸浮在指定的物件上"
5232 ]
5233 }
5234 },
5235 {
5236 "key": "disabled",
5237 "type": "boolean",
5238 "label": {
5239 "en": "Disable",
5240 "zh": "停用"
5241 },
5242 "default": {
5243 "en": "false"
5244 }
5245 },
5246 {
5247 "key": "_logi",
5248 "type": "object",
5249 "format": "grid",
5250 "label": {
5251 "en": "Logical Operation",
5252 "zh": "邏輯規則"
5253 }
5254 },
5255 {
5256 "key": "_and_or",
5257 "type": "string",
5258 "description": {
5259 "en": "To define the relation with the previous check.\nAND: group the check with its previous check as a single check.\nOR: when previous check fails, run this check instead. If previous check passes, skip this check.",
5260 "zh": "定義這個檢查與上一個檢查的關係。\nAND: 與上一個檢查合併為一個大檢查\nOR: 若上一個檢查不通過,則執行這個檢查。若上一個檢查已通過,則跳過這個檢查"
5261 },
5262 "parent": "_logi",
5263 "enum": [
5264 "",
5265 "AND",
5266 "OR"
5267 ]
5268 },
5269 {
5270 "key": "_not",
5271 "type": "boolean",
5272 "default": {
5273 "en": "false"
5274 },
5275 "description": {
5276 "en": "If checked, the check result will be reversed.",
5277 "zh": "若勾選,則反轉檢查的結果"
5278 },
5279 "parent": "_logi"
5280 },
5281 {
5282 "key": "_elseEventId",
5283 "type": "string",
5284 "label": {
5285 "en": "Else Trigger Event ID",
5286 "zh": "否則觸發事件ID"
5287 },
5288 "description": {
5289 "en": "When this event failed to pass the check test because of this check, it will trigger the event defined by this field.",
5290 "zh": "當這個事件觸發後因為這個檢查的關係而不執行動作,則會觸發這裏所設定的事件。"
5291 },
5292 "suggest": [
5293 "events<id>"
5294 ]
5295 }
5296 ]
5297 },
5298 "Expression": {
5299 "project": "CgEventsLib",
5300 "source": {
5301 "path": "checks/system",
5302 "filename": "Expression.check.ts"
5303 },
5304 "tostring": {},
5305 "className": "ExpressionCheck",
5306 "timestamp": 1606523608383,
5307 "label": {
5308 "en": "Evaluate Expression",
5309 "zh": "檢查表達式"
5310 },
5311 "description": {
5312 "en": "Evaluate an expression to be true or false. If the value of the expression is a number, returns false if 0, otherwise returns true;",
5313 "zh": "檢查一個表達式,看是否為真。若表達式的結果為數字,0為否,其他為真。"
5314 },
5315 "allpaths": {
5316 "en": [
5317 [
5318 "Variable"
5319 ]
5320 ],
5321 "zh": [
5322 [
5323 "變數"
5324 ]
5325 ]
5326 },
5327 "properties": [
5328 {
5329 "key": "expression",
5330 "type": "string",
5331 "format": "string",
5332 "label": {
5333 "en": "Expression",
5334 "zh": "表達式"
5335 },
5336 "description": {
5337 "en": "Description of this parameter in english."
5338 }
5339 },
5340 {
5341 "key": "disabled",
5342 "type": "boolean",
5343 "label": {
5344 "en": "Disable",
5345 "zh": "停用"
5346 },
5347 "default": {
5348 "en": "false"
5349 }
5350 },
5351 {
5352 "key": "_logi",
5353 "type": "object",
5354 "format": "grid",
5355 "label": {
5356 "en": "Logical Operation",
5357 "zh": "邏輯規則"
5358 }
5359 },
5360 {
5361 "key": "_and_or",
5362 "type": "string",
5363 "description": {
5364 "en": "To define the relation with the previous check.\nAND: group the check with its previous check as a single check.\nOR: when previous check fails, run this check instead. If previous check passes, skip this check.",
5365 "zh": "定義這個檢查與上一個檢查的關係。\nAND: 與上一個檢查合併為一個大檢查\nOR: 若上一個檢查不通過,則執行這個檢查。若上一個檢查已通過,則跳過這個檢查"
5366 },
5367 "parent": "_logi",
5368 "enum": [
5369 "",
5370 "AND",
5371 "OR"
5372 ]
5373 },
5374 {
5375 "key": "_not",
5376 "type": "boolean",
5377 "default": {
5378 "en": "false"
5379 },
5380 "description": {
5381 "en": "If checked, the check result will be reversed.",
5382 "zh": "若勾選,則反轉檢查的結果"
5383 },
5384 "parent": "_logi"
5385 },
5386 {
5387 "key": "_elseEventId",
5388 "type": "string",
5389 "label": {
5390 "en": "Else Trigger Event ID",
5391 "zh": "否則觸發事件ID"
5392 },
5393 "description": {
5394 "en": "When this event failed to pass the check test because of this check, it will trigger the event defined by this field.",
5395 "zh": "當這個事件觸發後因為這個檢查的關係而不執行動作,則會觸發這裏所設定的事件。"
5396 },
5397 "suggest": [
5398 "events<id>"
5399 ]
5400 }
5401 ]
5402 },
5403 "String": {
5404 "project": "CgEventsLib",
5405 "source": {
5406 "path": "checks/system",
5407 "filename": "String.check.ts"
5408 },
5409 "tostring": {},
5410 "className": "StringCheck",
5411 "timestamp": 1606523608383,
5412 "label": {
5413 "en": "Match String",
5414 "zh": "比對字串"
5415 },
5416 "description": {
5417 "en": "Check if a string contains another string or match against a regular expression.",
5418 "zh": "檢查一個字串是否包含另一個字串,或與一個正規表達式進行比對。"
5419 },
5420 "allpaths": {
5421 "en": [
5422 [
5423 "Variable"
5424 ]
5425 ],
5426 "zh": [
5427 [
5428 "變數"
5429 ]
5430 ]
5431 },
5432 "properties": [
5433 {
5434 "key": "value",
5435 "type": "string",
5436 "format": "string",
5437 "label": {
5438 "en": "String to check",
5439 "zh": "進行比對的字串"
5440 }
5441 },
5442 {
5443 "key": "method",
5444 "type": "string",
5445 "format": "string",
5446 "label": {
5447 "en": "Method",
5448 "zh": "檢查方式"
5449 },
5450 "enum": [
5451 "contain",
5452 "equal",
5453 "regexp"
5454 ],
5455 "enumTitles": {
5456 "en": [
5457 "Contains",
5458 "Equals",
5459 "RegExp"
5460 ],
5461 "zh": [
5462 "包含字串",
5463 "完全相等",
5464 "正規表達式"
5465 ]
5466 }
5467 },
5468 {
5469 "key": "str",
5470 "type": "string",
5471 "format": "string",
5472 "label": {
5473 "en": "String to match",
5474 "zh": "比對的字串"
5475 },
5476 "visible": "\"{method}\" != \"regexp\"",
5477 "indent": 1
5478 },
5479 {
5480 "key": "regexp",
5481 "type": "string",
5482 "format": "string",
5483 "label": {
5484 "en": "Regular Expression",
5485 "zh": "正規表達式"
5486 },
5487 "visible": "\"{method}\" == \"regexp\"",
5488 "indent": 1
5489 },
5490 {
5491 "key": "evtLocal",
5492 "type": "string",
5493 "format": "string",
5494 "label": {
5495 "en": "Local variable",
5496 "zh": "事件區域變數"
5497 },
5498 "description": {
5499 "en": "The local variable name that stores the matched string when check passed.\nIf using contains method, both the strings will be stored in a map.\n- (localVarname).string => the full string to be checked\n- (localVarname).match => the string to match\nIf using equals method, the whole string will be stored to the variable.\nIf using regexp method, the matched string will be stored in an array.\n- (localVarname).string => the full string to be checked\n- (localVarname).match.0 => the full matched string\n- (localVarname).match.1 => the first captured group string",
5500 "zh": "事件區域變數名,用來儲存比對成功的字串。\n若使用「包含字串」比對,則兩方字串都會被儲存在此變數\n- (事件區域變數).string => 完整被檢查的字串\n- (事件區域變數).match => 比對成功的字串片段\n若使用「完全相等」比對,則該字串會被儲存在此變數。\n若使用「正規表達式」比對,但比對成功的字串會以陣列的方式儲存在事件區域變數。\n- (事件區域變數).string => 完整被檢查的字串\n- (事件區域變數).match.0 => 比對成功的字串片段\n- (事件區域變數).match.1 => 比對成功的字串中,被正規表達式截取的第一個截取字串"
5501 }
5502 },
5503 {
5504 "key": "disabled",
5505 "type": "boolean",
5506 "label": {
5507 "en": "Disable",
5508 "zh": "停用"
5509 },
5510 "default": {
5511 "en": "false"
5512 }
5513 },
5514 {
5515 "key": "_logi",
5516 "type": "object",
5517 "format": "grid",
5518 "label": {
5519 "en": "Logical Operation",
5520 "zh": "邏輯規則"
5521 }
5522 },
5523 {
5524 "key": "_and_or",
5525 "type": "string",
5526 "description": {
5527 "en": "To define the relation with the previous check.\nAND: group the check with its previous check as a single check.\nOR: when previous check fails, run this check instead. If previous check passes, skip this check.",
5528 "zh": "定義這個檢查與上一個檢查的關係。\nAND: 與上一個檢查合併為一個大檢查\nOR: 若上一個檢查不通過,則執行這個檢查。若上一個檢查已通過,則跳過這個檢查"
5529 },
5530 "parent": "_logi",
5531 "enum": [
5532 "",
5533 "AND",
5534 "OR"
5535 ]
5536 },
5537 {
5538 "key": "_not",
5539 "type": "boolean",
5540 "default": {
5541 "en": "false"
5542 },
5543 "description": {
5544 "en": "If checked, the check result will be reversed.",
5545 "zh": "若勾選,則反轉檢查的結果"
5546 },
5547 "parent": "_logi"
5548 },
5549 {
5550 "key": "_elseEventId",
5551 "type": "string",
5552 "label": {
5553 "en": "Else Trigger Event ID",
5554 "zh": "否則觸發事件ID"
5555 },
5556 "description": {
5557 "en": "When this event failed to pass the check test because of this check, it will trigger the event defined by this field.",
5558 "zh": "當這個事件觸發後因為這個檢查的關係而不執行動作,則會觸發這裏所設定的事件。"
5559 },
5560 "suggest": [
5561 "events<id>"
5562 ]
5563 }
5564 ]
5565 },
5566 "SpriteFacing": {
5567 "project": "CgEventsLib",
5568 "source": {
5569 "path": "checks/display",
5570 "filename": "SpriteFacing.check.ts"
5571 },
5572 "tostring": {},
5573 "className": "SpriteFacingCheck",
5574 "timestamp": 1606523608383,
5575 "label": {
5576 "en": "Sight of View",
5577 "zh": "視線範圍"
5578 },
5579 "description": {
5580 "en": "Check if a display object is currently facing another display object.",
5581 "zh": "檢查一個顯示物件是否在另一個顯示物件的可視角度範圍內。"
5582 },
5583 "allpaths": {
5584 "en": [
5585 [
5586 "Display"
5587 ]
5588 ],
5589 "zh": [
5590 [
5591 "顯示"
5592 ]
5593 ]
5594 },
5595 "properties": [
5596 {
5597 "key": "operator",
5598 "type": "string",
5599 "format": "string",
5600 "label": {
5601 "en": "operator",
5602 "zh": "比較方式"
5603 },
5604 "description": {
5605 "en": "[en] The comparison operator\r",
5606 "zh": "比較方式"
5607 },
5608 "enum": [
5609 ">",
5610 ">=",
5611 "<",
5612 "<=",
5613 "==",
5614 "!="
5615 ]
5616 },
5617 {
5618 "key": "value",
5619 "type": "number",
5620 "format": "string",
5621 "label": {
5622 "en": "value",
5623 "zh": "比較值"
5624 },
5625 "description": {
5626 "en": "[en] the value to compare\r",
5627 "zh": "比較值"
5628 }
5629 },
5630 {
5631 "key": "displayId",
5632 "type": "string",
5633 "format": "string",
5634 "label": {
5635 "en": "ID of the display object",
5636 "zh": "顯示物件的ID"
5637 },
5638 "description": {
5639 "en": "[en] The ID of the target display object.\r",
5640 "zh": "檢查對象的物件ID"
5641 },
5642 "propertyOrder": 0,
5643 "suggest": [
5644 "actions<displayId>"
5645 ]
5646 },
5647 {
5648 "key": "operator",
5649 "type": "string",
5650 "visible": "false"
5651 },
5652 {
5653 "key": "value",
5654 "type": "number",
5655 "visible": "false"
5656 },
5657 {
5658 "key": "targetId",
5659 "type": "string",
5660 "format": "string",
5661 "label": {
5662 "en": "Target display object ID",
5663 "zh": "對象顯示物件ID"
5664 },
5665 "suggest": [
5666 "actions<displayId>"
5667 ]
5668 },
5669 {
5670 "key": "rangeOfError",
5671 "type": "number",
5672 "label": {
5673 "en": "Range of error",
5674 "zh": "誤差範圍"
5675 },
5676 "default": {
5677 "en": "5"
5678 },
5679 "description": {
5680 "en": "If the difference between test direction and the rotation of the object is less then this value, it is considered equal.",
5681 "zh": "若方向角度和物件旋轉角度的差值在誤差範圍內,則會被視為相等。"
5682 }
5683 },
5684 {
5685 "key": "maxDistance",
5686 "type": "number",
5687 "format": "string",
5688 "label": {
5689 "en": "Max Distance",
5690 "zh": "最大可視距離"
5691 },
5692 "default": {
5693 "en": "-1"
5694 },
5695 "description": {
5696 "en": "If distance to target is greater then maxDistance, check fails. Set to a negative value to ignore this setting.",
5697 "zh": "若對象距離超過最大可視距離,則檢查不通過。設定一個負數值以忽略比設定。"
5698 }
5699 },
5700 {
5701 "key": "disabled",
5702 "type": "boolean",
5703 "label": {
5704 "en": "Disable",
5705 "zh": "停用"
5706 },
5707 "default": {
5708 "en": "false"
5709 }
5710 },
5711 {
5712 "key": "_logi",
5713 "type": "object",
5714 "format": "grid",
5715 "label": {
5716 "en": "Logical Operation",
5717 "zh": "邏輯規則"
5718 }
5719 },
5720 {
5721 "key": "_and_or",
5722 "type": "string",
5723 "description": {
5724 "en": "To define the relation with the previous check.\nAND: group the check with its previous check as a single check.\nOR: when previous check fails, run this check instead. If previous check passes, skip this check.",
5725 "zh": "定義這個檢查與上一個檢查的關係。\nAND: 與上一個檢查合併為一個大檢查\nOR: 若上一個檢查不通過,則執行這個檢查。若上一個檢查已通過,則跳過這個檢查"
5726 },
5727 "parent": "_logi",
5728 "enum": [
5729 "",
5730 "AND",
5731 "OR"
5732 ]
5733 },
5734 {
5735 "key": "_not",
5736 "type": "boolean",
5737 "default": {
5738 "en": "false"
5739 },
5740 "description": {
5741 "en": "If checked, the check result will be reversed.",
5742 "zh": "若勾選,則反轉檢查的結果"
5743 },
5744 "parent": "_logi"
5745 },
5746 {
5747 "key": "_elseEventId",
5748 "type": "string",
5749 "label": {
5750 "en": "Else Trigger Event ID",
5751 "zh": "否則觸發事件ID"
5752 },
5753 "description": {
5754 "en": "When this event failed to pass the check test because of this check, it will trigger the event defined by this field.",
5755 "zh": "當這個事件觸發後因為這個檢查的關係而不執行動作,則會觸發這裏所設定的事件。"
5756 },
5757 "suggest": [
5758 "events<id>"
5759 ]
5760 }
5761 ]
5762 },
5763 "PhysicsProp": {
5764 "project": "CgEventsLib",
5765 "source": {
5766 "path": "checks/physics",
5767 "filename": "PhysicsProp.check.ts"
5768 },
5769 "tostring": {},
5770 "className": "PhysicsPropCheck",
5771 "timestamp": 1606523608383,
5772 "label": {
5773 "en": "Physics Property",
5774 "zh": "物理屬性"
5775 },
5776 "description": {
5777 "en": "Compare one property of a physics object against a value, including position, velocity, and etc.",
5778 "zh": "檢查物理物件的某個屬性是否符合條件,包括位置、速度、角速度等。"
5779 },
5780 "allpaths": {
5781 "en": [
5782 [
5783 "Physics"
5784 ]
5785 ],
5786 "zh": [
5787 [
5788 "物理"
5789 ]
5790 ]
5791 },
5792 "properties": [
5793 {
5794 "key": "operator",
5795 "type": "string",
5796 "format": "string",
5797 "label": {
5798 "en": "operator",
5799 "zh": "比較方式"
5800 },
5801 "description": {
5802 "en": "[en] The comparison operator\r",
5803 "zh": "比較方式"
5804 },
5805 "enum": [
5806 ">",
5807 ">=",
5808 "<",
5809 "<=",
5810 "==",
5811 "!="
5812 ]
5813 },
5814 {
5815 "key": "value",
5816 "type": "number",
5817 "format": "string",
5818 "label": {
5819 "en": "value",
5820 "zh": "比較值"
5821 },
5822 "description": {
5823 "en": "[en] the value to compare\r",
5824 "zh": "比較值"
5825 }
5826 },
5827 {
5828 "key": "physicsId",
5829 "type": "string",
5830 "format": "string",
5831 "label": {
5832 "en": "ID of the physics object",
5833 "zh": "物理剛體的ID"
5834 },
5835 "description": {
5836 "en": "[en] The ID of the target physics object.\r",
5837 "zh": "檢查對象的ID"
5838 },
5839 "propertyOrder": 0,
5840 "suggest": [
5841 "actions<physicsId>"
5842 ]
5843 },
5844 {
5845 "key": "property",
5846 "type": "string",
5847 "format": "string",
5848 "label": {
5849 "en": "Property",
5850 "zh": "屬性"
5851 },
5852 "description": {
5853 "en": "The property of the physics object to be compared",
5854 "zh": "用來比較的物理屬性"
5855 },
5856 "propertyOrder": 900,
5857 "enum": [
5858 "x",
5859 "y",
5860 "velocity",
5861 "velocityX",
5862 "velocityY",
5863 "angularVelocity"
5864 ]
5865 },
5866 {
5867 "key": "disabled",
5868 "type": "boolean",
5869 "label": {
5870 "en": "Disable",
5871 "zh": "停用"
5872 },
5873 "default": {
5874 "en": "false"
5875 }
5876 },
5877 {
5878 "key": "_logi",
5879 "type": "object",
5880 "format": "grid",
5881 "label": {
5882 "en": "Logical Operation",
5883 "zh": "邏輯規則"
5884 }
5885 },
5886 {
5887 "key": "_and_or",
5888 "type": "string",
5889 "description": {
5890 "en": "To define the relation with the previous check.\nAND: group the check with its previous check as a single check.\nOR: when previous check fails, run this check instead. If previous check passes, skip this check.",
5891 "zh": "定義這個檢查與上一個檢查的關係。\nAND: 與上一個檢查合併為一個大檢查\nOR: 若上一個檢查不通過,則執行這個檢查。若上一個檢查已通過,則跳過這個檢查"
5892 },
5893 "parent": "_logi",
5894 "enum": [
5895 "",
5896 "AND",
5897 "OR"
5898 ]
5899 },
5900 {
5901 "key": "_not",
5902 "type": "boolean",
5903 "default": {
5904 "en": "false"
5905 },
5906 "description": {
5907 "en": "If checked, the check result will be reversed.",
5908 "zh": "若勾選,則反轉檢查的結果"
5909 },
5910 "parent": "_logi"
5911 },
5912 {
5913 "key": "_elseEventId",
5914 "type": "string",
5915 "label": {
5916 "en": "Else Trigger Event ID",
5917 "zh": "否則觸發事件ID"
5918 },
5919 "description": {
5920 "en": "When this event failed to pass the check test because of this check, it will trigger the event defined by this field.",
5921 "zh": "當這個事件觸發後因為這個檢查的關係而不執行動作,則會觸發這裏所設定的事件。"
5922 },
5923 "suggest": [
5924 "events<id>"
5925 ]
5926 }
5927 ]
5928 },
5929 "Keyboard": {
5930 "project": "CgEventsLib",
5931 "source": {
5932 "path": "checks/uis",
5933 "filename": "Keyboard.check.ts"
5934 },
5935 "tostring": {},
5936 "className": "KeyboardCheck",
5937 "timestamp": 1606523608383,
5938 "label": {
5939 "en": "Keyboard",
5940 "zh": "鍵盤狀態"
5941 },
5942 "description": {
5943 "en": "Check if a key on the keyboard is currently pressed.",
5944 "zh": "檢查鍵盤上的某一個鍵是否是按下的狀態。"
5945 },
5946 "allpaths": {
5947 "en": [
5948 [
5949 "Input"
5950 ]
5951 ],
5952 "zh": [
5953 [
5954 "輸入"
5955 ]
5956 ]
5957 },
5958 "properties": [
5959 {
5960 "key": "key",
5961 "type": "number",
5962 "label": {
5963 "en": "Key",
5964 "zh": "按鍵"
5965 },
5966 "suggest": [
5967 "keyboard<*>"
5968 ],
5969 "suggestFilter": "none"
5970 },
5971 {
5972 "key": "state",
5973 "type": "string",
5974 "label": {
5975 "en": "Status",
5976 "zh": "狀態"
5977 },
5978 "default": {
5979 "en": "DOWN"
5980 },
5981 "enum": [
5982 "UP",
5983 "DOWN"
5984 ],
5985 "enumTitles": {
5986 "zh": [
5987 "放開",
5988 "按下"
5989 ]
5990 }
5991 },
5992 {
5993 "key": "disabled",
5994 "type": "boolean",
5995 "label": {
5996 "en": "Disable",
5997 "zh": "停用"
5998 },
5999 "default": {
6000 "en": "false"
6001 }
6002 },
6003 {
6004 "key": "_logi",
6005 "type": "object",
6006 "format": "grid",
6007 "label": {
6008 "en": "Logical Operation",
6009 "zh": "邏輯規則"
6010 }
6011 },
6012 {
6013 "key": "_and_or",
6014 "type": "string",
6015 "description": {
6016 "en": "To define the relation with the previous check.\nAND: group the check with its previous check as a single check.\nOR: when previous check fails, run this check instead. If previous check passes, skip this check.",
6017 "zh": "定義這個檢查與上一個檢查的關係。\nAND: 與上一個檢查合併為一個大檢查\nOR: 若上一個檢查不通過,則執行這個檢查。若上一個檢查已通過,則跳過這個檢查"
6018 },
6019 "parent": "_logi",
6020 "enum": [
6021 "",
6022 "AND",
6023 "OR"
6024 ]
6025 },
6026 {
6027 "key": "_not",
6028 "type": "boolean",
6029 "default": {
6030 "en": "false"
6031 },
6032 "description": {
6033 "en": "If checked, the check result will be reversed.",
6034 "zh": "若勾選,則反轉檢查的結果"
6035 },
6036 "parent": "_logi"
6037 },
6038 {
6039 "key": "_elseEventId",
6040 "type": "string",
6041 "label": {
6042 "en": "Else Trigger Event ID",
6043 "zh": "否則觸發事件ID"
6044 },
6045 "description": {
6046 "en": "When this event failed to pass the check test because of this check, it will trigger the event defined by this field.",
6047 "zh": "當這個事件觸發後因為這個檢查的關係而不執行動作,則會觸發這裏所設定的事件。"
6048 },
6049 "suggest": [
6050 "events<id>"
6051 ]
6052 }
6053 ]
6054 },
6055 "Mouse": {
6056 "project": "CgEventsLib",
6057 "source": {
6058 "path": "checks/display",
6059 "filename": "Mouse.check.ts"
6060 },
6061 "tostring": {},
6062 "className": "MouseCheck",
6063 "timestamp": 1606523608383,
6064 "label": {
6065 "en": "Mouse",
6066 "zh": "滑鼠狀態"
6067 },
6068 "description": {
6069 "en": "Check if a key on the keyboard is currently pressed.",
6070 "zh": "檢查鍵盤上的某一個鍵是否是按下的狀態。"
6071 },
6072 "allpaths": {
6073 "en": [
6074 [
6075 "Input"
6076 ]
6077 ],
6078 "zh": [
6079 [
6080 "輸入"
6081 ]
6082 ]
6083 },
6084 "properties": [
6085 {
6086 "key": "btn",
6087 "type": "number",
6088 "label": {
6089 "en": "Mouse Button",
6090 "zh": "檢查按鈕"
6091 },
6092 "default": {
6093 "en": "0"
6094 },
6095 "enum": [
6096 0,
6097 1,
6098 2,
6099 3,
6100 4
6101 ],
6102 "enumTitles": {
6103 "en": [
6104 "Left",
6105 "Middle",
6106 "Right",
6107 "Backward",
6108 "Forward"
6109 ],
6110 "zh": [
6111 "左鍵",
6112 "中間",
6113 "右鍵",
6114 "倒退鍵",
6115 "前進鍵"
6116 ]
6117 }
6118 },
6119 {
6120 "key": "state",
6121 "type": "string",
6122 "label": {
6123 "en": "Status",
6124 "zh": "狀態"
6125 },
6126 "default": {
6127 "en": "DOWN"
6128 },
6129 "enum": [
6130 "UP",
6131 "DOWN"
6132 ],
6133 "enumTitles": {
6134 "zh": [
6135 "放開",
6136 "按下"
6137 ]
6138 }
6139 },
6140 {
6141 "key": "disabled",
6142 "type": "boolean",
6143 "label": {
6144 "en": "Disable",
6145 "zh": "停用"
6146 },
6147 "default": {
6148 "en": "false"
6149 }
6150 },
6151 {
6152 "key": "_logi",
6153 "type": "object",
6154 "format": "grid",
6155 "label": {
6156 "en": "Logical Operation",
6157 "zh": "邏輯規則"
6158 }
6159 },
6160 {
6161 "key": "_and_or",
6162 "type": "string",
6163 "description": {
6164 "en": "To define the relation with the previous check.\nAND: group the check with its previous check as a single check.\nOR: when previous check fails, run this check instead. If previous check passes, skip this check.",
6165 "zh": "定義這個檢查與上一個檢查的關係。\nAND: 與上一個檢查合併為一個大檢查\nOR: 若上一個檢查不通過,則執行這個檢查。若上一個檢查已通過,則跳過這個檢查"
6166 },
6167 "parent": "_logi",
6168 "enum": [
6169 "",
6170 "AND",
6171 "OR"
6172 ]
6173 },
6174 {
6175 "key": "_not",
6176 "type": "boolean",
6177 "default": {
6178 "en": "false"
6179 },
6180 "description": {
6181 "en": "If checked, the check result will be reversed.",
6182 "zh": "若勾選,則反轉檢查的結果"
6183 },
6184 "parent": "_logi"
6185 },
6186 {
6187 "key": "_elseEventId",
6188 "type": "string",
6189 "label": {
6190 "en": "Else Trigger Event ID",
6191 "zh": "否則觸發事件ID"
6192 },
6193 "description": {
6194 "en": "When this event failed to pass the check test because of this check, it will trigger the event defined by this field.",
6195 "zh": "當這個事件觸發後因為這個檢查的關係而不執行動作,則會觸發這裏所設定的事件。"
6196 },
6197 "suggest": [
6198 "events<id>"
6199 ]
6200 }
6201 ]
6202 },
6203 "Platform": {
6204 "project": "CgEventsLib",
6205 "source": {
6206 "path": "checks/system",
6207 "filename": "Platform.check.ts"
6208 },
6209 "tostring": {},
6210 "className": "PlatformCheck",
6211 "timestamp": 1606523608383,
6212 "label": {
6213 "en": "Platform",
6214 "zh": "系統平台"
6215 },
6216 "description": {
6217 "en": "Check the platforms that the game is currently runnong on.",
6218 "zh": "檢查目前遊戲所在的系統平台。"
6219 },
6220 "allpaths": {
6221 "en": [
6222 [
6223 "System"
6224 ]
6225 ],
6226 "zh": [
6227 [
6228 "系統"
6229 ]
6230 ]
6231 },
6232 "properties": [
6233 {
6234 "key": "checkOs",
6235 "type": "boolean",
6236 "label": {
6237 "en": "Check Operation System",
6238 "zh": "檢查作業系統"
6239 }
6240 },
6241 {
6242 "key": "os",
6243 "type": "array",
6244 "label": {
6245 "en": "作業系統"
6246 },
6247 "arrayItem": "string",
6248 "enum": [
6249 "Windows",
6250 "Mac OS",
6251 "iOS",
6252 "Android",
6253 "Linux",
6254 "Unknown"
6255 ]
6256 },
6257 {
6258 "key": "touch",
6259 "type": "string",
6260 "label": {
6261 "en": "Check Touch Screen",
6262 "zh": "檢查觸控螢幕"
6263 },
6264 "enum": [
6265 "",
6266 "touch",
6267 "noTouch"
6268 ],
6269 "enumTitles": {
6270 "en": [
6271 "Igore Touch Check",
6272 "Support Touch Screen",
6273 "No Touch Screen"
6274 ],
6275 "zh": [
6276 "忽略此檢查",
6277 "支援觸控螢幕",
6278 "不支援觸控螢幕"
6279 ]
6280 }
6281 },
6282 {
6283 "key": "runMode",
6284 "type": "string",
6285 "label": {
6286 "en": "Check Dev Mode",
6287 "zh": "檢查偵錯環境"
6288 },
6289 "enum": [
6290 "",
6291 "dev",
6292 "prod"
6293 ],
6294 "enumTitles": {
6295 "en": [
6296 "Igore Touch Check",
6297 "Dev Mode",
6298 "Production"
6299 ],
6300 "zh": [
6301 "忽略此檢查",
6302 "試玩遊戲",
6303 "成品遊戲"
6304 ]
6305 }
6306 },
6307 {
6308 "key": "disabled",
6309 "type": "boolean",
6310 "label": {
6311 "en": "Disable",
6312 "zh": "停用"
6313 },
6314 "default": {
6315 "en": "false"
6316 }
6317 },
6318 {
6319 "key": "_logi",
6320 "type": "object",
6321 "format": "grid",
6322 "label": {
6323 "en": "Logical Operation",
6324 "zh": "邏輯規則"
6325 }
6326 },
6327 {
6328 "key": "_and_or",
6329 "type": "string",
6330 "description": {
6331 "en": "To define the relation with the previous check.\nAND: group the check with its previous check as a single check.\nOR: when previous check fails, run this check instead. If previous check passes, skip this check.",
6332 "zh": "定義這個檢查與上一個檢查的關係。\nAND: 與上一個檢查合併為一個大檢查\nOR: 若上一個檢查不通過,則執行這個檢查。若上一個檢查已通過,則跳過這個檢查"
6333 },
6334 "parent": "_logi",
6335 "enum": [
6336 "",
6337 "AND",
6338 "OR"
6339 ]
6340 },
6341 {
6342 "key": "_not",
6343 "type": "boolean",
6344 "default": {
6345 "en": "false"
6346 },
6347 "description": {
6348 "en": "If checked, the check result will be reversed.",
6349 "zh": "若勾選,則反轉檢查的結果"
6350 },
6351 "parent": "_logi"
6352 },
6353 {
6354 "key": "_elseEventId",
6355 "type": "string",
6356 "label": {
6357 "en": "Else Trigger Event ID",
6358 "zh": "否則觸發事件ID"
6359 },
6360 "description": {
6361 "en": "When this event failed to pass the check test because of this check, it will trigger the event defined by this field.",
6362 "zh": "當這個事件觸發後因為這個檢查的關係而不執行動作,則會觸發這裏所設定的事件。"
6363 },
6364 "suggest": [
6365 "events<id>"
6366 ]
6367 }
6368 ]
6369 },
6370 "VarExist": {
6371 "project": "CgEventsLib",
6372 "source": {
6373 "path": "checks/system",
6374 "filename": "VarExist.check.ts"
6375 },
6376 "tostring": {},
6377 "className": "VarExistCheck",
6378 "timestamp": 1606523608383,
6379 "label": {
6380 "en": "Variable Existence",
6381 "zh": "變數是否存在"
6382 },
6383 "description": {
6384 "en": "Check if a variable key exists in the current running event sheet.",
6385 "zh": "檢查一個變數是否存在於目前執行中的事件表。"
6386 },
6387 "allpaths": {
6388 "en": [
6389 [
6390 "Variable"
6391 ]
6392 ],
6393 "zh": [
6394 [
6395 "變數"
6396 ]
6397 ]
6398 },
6399 "properties": [
6400 {
6401 "key": "key",
6402 "type": "string",
6403 "format": "string",
6404 "label": {
6405 "en": "Variable Key to search",
6406 "zh": "用來尋找變數的鍵名(Key)"
6407 }
6408 },
6409 {
6410 "key": "value",
6411 "type": "string",
6412 "label": {
6413 "en": "Check",
6414 "zh": "檢查"
6415 },
6416 "enum": [
6417 "exist",
6418 "not exist",
6419 ""
6420 ],
6421 "enumTitles": {
6422 "en": [
6423 "Exist",
6424 "Not Exist",
6425 "Doesn't Matter"
6426 ],
6427 "zh": [
6428 "存在",
6429 "不存在",
6430 "都可以"
6431 ]
6432 }
6433 },
6434 {
6435 "key": "evtLocalCount",
6436 "type": "string",
6437 "format": "string",
6438 "label": {
6439 "en": "Local variable(Store the number of found objects)",
6440 "zh": "事件區域變數(儲存找到的物件數量)"
6441 }
6442 },
6443 {
6444 "key": "disabled",
6445 "type": "boolean",
6446 "label": {
6447 "en": "Disable",
6448 "zh": "停用"
6449 },
6450 "default": {
6451 "en": "false"
6452 }
6453 },
6454 {
6455 "key": "_logi",
6456 "type": "object",
6457 "format": "grid",
6458 "label": {
6459 "en": "Logical Operation",
6460 "zh": "邏輯規則"
6461 }
6462 },
6463 {
6464 "key": "_and_or",
6465 "type": "string",
6466 "description": {
6467 "en": "To define the relation with the previous check.\nAND: group the check with its previous check as a single check.\nOR: when previous check fails, run this check instead. If previous check passes, skip this check.",
6468 "zh": "定義這個檢查與上一個檢查的關係。\nAND: 與上一個檢查合併為一個大檢查\nOR: 若上一個檢查不通過,則執行這個檢查。若上一個檢查已通過,則跳過這個檢查"
6469 },
6470 "parent": "_logi",
6471 "enum": [
6472 "",
6473 "AND",
6474 "OR"
6475 ]
6476 },
6477 {
6478 "key": "_not",
6479 "type": "boolean",
6480 "default": {
6481 "en": "false"
6482 },
6483 "description": {
6484 "en": "If checked, the check result will be reversed.",
6485 "zh": "若勾選,則反轉檢查的結果"
6486 },
6487 "parent": "_logi"
6488 },
6489 {
6490 "key": "_elseEventId",
6491 "type": "string",
6492 "label": {
6493 "en": "Else Trigger Event ID",
6494 "zh": "否則觸發事件ID"
6495 },
6496 "description": {
6497 "en": "When this event failed to pass the check test because of this check, it will trigger the event defined by this field.",
6498 "zh": "當這個事件觸發後因為這個檢查的關係而不執行動作,則會觸發這裏所設定的事件。"
6499 },
6500 "suggest": [
6501 "events<id>"
6502 ]
6503 }
6504 ]
6505 },
6506 "For": {
6507 "project": "CgEventsLib",
6508 "source": {
6509 "path": "checks/loop",
6510 "filename": "For.check.ts"
6511 },
6512 "tostring": {},
6513 "className": "ForCheck",
6514 "timestamp": 1606523608383,
6515 "label": {
6516 "en": "For Index"
6517 },
6518 "description": {
6519 "en": "Perform a for loop with an index variable. Both startIndex and endIndex are inclusive.\nfor( index = startIndex ; index <= endIndex ; index += increment )",
6520 "zh": "以一個有Index變數迴圈重覆執行事件中的動作。起始和結束Index數值都在迴圈範圍中。\nfor( index = startIndex ; index <= endIndex ; index += increment )"
6521 },
6522 "allpaths": {
6523 "en": [
6524 [
6525 "Loop"
6526 ]
6527 ],
6528 "zh": [
6529 [
6530 "迴圈"
6531 ]
6532 ]
6533 },
6534 "properties": [
6535 {
6536 "key": "donotActOnEachPass",
6537 "type": "boolean",
6538 "format": "enum",
6539 "label": {
6540 "en": ""
6541 },
6542 "default": {
6543 "en": "false"
6544 },
6545 "propertyOrder": 0,
6546 "enum": [
6547 false,
6548 true
6549 ],
6550 "enumTitles": {
6551 "en": [
6552 "(Execute) Executes actions every loop on all sub-checks pass",
6553 "(NOT execute) Counts how many loops that pass all sub-checks"
6554 ],
6555 "zh": [
6556 "(執行動作) 每次迴圈通過其下所有檢查時皆執行動作",
6557 "(不執行動作) 計算迴圈共通過幾次其下所有檢查"
6558 ]
6559 }
6560 },
6561 {
6562 "key": "varnameTotalLoops",
6563 "type": "string",
6564 "label": {
6565 "en": "Local variable name: Total Loops",
6566 "zh": "區域變數名稱:總迴圈次數"
6567 },
6568 "default": {
6569 "en": "totalLoops"
6570 },
6571 "description": {
6572 "en": "The local variable name to store total loops count (The total count of code-matched objects).",
6573 "zh": "用來儲存總迴圈次數(即所有符合代碼條件的物件數量)。"
6574 },
6575 "propertyOrder": 1
6576 },
6577 {
6578 "key": "varnameOfPassCount",
6579 "type": "string",
6580 "label": {
6581 "en": "Local variable name: Total Passes",
6582 "zh": "區域變數名稱:通過檢查次數"
6583 },
6584 "default": {
6585 "en": "totalPasses"
6586 },
6587 "description": {
6588 "en": "The local variable name to store the accumulated count of loops that pass all sub-checks",
6589 "zh": "用來儲存目前累積成功通過其下所有檢查的迴圈次數。"
6590 },
6591 "propertyOrder": 2
6592 },
6593 {
6594 "key": "minPassToCheckPass",
6595 "type": "number",
6596 "format": "string",
6597 "label": {
6598 "en": "Minimum passed loops to pass this check",
6599 "zh": "檢查通過所需的最少成功通過檢查次數"
6600 },
6601 "default": {
6602 "en": "1"
6603 },
6604 "description": {
6605 "en": "This check passes when the count of loops that passs all sub-checked reaches the minimum value defined here.\n* Apply to (NOT execute) only.",
6606 "zh": "這個檢查只在累積成功通過其下所有檢查的迴圈次數達到這裏定義的最小次數才算通過。\n※ 這個設定只在(不執行動作)時作用。"
6607 },
6608 "visible": "{donotActOnEachPass}",
6609 "propertyOrder": 3
6610 },
6611 {
6612 "key": "varname",
6613 "type": "string",
6614 "label": {
6615 "en": "Local variable name: Index",
6616 "zh": "區域變數名稱:數值"
6617 },
6618 "default": {
6619 "en": "index"
6620 },
6621 "description": {
6622 "en": "The local variable name to store the current index value in the loop.",
6623 "zh": "用來儲存迴圈中目前正使用的Index數值。"
6624 }
6625 },
6626 {
6627 "key": "startIndex",
6628 "type": "number",
6629 "format": "string",
6630 "label": {
6631 "en": "Start index of the loop",
6632 "zh": "起始數值"
6633 },
6634 "default": {
6635 "en": "0"
6636 }
6637 },
6638 {
6639 "key": "endIndex",
6640 "type": "number",
6641 "format": "string",
6642 "label": {
6643 "en": "End index of the loop(Included)",
6644 "zh": "結束數值(包括在內)"
6645 },
6646 "default": {
6647 "en": "10"
6648 }
6649 },
6650 {
6651 "key": "increment",
6652 "type": "number",
6653 "format": "string",
6654 "label": {
6655 "en": "Increment",
6656 "zh": "變化量"
6657 },
6658 "default": {
6659 "en": "1"
6660 }
6661 },
6662 {
6663 "key": "disabled",
6664 "type": "boolean",
6665 "label": {
6666 "en": "Disable",
6667 "zh": "停用"
6668 },
6669 "default": {
6670 "en": "false"
6671 }
6672 },
6673 {
6674 "key": "_logi",
6675 "type": "object",
6676 "format": "grid",
6677 "label": {
6678 "en": "Logical Operation",
6679 "zh": "邏輯規則"
6680 }
6681 },
6682 {
6683 "key": "_and_or",
6684 "type": "string",
6685 "description": {
6686 "en": "To define the relation with the previous check.\nAND: group the check with its previous check as a single check.\nOR: when previous check fails, run this check instead. If previous check passes, skip this check.",
6687 "zh": "定義這個檢查與上一個檢查的關係。\nAND: 與上一個檢查合併為一個大檢查\nOR: 若上一個檢查不通過,則執行這個檢查。若上一個檢查已通過,則跳過這個檢查"
6688 },
6689 "parent": "_logi",
6690 "enum": [
6691 "",
6692 "AND",
6693 "OR"
6694 ]
6695 },
6696 {
6697 "key": "_not",
6698 "type": "boolean",
6699 "default": {
6700 "en": "false"
6701 },
6702 "description": {
6703 "en": "If checked, the check result will be reversed.",
6704 "zh": "若勾選,則反轉檢查的結果"
6705 },
6706 "parent": "_logi"
6707 },
6708 {
6709 "key": "_elseEventId",
6710 "type": "string",
6711 "label": {
6712 "en": "Else Trigger Event ID",
6713 "zh": "否則觸發事件ID"
6714 },
6715 "description": {
6716 "en": "When this event failed to pass the check test because of this check, it will trigger the event defined by this field.",
6717 "zh": "當這個事件觸發後因為這個檢查的關係而不執行動作,則會觸發這裏所設定的事件。"
6718 },
6719 "suggest": [
6720 "events<id>"
6721 ]
6722 }
6723 ],
6724 "specialMethods": [
6725 "runLoop"
6726 ]
6727 },
6728 "ForEach": {
6729 "project": "CgEventsLib",
6730 "source": {
6731 "path": "checks/loop",
6732 "filename": "ForEach.check.ts"
6733 },
6734 "tostring": {},
6735 "className": "ForEachCheck",
6736 "timestamp": 1606523608383,
6737 "label": {
6738 "en": "For Each"
6739 },
6740 "description": {
6741 "en": "Perform a for each loop with a variable that indicates the current looped object.\nfor( varname of objects )",
6742 "zh": "對符合條件的物件陣列進行迴圈重覆執行事件中的動作。\nfor( varname of objects )"
6743 },
6744 "allpaths": {
6745 "en": [
6746 [
6747 "Loop"
6748 ]
6749 ],
6750 "zh": [
6751 [
6752 "迴圈"
6753 ]
6754 ]
6755 },
6756 "properties": [
6757 {
6758 "key": "donotActOnEachPass",
6759 "type": "boolean",
6760 "format": "enum",
6761 "label": {
6762 "en": ""
6763 },
6764 "default": {
6765 "en": "false"
6766 },
6767 "propertyOrder": 0,
6768 "enum": [
6769 false,
6770 true
6771 ],
6772 "enumTitles": {
6773 "en": [
6774 "(Execute) Executes actions every loop on all sub-checks pass",
6775 "(NOT execute) Counts how many loops that pass all sub-checks"
6776 ],
6777 "zh": [
6778 "(執行動作) 每次迴圈通過其下所有檢查時皆執行動作",
6779 "(不執行動作) 計算迴圈共通過幾次其下所有檢查"
6780 ]
6781 }
6782 },
6783 {
6784 "key": "varnameTotalLoops",
6785 "type": "string",
6786 "label": {
6787 "en": "Local variable name: Total Loops",
6788 "zh": "區域變數名稱:總迴圈次數"
6789 },
6790 "default": {
6791 "en": "totalLoops"
6792 },
6793 "description": {
6794 "en": "The local variable name to store total loops count (The total count of code-matched objects).",
6795 "zh": "用來儲存總迴圈次數(即所有符合代碼條件的物件數量)。"
6796 },
6797 "propertyOrder": 1
6798 },
6799 {
6800 "key": "varnameOfPassCount",
6801 "type": "string",
6802 "label": {
6803 "en": "Local variable name: Total Passes",
6804 "zh": "區域變數名稱:通過檢查次數"
6805 },
6806 "default": {
6807 "en": "totalPasses"
6808 },
6809 "description": {
6810 "en": "The local variable name to store the accumulated count of loops that pass all sub-checks",
6811 "zh": "用來儲存目前累積成功通過其下所有檢查的迴圈次數。"
6812 },
6813 "propertyOrder": 2
6814 },
6815 {
6816 "key": "minPassToCheckPass",
6817 "type": "number",
6818 "format": "string",
6819 "label": {
6820 "en": "Minimum passed loops to pass this check",
6821 "zh": "檢查通過所需的最少成功通過檢查次數"
6822 },
6823 "default": {
6824 "en": "1"
6825 },
6826 "description": {
6827 "en": "This check passes when the count of loops that passs all sub-checked reaches the minimum value defined here.\n* Apply to (NOT execute) only.",
6828 "zh": "這個檢查只在累積成功通過其下所有檢查的迴圈次數達到這裏定義的最小次數才算通過。\n※ 這個設定只在(不執行動作)時作用。"
6829 },
6830 "visible": "{donotActOnEachPass}",
6831 "propertyOrder": 3
6832 },
6833 {
6834 "key": "varname",
6835 "type": "string",
6836 "label": {
6837 "en": "Local variable name:Object",
6838 "zh": "區域變數名稱:物件"
6839 },
6840 "default": {
6841 "en": "instance"
6842 },
6843 "description": {
6844 "en": "The local variable name to store the current object in the loop.",
6845 "zh": "用來儲存迴圈中目前正使用的物件。"
6846 }
6847 },
6848 {
6849 "key": "objectId",
6850 "type": "string",
6851 "label": {
6852 "en": "The ID for searching objects",
6853 "zh": "用來搜尋物件的ID"
6854 },
6855 "description": {
6856 "en": "Use * and + in the ID to perform a wildcard search.\nThe * indicates 0 or more wildcard\nThe + indicates 1 or more wildcard\nEx. \"monster*\" collects \"monster001\", \"monsterEnemy\", and \"monster\"\nEx. \"monster+\" collects \"monster001\", \"monsterEnemy\", but no \"monster\"",
6857 "zh": "使用 * 及 + 可使用通配字元搜尋物件。\n使用 * 代表0個或更多的通配字元\n使用 + 代表1個或更多的通配字元\n例: \"monster*\" 可收集 \"monster001\", \"monsterEnemy\", 及 \"monster\"\n例: \"monster+\" 可收集 \"monster001\", \"monsterEnemy\", 但不包括 \"monster\""
6858 }
6859 },
6860 {
6861 "key": "uniqueList",
6862 "type": "boolean",
6863 "label": {
6864 "en": "Collect unique items in the loop",
6865 "zh": "物件不垂覆"
6866 }
6867 },
6868 {
6869 "key": "orderBy",
6870 "type": "string",
6871 "label": {
6872 "en": "Sort the objects with a key",
6873 "zh": "以一個鍵值排序物件"
6874 },
6875 "description": {
6876 "en": "Provide orderBy will filter objects that does not contains the key, and sort by the key.",
6877 "zh": "若提供orderBy的鍵值,則會排除沒有這個鍵值的物件,並使用此鍵值對物件排序。"
6878 }
6879 },
6880 {
6881 "key": "decending",
6882 "type": "boolean",
6883 "label": {
6884 "en": "Order Decending",
6885 "zh": "排序順序由大至小"
6886 }
6887 },
6888 {
6889 "key": "maxTriggers",
6890 "type": "number",
6891 "format": "string",
6892 "label": {
6893 "en": "Max Triggers",
6894 "zh": "最多動作觸發次數"
6895 },
6896 "description": {
6897 "en": "If set (not-zero), the loop counts is restricted by the number of successful triggers.",
6898 "zh": "若有設定(非零整數),則迴圈次數會被限制在成功觸發動作的次數內。"
6899 }
6900 },
6901 {
6902 "key": "disabled",
6903 "type": "boolean",
6904 "label": {
6905 "en": "Disable",
6906 "zh": "停用"
6907 },
6908 "default": {
6909 "en": "false"
6910 }
6911 },
6912 {
6913 "key": "_logi",
6914 "type": "object",
6915 "format": "grid",
6916 "label": {
6917 "en": "Logical Operation",
6918 "zh": "邏輯規則"
6919 }
6920 },
6921 {
6922 "key": "_and_or",
6923 "type": "string",
6924 "description": {
6925 "en": "To define the relation with the previous check.\nAND: group the check with its previous check as a single check.\nOR: when previous check fails, run this check instead. If previous check passes, skip this check.",
6926 "zh": "定義這個檢查與上一個檢查的關係。\nAND: 與上一個檢查合併為一個大檢查\nOR: 若上一個檢查不通過,則執行這個檢查。若上一個檢查已通過,則跳過這個檢查"
6927 },
6928 "parent": "_logi",
6929 "enum": [
6930 "",
6931 "AND",
6932 "OR"
6933 ]
6934 },
6935 {
6936 "key": "_not",
6937 "type": "boolean",
6938 "default": {
6939 "en": "false"
6940 },
6941 "description": {
6942 "en": "If checked, the check result will be reversed.",
6943 "zh": "若勾選,則反轉檢查的結果"
6944 },
6945 "parent": "_logi"
6946 },
6947 {
6948 "key": "_elseEventId",
6949 "type": "string",
6950 "label": {
6951 "en": "Else Trigger Event ID",
6952 "zh": "否則觸發事件ID"
6953 },
6954 "description": {
6955 "en": "When this event failed to pass the check test because of this check, it will trigger the event defined by this field.",
6956 "zh": "當這個事件觸發後因為這個檢查的關係而不執行動作,則會觸發這裏所設定的事件。"
6957 },
6958 "suggest": [
6959 "events<id>"
6960 ]
6961 }
6962 ],
6963 "specialMethods": [
6964 "runLoop"
6965 ]
6966 },
6967 "InScreen": {
6968 "project": "CgEventsLib",
6969 "source": {
6970 "path": "checks/display",
6971 "filename": "InScreen.check.ts"
6972 },
6973 "tostring": {},
6974 "className": "InScreenCheck",
6975 "timestamp": 1606523608383,
6976 "label": {
6977 "en": "In Screen",
6978 "zh": "在可視範圍中"
6979 },
6980 "description": {
6981 "en": "Check if a display object or a point is inside the visible screen range.",
6982 "zh": "檢查一個顯示物件或一個點是否位在舞台的可視範圍中。"
6983 },
6984 "allpaths": {
6985 "en": [
6986 [
6987 "Display"
6988 ]
6989 ],
6990 "zh": [
6991 [
6992 "顯示"
6993 ]
6994 ]
6995 },
6996 "properties": [
6997 {
6998 "key": "displayId",
6999 "type": "string",
7000 "format": "string",
7001 "label": {
7002 "en": "ID of the display object",
7003 "zh": "顯示物件的ID"
7004 },
7005 "description": {
7006 "en": "The ID of the target display object to be checked.",
7007 "zh": "檢查的目標物件ID。"
7008 },
7009 "required": 1,
7010 "suggest": [
7011 "actions<displayId>"
7012 ]
7013 },
7014 {
7015 "key": "range",
7016 "type": "string",
7017 "label": {
7018 "en": "Range",
7019 "zh": "範圍的定義"
7020 },
7021 "default": {
7022 "en": "stage"
7023 },
7024 "enum": [
7025 "fullscreen",
7026 "stage"
7027 ],
7028 "enumTitles": {
7029 "en": [
7030 "FULLSCREEN",
7031 "STAGE"
7032 ],
7033 "zh": [
7034 "全視窗",
7035 "舞台"
7036 ]
7037 }
7038 },
7039 {
7040 "key": "aPoint",
7041 "type": "boolean",
7042 "label": {
7043 "en": "Target to A Point relative to the display object",
7044 "zh": "改為檢查相對於顯示物件的一個點座標"
7045 }
7046 },
7047 {
7048 "key": "point",
7049 "type": "#Point",
7050 "label": {
7051 "en": "Target Point",
7052 "zh": "點座標"
7053 },
7054 "default": {
7055 "en": "{\"x\": 0, \"y\": 0}"
7056 },
7057 "visible": "{aPoint}",
7058 "indent": 1
7059 },
7060 {
7061 "key": "disabled",
7062 "type": "boolean",
7063 "label": {
7064 "en": "Disable",
7065 "zh": "停用"
7066 },
7067 "default": {
7068 "en": "false"
7069 }
7070 },
7071 {
7072 "key": "_logi",
7073 "type": "object",
7074 "format": "grid",
7075 "label": {
7076 "en": "Logical Operation",
7077 "zh": "邏輯規則"
7078 }
7079 },
7080 {
7081 "key": "_and_or",
7082 "type": "string",
7083 "description": {
7084 "en": "To define the relation with the previous check.\nAND: group the check with its previous check as a single check.\nOR: when previous check fails, run this check instead. If previous check passes, skip this check.",
7085 "zh": "定義這個檢查與上一個檢查的關係。\nAND: 與上一個檢查合併為一個大檢查\nOR: 若上一個檢查不通過,則執行這個檢查。若上一個檢查已通過,則跳過這個檢查"
7086 },
7087 "parent": "_logi",
7088 "enum": [
7089 "",
7090 "AND",
7091 "OR"
7092 ]
7093 },
7094 {
7095 "key": "_not",
7096 "type": "boolean",
7097 "default": {
7098 "en": "false"
7099 },
7100 "description": {
7101 "en": "If checked, the check result will be reversed.",
7102 "zh": "若勾選,則反轉檢查的結果"
7103 },
7104 "parent": "_logi"
7105 },
7106 {
7107 "key": "_elseEventId",
7108 "type": "string",
7109 "label": {
7110 "en": "Else Trigger Event ID",
7111 "zh": "否則觸發事件ID"
7112 },
7113 "description": {
7114 "en": "When this event failed to pass the check test because of this check, it will trigger the event defined by this field.",
7115 "zh": "當這個事件觸發後因為這個檢查的關係而不執行動作,則會觸發這裏所設定的事件。"
7116 },
7117 "suggest": [
7118 "events<id>"
7119 ]
7120 }
7121 ]
7122 },
7123 "SpriteOverlap": {
7124 "project": "CgEventsLib",
7125 "source": {
7126 "path": "checks/display",
7127 "filename": "SpriteOverlap.check.ts"
7128 },
7129 "tostring": {},
7130 "className": "SpriteOverlapCheck",
7131 "timestamp": 1606523608383,
7132 "label": {
7133 "en": "Sprite Overlap",
7134 "zh": "物件重疊"
7135 },
7136 "description": {
7137 "en": "Check if two display objects currently overlap.",
7138 "zh": "檢查兩個顯示物件是否有部分重疊。"
7139 },
7140 "allpaths": {
7141 "en": [
7142 [
7143 "Display"
7144 ]
7145 ],
7146 "zh": [
7147 [
7148 "顯示"
7149 ]
7150 ]
7151 },
7152 "properties": [
7153 {
7154 "key": "displayId",
7155 "type": "string",
7156 "format": "string",
7157 "label": {
7158 "en": "ID of the display object",
7159 "zh": "顯示物件的ID"
7160 },
7161 "description": {
7162 "en": "The ID of the first display object.",
7163 "zh": "第一個檢查物件的ID"
7164 },
7165 "propertyOrder": 0,
7166 "suggest": [
7167 "actions<displayId>"
7168 ]
7169 },
7170 {
7171 "key": "targetId",
7172 "type": "string",
7173 "format": "string",
7174 "label": {
7175 "en": "ID of the display object",
7176 "zh": "顯示物件的ID"
7177 },
7178 "description": {
7179 "en": "The ID of the second display object.",
7180 "zh": "第二檢查物件的ID"
7181 },
7182 "propertyOrder": 0,
7183 "suggest": [
7184 "actions<displayId>"
7185 ]
7186 },
7187 {
7188 "key": "shape",
7189 "type": "string",
7190 "label": {
7191 "en": "Check Type",
7192 "zh": "檢查方式"
7193 },
7194 "enum": [
7195 "bounds",
7196 "distance"
7197 ],
7198 "enumTitles": {
7199 "en": [
7200 "Bounds",
7201 "Distance"
7202 ],
7203 "zh": [
7204 "圖形邊界",
7205 "距離"
7206 ]
7207 }
7208 },
7209 {
7210 "key": "distance",
7211 "type": "number",
7212 "format": "string",
7213 "label": {
7214 "en": "Distance",
7215 "zh": "距離"
7216 },
7217 "default": {
7218 "en": "10"
7219 },
7220 "description": {
7221 "en": "Check pass when the distance between two objects are less then this value.",
7222 "zh": "當兩物件的距離小於設定值時通過檢查。"
7223 },
7224 "visible": "\"{shape}\"==\"distance\"",
7225 "indent": 1
7226 },
7227 {
7228 "key": "disabled",
7229 "type": "boolean",
7230 "label": {
7231 "en": "Disable",
7232 "zh": "停用"
7233 },
7234 "default": {
7235 "en": "false"
7236 }
7237 },
7238 {
7239 "key": "_logi",
7240 "type": "object",
7241 "format": "grid",
7242 "label": {
7243 "en": "Logical Operation",
7244 "zh": "邏輯規則"
7245 }
7246 },
7247 {
7248 "key": "_and_or",
7249 "type": "string",
7250 "description": {
7251 "en": "To define the relation with the previous check.\nAND: group the check with its previous check as a single check.\nOR: when previous check fails, run this check instead. If previous check passes, skip this check.",
7252 "zh": "定義這個檢查與上一個檢查的關係。\nAND: 與上一個檢查合併為一個大檢查\nOR: 若上一個檢查不通過,則執行這個檢查。若上一個檢查已通過,則跳過這個檢查"
7253 },
7254 "parent": "_logi",
7255 "enum": [
7256 "",
7257 "AND",
7258 "OR"
7259 ]
7260 },
7261 {
7262 "key": "_not",
7263 "type": "boolean",
7264 "default": {
7265 "en": "false"
7266 },
7267 "description": {
7268 "en": "If checked, the check result will be reversed.",
7269 "zh": "若勾選,則反轉檢查的結果"
7270 },
7271 "parent": "_logi"
7272 },
7273 {
7274 "key": "_elseEventId",
7275 "type": "string",
7276 "label": {
7277 "en": "Else Trigger Event ID",
7278 "zh": "否則觸發事件ID"
7279 },
7280 "description": {
7281 "en": "When this event failed to pass the check test because of this check, it will trigger the event defined by this field.",
7282 "zh": "當這個事件觸發後因為這個檢查的關係而不執行動作,則會觸發這裏所設定的事件。"
7283 },
7284 "suggest": [
7285 "events<id>"
7286 ]
7287 }
7288 ]
7289 },
7290 "PhysicsWorldStopped": {
7291 "project": "CgEventsLib",
7292 "source": {
7293 "path": "checks/physics",
7294 "filename": "PhysicsWorldStopped.check.ts"
7295 },
7296 "tostring": {},
7297 "className": "PhysicsWorldStoppedCheck",
7298 "timestamp": 1606523608383,
7299 "label": {
7300 "en": "Physics World Stopped",
7301 "zh": "物理世界靜止"
7302 },
7303 "description": {
7304 "en": "Check if all objects in the physics world has stopped.",
7305 "zh": "檢查物理世界的所有物體是否都已停止。"
7306 },
7307 "allpaths": {
7308 "en": [
7309 [
7310 "Physics"
7311 ]
7312 ],
7313 "zh": [
7314 [
7315 "物理"
7316 ]
7317 ]
7318 },
7319 "properties": [
7320 {
7321 "key": "maxVelocity",
7322 "type": "number",
7323 "format": "string",
7324 "default": {
7325 "en": "0.01"
7326 },
7327 "description": {
7328 "en": "Max velocity that is considered stopped. All objects must have velocity that is lower than this number to pass the test.",
7329 "zh": "被認為是靜止的最大速度。所有的物理物件的速度都必須小於這個設定才會通過檢查。"
7330 }
7331 },
7332 {
7333 "key": "maxAngularVelocity",
7334 "type": "number",
7335 "format": "string",
7336 "default": {
7337 "en": "0.01"
7338 },
7339 "description": {
7340 "en": "Max angular velocity that is considered stopped. All objects must have angular velocity that is lower than this number to pass the test.",
7341 "zh": "被認為是靜止的最大旋轉速度。所有的物理物件的旋轉速度都必須小於這個設定才會通過檢查。"
7342 }
7343 },
7344 {
7345 "key": "disabled",
7346 "type": "boolean",
7347 "label": {
7348 "en": "Disable",
7349 "zh": "停用"
7350 },
7351 "default": {
7352 "en": "false"
7353 }
7354 },
7355 {
7356 "key": "_logi",
7357 "type": "object",
7358 "format": "grid",
7359 "label": {
7360 "en": "Logical Operation",
7361 "zh": "邏輯規則"
7362 }
7363 },
7364 {
7365 "key": "_and_or",
7366 "type": "string",
7367 "description": {
7368 "en": "To define the relation with the previous check.\nAND: group the check with its previous check as a single check.\nOR: when previous check fails, run this check instead. If previous check passes, skip this check.",
7369 "zh": "定義這個檢查與上一個檢查的關係。\nAND: 與上一個檢查合併為一個大檢查\nOR: 若上一個檢查不通過,則執行這個檢查。若上一個檢查已通過,則跳過這個檢查"
7370 },
7371 "parent": "_logi",
7372 "enum": [
7373 "",
7374 "AND",
7375 "OR"
7376 ]
7377 },
7378 {
7379 "key": "_not",
7380 "type": "boolean",
7381 "default": {
7382 "en": "false"
7383 },
7384 "description": {
7385 "en": "If checked, the check result will be reversed.",
7386 "zh": "若勾選,則反轉檢查的結果"
7387 },
7388 "parent": "_logi"
7389 },
7390 {
7391 "key": "_elseEventId",
7392 "type": "string",
7393 "label": {
7394 "en": "Else Trigger Event ID",
7395 "zh": "否則觸發事件ID"
7396 },
7397 "description": {
7398 "en": "When this event failed to pass the check test because of this check, it will trigger the event defined by this field.",
7399 "zh": "當這個事件觸發後因為這個檢查的關係而不執行動作,則會觸發這裏所設定的事件。"
7400 },
7401 "suggest": [
7402 "events<id>"
7403 ]
7404 }
7405 ]
7406 },
7407 "PhysicsRotation": {
7408 "project": "CgEventsLib",
7409 "source": {
7410 "path": "checks/physics",
7411 "filename": "PhysicsRotation.check.ts"
7412 },
7413 "tostring": {},
7414 "className": "PhysicsRotationCheck",
7415 "timestamp": 1606523608383,
7416 "label": {
7417 "en": "Physics Rotation",
7418 "zh": "物理角度"
7419 },
7420 "description": {
7421 "en": "Compare the rotation of a physics object against a direction.",
7422 "zh": "檢查物理物件的旋轉角度與一個指定方向的關係。"
7423 },
7424 "allpaths": {
7425 "en": [
7426 [
7427 "Physics"
7428 ]
7429 ],
7430 "zh": [
7431 [
7432 "物理"
7433 ]
7434 ]
7435 },
7436 "properties": [
7437 {
7438 "key": "operator",
7439 "type": "string",
7440 "format": "string",
7441 "label": {
7442 "en": "operator",
7443 "zh": "比較方式"
7444 },
7445 "description": {
7446 "en": "[en] The comparison operator\r",
7447 "zh": "比較方式"
7448 },
7449 "enum": [
7450 ">",
7451 ">=",
7452 "<",
7453 "<=",
7454 "==",
7455 "!="
7456 ]
7457 },
7458 {
7459 "key": "value",
7460 "type": "number",
7461 "format": "string",
7462 "label": {
7463 "en": "value",
7464 "zh": "比較值"
7465 },
7466 "description": {
7467 "en": "[en] the value to compare\r",
7468 "zh": "比較值"
7469 }
7470 },
7471 {
7472 "key": "physicsId",
7473 "type": "string",
7474 "format": "string",
7475 "label": {
7476 "en": "ID of the physics object",
7477 "zh": "物理剛體的ID"
7478 },
7479 "description": {
7480 "en": "[en] The ID of the target physics object.\r",
7481 "zh": "檢查對象的ID"
7482 },
7483 "propertyOrder": 0,
7484 "suggest": [
7485 "actions<physicsId>"
7486 ]
7487 },
7488 {
7489 "key": "value",
7490 "type": "number",
7491 "format": "string",
7492 "label": {
7493 "en": "Direction in degrees",
7494 "zh": "方向角度"
7495 },
7496 "description": {
7497 "en": "the direction in degrees to compare with the rotation of the object. The difference of the two degrees will be normalized to (-180, 180] in degrees before compared.",
7498 "zh": "用來和物件旋轉比較的方向角度(degrees)。 兩方物件的角度差值將被正規化至 (-180, 180] 的範圍內作比較。"
7499 }
7500 },
7501 {
7502 "key": "rangeOfError",
7503 "type": "number",
7504 "format": "string",
7505 "label": {
7506 "en": "Range of error",
7507 "zh": "誤差範圍"
7508 },
7509 "default": {
7510 "en": "5"
7511 },
7512 "description": {
7513 "en": "If the difference between test direction and the rotation of the object is less then this value, it is considered equal.",
7514 "zh": "若方向角度和物件旋轉角度的差值在誤差範圍內,則會被視為相等。"
7515 }
7516 },
7517 {
7518 "key": "disabled",
7519 "type": "boolean",
7520 "label": {
7521 "en": "Disable",
7522 "zh": "停用"
7523 },
7524 "default": {
7525 "en": "false"
7526 }
7527 },
7528 {
7529 "key": "_logi",
7530 "type": "object",
7531 "format": "grid",
7532 "label": {
7533 "en": "Logical Operation",
7534 "zh": "邏輯規則"
7535 }
7536 },
7537 {
7538 "key": "_and_or",
7539 "type": "string",
7540 "description": {
7541 "en": "To define the relation with the previous check.\nAND: group the check with its previous check as a single check.\nOR: when previous check fails, run this check instead. If previous check passes, skip this check.",
7542 "zh": "定義這個檢查與上一個檢查的關係。\nAND: 與上一個檢查合併為一個大檢查\nOR: 若上一個檢查不通過,則執行這個檢查。若上一個檢查已通過,則跳過這個檢查"
7543 },
7544 "parent": "_logi",
7545 "enum": [
7546 "",
7547 "AND",
7548 "OR"
7549 ]
7550 },
7551 {
7552 "key": "_not",
7553 "type": "boolean",
7554 "default": {
7555 "en": "false"
7556 },
7557 "description": {
7558 "en": "If checked, the check result will be reversed.",
7559 "zh": "若勾選,則反轉檢查的結果"
7560 },
7561 "parent": "_logi"
7562 },
7563 {
7564 "key": "_elseEventId",
7565 "type": "string",
7566 "label": {
7567 "en": "Else Trigger Event ID",
7568 "zh": "否則觸發事件ID"
7569 },
7570 "description": {
7571 "en": "When this event failed to pass the check test because of this check, it will trigger the event defined by this field.",
7572 "zh": "當這個事件觸發後因為這個檢查的關係而不執行動作,則會觸發這裏所設定的事件。"
7573 },
7574 "suggest": [
7575 "events<id>"
7576 ]
7577 }
7578 ]
7579 },
7580 "PhysicsFacing": {
7581 "project": "CgEventsLib",
7582 "source": {
7583 "path": "checks/physics",
7584 "filename": "PhysicsFacing.check.ts"
7585 },
7586 "tostring": {},
7587 "className": "PhysicsFacingCheck",
7588 "timestamp": 1606523608383,
7589 "label": {
7590 "en": "Sight of View",
7591 "zh": "視線範圍"
7592 },
7593 "description": {
7594 "en": "Check if a physics object is currently facing another physics object.",
7595 "zh": "檢查一個物理物件是否在另一個物理物件的可視角度範圍內。"
7596 },
7597 "allpaths": {
7598 "en": [
7599 [
7600 "Physics"
7601 ]
7602 ],
7603 "zh": [
7604 [
7605 "物理"
7606 ]
7607 ]
7608 },
7609 "properties": [
7610 {
7611 "key": "operator",
7612 "type": "string",
7613 "format": "string",
7614 "label": {
7615 "en": "operator",
7616 "zh": "比較方式"
7617 },
7618 "description": {
7619 "en": "[en] The comparison operator\r",
7620 "zh": "比較方式"
7621 },
7622 "enum": [
7623 ">",
7624 ">=",
7625 "<",
7626 "<=",
7627 "==",
7628 "!="
7629 ]
7630 },
7631 {
7632 "key": "value",
7633 "type": "number",
7634 "format": "string",
7635 "label": {
7636 "en": "value",
7637 "zh": "比較值"
7638 },
7639 "description": {
7640 "en": "[en] the value to compare\r",
7641 "zh": "比較值"
7642 }
7643 },
7644 {
7645 "key": "physicsId",
7646 "type": "string",
7647 "format": "string",
7648 "label": {
7649 "en": "ID of the physics object",
7650 "zh": "物理剛體的ID"
7651 },
7652 "description": {
7653 "en": "[en] The ID of the target physics object.\r",
7654 "zh": "檢查對象的ID"
7655 },
7656 "propertyOrder": 0,
7657 "suggest": [
7658 "actions<physicsId>"
7659 ]
7660 },
7661 {
7662 "key": "operator",
7663 "type": "string",
7664 "visible": "false"
7665 },
7666 {
7667 "key": "value",
7668 "type": "number",
7669 "visible": "false"
7670 },
7671 {
7672 "key": "targetId",
7673 "type": "string",
7674 "format": "string",
7675 "label": {
7676 "en": "Target physics object ID",
7677 "zh": "對象物理物件ID"
7678 },
7679 "suggest": [
7680 "actions<physicsId>"
7681 ]
7682 },
7683 {
7684 "key": "rangeOfError",
7685 "type": "number",
7686 "label": {
7687 "en": "Range of error",
7688 "zh": "誤差範圍"
7689 },
7690 "default": {
7691 "en": "5"
7692 },
7693 "description": {
7694 "en": "If the difference between test direction and the rotation of the object is less then this value, it is considered equal.",
7695 "zh": "若方向角度和物件旋轉角度的差值在誤差範圍內,則會被視為相等。"
7696 }
7697 },
7698 {
7699 "key": "maxDistance",
7700 "type": "number",
7701 "format": "string",
7702 "label": {
7703 "en": "Max Distance",
7704 "zh": "最大可視距離"
7705 },
7706 "default": {
7707 "en": "-1"
7708 },
7709 "description": {
7710 "en": "If distance to target is greater then maxDistance, check fails. Set to a negative value to ignore this setting.",
7711 "zh": "若對象距離超過最大可視距離,則檢查不通過。設定一個負數值以忽略比設定。"
7712 }
7713 },
7714 {
7715 "key": "disabled",
7716 "type": "boolean",
7717 "label": {
7718 "en": "Disable",
7719 "zh": "停用"
7720 },
7721 "default": {
7722 "en": "false"
7723 }
7724 },
7725 {
7726 "key": "_logi",
7727 "type": "object",
7728 "format": "grid",
7729 "label": {
7730 "en": "Logical Operation",
7731 "zh": "邏輯規則"
7732 }
7733 },
7734 {
7735 "key": "_and_or",
7736 "type": "string",
7737 "description": {
7738 "en": "To define the relation with the previous check.\nAND: group the check with its previous check as a single check.\nOR: when previous check fails, run this check instead. If previous check passes, skip this check.",
7739 "zh": "定義這個檢查與上一個檢查的關係。\nAND: 與上一個檢查合併為一個大檢查\nOR: 若上一個檢查不通過,則執行這個檢查。若上一個檢查已通過,則跳過這個檢查"
7740 },
7741 "parent": "_logi",
7742 "enum": [
7743 "",
7744 "AND",
7745 "OR"
7746 ]
7747 },
7748 {
7749 "key": "_not",
7750 "type": "boolean",
7751 "default": {
7752 "en": "false"
7753 },
7754 "description": {
7755 "en": "If checked, the check result will be reversed.",
7756 "zh": "若勾選,則反轉檢查的結果"
7757 },
7758 "parent": "_logi"
7759 },
7760 {
7761 "key": "_elseEventId",
7762 "type": "string",
7763 "label": {
7764 "en": "Else Trigger Event ID",
7765 "zh": "否則觸發事件ID"
7766 },
7767 "description": {
7768 "en": "When this event failed to pass the check test because of this check, it will trigger the event defined by this field.",
7769 "zh": "當這個事件觸發後因為這個檢查的關係而不執行動作,則會觸發這裏所設定的事件。"
7770 },
7771 "suggest": [
7772 "events<id>"
7773 ]
7774 }
7775 ]
7776 },
7777 "EventState": {
7778 "project": "CgEventsLib",
7779 "source": {
7780 "path": "checks/system",
7781 "filename": "EventState.check.ts"
7782 },
7783 "tostring": {},
7784 "className": "EventStateCheck",
7785 "timestamp": 1606523608383,
7786 "label": {
7787 "en": "Event State",
7788 "zh": "事件運行狀態"
7789 },
7790 "description": {
7791 "en": "Check the current status of an event.",
7792 "zh": "檢查目前某一事件的運行狀態。"
7793 },
7794 "allpaths": {
7795 "en": [
7796 [
7797 "Event"
7798 ]
7799 ],
7800 "zh": [
7801 [
7802 "事件"
7803 ]
7804 ]
7805 },
7806 "properties": [
7807 {
7808 "key": "eventId",
7809 "type": "string",
7810 "format": "string",
7811 "label": {
7812 "en": "Event ID",
7813 "zh": "事件的ID"
7814 },
7815 "required": 1,
7816 "suggest": [
7817 "events<id>"
7818 ]
7819 },
7820 {
7821 "key": "state",
7822 "type": "string",
7823 "label": {
7824 "en": "State",
7825 "zh": "狀態"
7826 },
7827 "default": {
7828 "en": "wait"
7829 },
7830 "enum": [
7831 "wait",
7832 "over"
7833 ],
7834 "enumTitles": {
7835 "en": [
7836 "運行中",
7837 "不再運行"
7838 ]
7839 }
7840 },
7841 {
7842 "key": "checkWairFor",
7843 "type": "boolean",
7844 "label": {
7845 "en": "Check the conditions to trigger",
7846 "zh": "檢查等待觸發動作的條件"
7847 },
7848 "default": {
7849 "en": "false"
7850 }
7851 },
7852 {
7853 "key": "waitForTrigger",
7854 "type": "string",
7855 "label": {
7856 "en": "Wait for Triggers",
7857 "zh": "等待觸發器"
7858 },
7859 "default": {
7860 "en": "-"
7861 },
7862 "visible": "{checkWairFor}",
7863 "indent": 1,
7864 "enum": [
7865 "-",
7866 "yes",
7867 "no"
7868 ],
7869 "enumTitles": {
7870 "en": [
7871 "都可以",
7872 "是",
7873 "否"
7874 ],
7875 "zh": [
7876 "Doesn't Matter",
7877 "Yes",
7878 "No"
7879 ]
7880 }
7881 },
7882 {
7883 "key": "waitForCheck",
7884 "type": "string",
7885 "label": {
7886 "en": "Wait for Checks",
7887 "zh": "等待檢查通過"
7888 },
7889 "default": {
7890 "en": "-"
7891 },
7892 "visible": "{checkWairFor}",
7893 "indent": 1,
7894 "enum": [
7895 "-",
7896 "yes",
7897 "no"
7898 ],
7899 "enumTitles": {
7900 "en": [
7901 "都可以",
7902 "是",
7903 "否"
7904 ],
7905 "zh": [
7906 "Doesn't Matter",
7907 "Yes",
7908 "No"
7909 ]
7910 }
7911 },
7912 {
7913 "key": "waitForDelay",
7914 "type": "string",
7915 "label": {
7916 "en": "Wait for Delay to start",
7917 "zh": "等待啟動時間延遲"
7918 },
7919 "default": {
7920 "en": "-"
7921 },
7922 "visible": "{checkWairFor}",
7923 "indent": 1,
7924 "enum": [
7925 "-",
7926 "yes",
7927 "no"
7928 ],
7929 "enumTitles": {
7930 "en": [
7931 "都可以",
7932 "是",
7933 "否"
7934 ],
7935 "zh": [
7936 "Doesn't Matter",
7937 "Yes",
7938 "No"
7939 ]
7940 }
7941 },
7942 {
7943 "key": "checkRepeats",
7944 "type": "boolean",
7945 "label": {
7946 "en": "Check the number of times triggered",
7947 "zh": "檢查已觸發過的次數"
7948 },
7949 "default": {
7950 "en": "false"
7951 }
7952 },
7953 {
7954 "key": "repeatCompare",
7955 "type": "#CompareNumber",
7956 "label": {
7957 "en": "The number of times triggered",
7958 "zh": "觸發過的次數"
7959 },
7960 "default": {
7961 "en": "false"
7962 },
7963 "gridOptions": [
7964 "oneRow",
7965 "fullwidth"
7966 ],
7967 "visible": "{checkRepeats}",
7968 "indent": 1
7969 },
7970 {
7971 "key": "varname",
7972 "type": "string",
7973 "label": {
7974 "en": "The local variable name",
7975 "zh": "區域變數名稱"
7976 },
7977 "default": {
7978 "en": "instance"
7979 },
7980 "description": {
7981 "en": "The local variable name to store the event.",
7982 "zh": "用來儲存指定事件的區域變數名稱。"
7983 }
7984 },
7985 {
7986 "key": "disabled",
7987 "type": "boolean",
7988 "label": {
7989 "en": "Disable",
7990 "zh": "停用"
7991 },
7992 "default": {
7993 "en": "false"
7994 }
7995 },
7996 {
7997 "key": "_logi",
7998 "type": "object",
7999 "format": "grid",
8000 "label": {
8001 "en": "Logical Operation",
8002 "zh": "邏輯規則"
8003 }
8004 },
8005 {
8006 "key": "_and_or",
8007 "type": "string",
8008 "description": {
8009 "en": "To define the relation with the previous check.\nAND: group the check with its previous check as a single check.\nOR: when previous check fails, run this check instead. If previous check passes, skip this check.",
8010 "zh": "定義這個檢查與上一個檢查的關係。\nAND: 與上一個檢查合併為一個大檢查\nOR: 若上一個檢查不通過,則執行這個檢查。若上一個檢查已通過,則跳過這個檢查"
8011 },
8012 "parent": "_logi",
8013 "enum": [
8014 "",
8015 "AND",
8016 "OR"
8017 ]
8018 },
8019 {
8020 "key": "_not",
8021 "type": "boolean",
8022 "default": {
8023 "en": "false"
8024 },
8025 "description": {
8026 "en": "If checked, the check result will be reversed.",
8027 "zh": "若勾選,則反轉檢查的結果"
8028 },
8029 "parent": "_logi"
8030 },
8031 {
8032 "key": "_elseEventId",
8033 "type": "string",
8034 "label": {
8035 "en": "Else Trigger Event ID",
8036 "zh": "否則觸發事件ID"
8037 },
8038 "description": {
8039 "en": "When this event failed to pass the check test because of this check, it will trigger the event defined by this field.",
8040 "zh": "當這個事件觸發後因為這個檢查的關係而不執行動作,則會觸發這裏所設定的事件。"
8041 },
8042 "suggest": [
8043 "events<id>"
8044 ]
8045 }
8046 ]
8047 }
8048 },
8049 "trigger": {
8050 "EventTriggered": {
8051 "project": "CgEventsLib",
8052 "source": {
8053 "path": "triggers",
8054 "filename": "EventTriggered.trigger.ts"
8055 },
8056 "tostring": {},
8057 "className": "EventTriggeredTrigger",
8058 "timestamp": 1606523608383,
8059 "label": {
8060 "en": "Event Triggered",
8061 "zh": "事件觸發後"
8062 },
8063 "description": {
8064 "en": "Trigger when the assigned event is triggered.",
8065 "zh": "當指定的事件觸發後觸發"
8066 },
8067 "allpaths": {
8068 "en": [
8069 [
8070 "Event"
8071 ]
8072 ],
8073 "zh": [
8074 [
8075 "事件"
8076 ]
8077 ]
8078 },
8079 "properties": [
8080 {
8081 "key": "eventId",
8082 "type": "string",
8083 "format": "string",
8084 "label": {
8085 "en": "Event ID",
8086 "zh": "事件的ID"
8087 },
8088 "suggest": [
8089 "events<id>"
8090 ]
8091 },
8092 {
8093 "key": "timing",
8094 "type": "string",
8095 "label": {
8096 "en": "Timing",
8097 "zh": "觸發時機"
8098 },
8099 "default": {
8100 "en": "eventActionsExecuteComplete"
8101 },
8102 "enum": [
8103 "eventAboutToTrigger",
8104 "eventTriggered",
8105 "eventActionsExecuteComplete"
8106 ],
8107 "enumTitles": {
8108 "en": [
8109 "Right Before Event Triggers",
8110 "Right After Event Triggered",
8111 "After All Actions of the Event Executed"
8112 ],
8113 "zh": [
8114 "在事件即將觸發執行前",
8115 "在事件觸發並開始執行後",
8116 "在事件中的所有動作全部執行完畢後"
8117 ]
8118 }
8119 },
8120 {
8121 "key": "varname",
8122 "type": "string",
8123 "label": {
8124 "en": "The local variable name",
8125 "zh": "區域變數名稱"
8126 },
8127 "default": {
8128 "en": "instance"
8129 },
8130 "description": {
8131 "en": "The local variable name to store the event.",
8132 "zh": "用來儲存指定事件的區域變數名稱。"
8133 }
8134 },
8135 {
8136 "key": "disableAfterTriggered",
8137 "type": "boolean",
8138 "label": {
8139 "en": "Disable after triggered",
8140 "zh": "觸發後停用"
8141 },
8142 "description": {
8143 "en": "If true, this TRIGGER will be disabled after this.trigger() is called.\nThis is useful when the TRIGGER is only meanningful for the first trigger, like detecting when another event is triggered, or detecting when a hero dies.",
8144 "zh": "若為真,則這個觸發將在this.trigger()被呼叫後停用。\n這個設定在只有第一次觸發時有意義的觸發上特別有用,比如偵測其他事件被觸發的時候,或偵測遊戲中某角色死亡的時候。"
8145 }
8146 },
8147 {
8148 "key": "disabled",
8149 "type": "boolean",
8150 "label": {
8151 "en": "Disable",
8152 "zh": "停用"
8153 },
8154 "default": {
8155 "en": "false"
8156 }
8157 }
8158 ]
8159 },
8160 "KeyboardPressed": {
8161 "project": "CgEventsLib",
8162 "source": {
8163 "path": "triggers",
8164 "filename": "KeyboardPressed.trigger.ts"
8165 },
8166 "tostring": {},
8167 "className": "KeyboardPressedTrigger",
8168 "timestamp": 1606523608383,
8169 "label": {
8170 "en": "Keyboard Pressed",
8171 "zh": "鍵盤按鍵"
8172 },
8173 "description": {
8174 "en": "Trigger when a keybord key is pressed",
8175 "zh": "當鍵盤中的一個按鍵被按下時觸發"
8176 },
8177 "allpaths": {
8178 "en": [
8179 [
8180 "Input"
8181 ]
8182 ],
8183 "zh": [
8184 [
8185 "輸入"
8186 ]
8187 ]
8188 },
8189 "properties": [
8190 {
8191 "key": "playerId",
8192 "type": "string",
8193 "format": "string",
8194 "label": {
8195 "en": "ID of the player",
8196 "zh": "玩家的ID"
8197 },
8198 "default": {
8199 "en": "*"
8200 },
8201 "description": {
8202 "en": "The ID of the player who triggers the trigger, use plain string or wrap regexp with /",
8203 "zh": "觸發鍵盤的玩家ID, 使用純文字或在前後加上 / 使用正規表達式"
8204 },
8205 "gridColumns": 6,
8206 "suggest": [
8207 "actions<playerId>"
8208 ]
8209 },
8210 {
8211 "key": "playerLocal",
8212 "type": "string",
8213 "label": {
8214 "en": "Local variable to store the matched player",
8215 "zh": "儲存玩家的區域變數"
8216 },
8217 "description": {
8218 "en": "The player can be saved in the localVariable, and has the following attributes:\nplayerId, username, name, iconUrl, guest",
8219 "zh": "玩家資料可被暫存在區域變數,並有以上屬性:\nplayerId, username, name, iconUrl, guest"
8220 },
8221 "gridColumns": 6
8222 },
8223 {
8224 "key": "timing",
8225 "type": "string",
8226 "label": {
8227 "en": "Trigger Timing",
8228 "zh": "觸發時機"
8229 },
8230 "default": {
8231 "en": "pressed"
8232 },
8233 "enum": [
8234 "pressed",
8235 "down",
8236 "released"
8237 ],
8238 "enumTitles": {
8239 "en": [
8240 "Pressed",
8241 "Down",
8242 "Released"
8243 ],
8244 "zh": [
8245 "點擊",
8246 "按下",
8247 "放開"
8248 ]
8249 }
8250 },
8251 {
8252 "key": "key",
8253 "type": "number",
8254 "label": {
8255 "en": "Key",
8256 "zh": "按鍵"
8257 },
8258 "description": {
8259 "en": "Description of this parameter in english.",
8260 "zh": "此參數的中文說明"
8261 },
8262 "suggest": [
8263 "keyboard<*>"
8264 ],
8265 "suggestFilter": "none"
8266 },
8267 {
8268 "key": "keyLocal",
8269 "type": "string",
8270 "label": {
8271 "en": "LOcal Variable to store the keyCode",
8272 "zh": "儲存按鍵碼的區域變數"
8273 }
8274 },
8275 {
8276 "key": "ctrl",
8277 "type": "string",
8278 "format": "string",
8279 "label": {
8280 "en": "Ctrl"
8281 },
8282 "description": {
8283 "en": "Is Ctrl key pressed together.",
8284 "zh": "Ctrl按鍵是否也是按下的狀態"
8285 },
8286 "enum": [
8287 "",
8288 "DOWN",
8289 "UP"
8290 ]
8291 },
8292 {
8293 "key": "shift",
8294 "type": "string",
8295 "format": "string",
8296 "label": {
8297 "en": "Shift"
8298 },
8299 "description": {
8300 "en": "Is Shift key pressed together.",
8301 "zh": "Shift按鍵是否也是按下的狀態"
8302 },
8303 "enum": [
8304 "",
8305 "DOWN",
8306 "UP"
8307 ]
8308 },
8309 {
8310 "key": "disableAfterTriggered",
8311 "type": "boolean",
8312 "label": {
8313 "en": "Disable after triggered",
8314 "zh": "觸發後停用"
8315 },
8316 "description": {
8317 "en": "If true, this TRIGGER will be disabled after this.trigger() is called.\nThis is useful when the TRIGGER is only meanningful for the first trigger, like detecting when another event is triggered, or detecting when a hero dies.",
8318 "zh": "若為真,則這個觸發將在this.trigger()被呼叫後停用。\n這個設定在只有第一次觸發時有意義的觸發上特別有用,比如偵測其他事件被觸發的時候,或偵測遊戲中某角色死亡的時候。"
8319 }
8320 },
8321 {
8322 "key": "disabled",
8323 "type": "boolean",
8324 "label": {
8325 "en": "Disable",
8326 "zh": "停用"
8327 },
8328 "default": {
8329 "en": "false"
8330 }
8331 }
8332 ]
8333 },
8334 "ButtonClick": {
8335 "project": "CgEventsLib",
8336 "source": {
8337 "path": "triggers",
8338 "filename": "ButtonClick.trigger.ts"
8339 },
8340 "tostring": {
8341 "en": "{buttonId}"
8342 },
8343 "className": "ButtonClickTrigger",
8344 "timestamp": 1606523608383,
8345 "label": {
8346 "en": "ButtonClick",
8347 "zh": "按下按鈕"
8348 },
8349 "description": {
8350 "en": "Trigger when a button is clicked.",
8351 "zh": "在目標按鈕被玩家按下後觸發。"
8352 },
8353 "allpaths": {
8354 "en": [
8355 [
8356 "Input"
8357 ]
8358 ],
8359 "zh": [
8360 [
8361 "輸入"
8362 ]
8363 ]
8364 },
8365 "properties": [
8366 {
8367 "key": "playerId",
8368 "type": "string",
8369 "format": "string",
8370 "label": {
8371 "en": "ID of the player",
8372 "zh": "玩家的ID"
8373 },
8374 "default": {
8375 "en": "*"
8376 },
8377 "description": {
8378 "en": "The ID of the player who triggers the trigger, use plain string or wrap regexp with /",
8379 "zh": "觸發鍵盤的玩家ID, 使用純文字或在前後加上 / 使用正規表達式"
8380 },
8381 "gridColumns": 6,
8382 "suggest": [
8383 "actions<playerId>"
8384 ]
8385 },
8386 {
8387 "key": "playerLocal",
8388 "type": "string",
8389 "label": {
8390 "en": "Local variable to store the matched player",
8391 "zh": "儲存玩家的區域變數"
8392 },
8393 "description": {
8394 "en": "The player can be saved in the localVariable, and has the following attributes:\nplayerId, username, name, iconUrl, guest",
8395 "zh": "玩家資料可被暫存在區域變數,並有以上屬性:\nplayerId, username, name, iconUrl, guest"
8396 },
8397 "gridColumns": 6
8398 },
8399 {
8400 "key": "timing",
8401 "type": "string",
8402 "label": {
8403 "en": "Trigger Timing",
8404 "zh": "觸發時機"
8405 },
8406 "default": {
8407 "en": "MakeButton.click"
8408 },
8409 "enum": [
8410 "MakeButton.click",
8411 "MakeButton.over",
8412 "MakeButton.out"
8413 ],
8414 "enumTitles": {
8415 "en": [
8416 "Click",
8417 "Mouse Over",
8418 "Mouse Out"
8419 ],
8420 "zh": [
8421 "點擊",
8422 "滑鼠移進",
8423 "滑鼠移出"
8424 ]
8425 }
8426 },
8427 {
8428 "key": "buttonId",
8429 "type": "string",
8430 "format": "string",
8431 "label": {
8432 "en": "ID of the button",
8433 "zh": "按鈕的ID"
8434 },
8435 "description": {
8436 "en": "The ID of the button, use plain string or wrap regexp with /",
8437 "zh": "按鈕的ID, 使用純文字或在前後加上 / 使用正規表達式"
8438 },
8439 "suggest": [
8440 "actions<buttonId>"
8441 ]
8442 },
8443 {
8444 "key": "btnLocal",
8445 "type": "string",
8446 "label": {
8447 "en": "Local variable to store the matched button",
8448 "zh": "儲存按鈕的區域變數"
8449 }
8450 },
8451 {
8452 "key": "disableAfterTriggered",
8453 "type": "boolean",
8454 "label": {
8455 "en": "Disable after triggered",
8456 "zh": "觸發後停用"
8457 },
8458 "description": {
8459 "en": "If true, this TRIGGER will be disabled after this.trigger() is called.\nThis is useful when the TRIGGER is only meanningful for the first trigger, like detecting when another event is triggered, or detecting when a hero dies.",
8460 "zh": "若為真,則這個觸發將在this.trigger()被呼叫後停用。\n這個設定在只有第一次觸發時有意義的觸發上特別有用,比如偵測其他事件被觸發的時候,或偵測遊戲中某角色死亡的時候。"
8461 }
8462 },
8463 {
8464 "key": "disabled",
8465 "type": "boolean",
8466 "label": {
8467 "en": "Disable",
8468 "zh": "停用"
8469 },
8470 "default": {
8471 "en": "false"
8472 }
8473 }
8474 ]
8475 },
8476 "MouseEvent": {
8477 "project": "CgEventsLib",
8478 "source": {
8479 "path": "triggers",
8480 "filename": "MouseEvent.trigger.ts"
8481 },
8482 "tostring": {},
8483 "className": "MouseEventTrigger",
8484 "timestamp": 1606523608383,
8485 "label": {
8486 "en": "Mouse Event",
8487 "zh": "滑鼠點擊"
8488 },
8489 "description": {
8490 "en": "Trigger when the mouse is clicked, mousedown, or mouse up.",
8491 "zh": "當滑鼠左鍵點擊時、按下或放開時觸發"
8492 },
8493 "allpaths": {
8494 "en": [
8495 [
8496 "Input"
8497 ]
8498 ],
8499 "zh": [
8500 [
8501 "輸入"
8502 ]
8503 ]
8504 },
8505 "properties": [
8506 {
8507 "key": "playerId",
8508 "type": "string",
8509 "format": "string",
8510 "label": {
8511 "en": "ID of the player",
8512 "zh": "玩家的ID"
8513 },
8514 "default": {
8515 "en": "*"
8516 },
8517 "description": {
8518 "en": "The ID of the player who triggers the trigger, use plain string or wrap regexp with /",
8519 "zh": "觸發鍵盤的玩家ID, 使用純文字或在前後加上 / 使用正規表達式"
8520 },
8521 "gridColumns": 6,
8522 "suggest": [
8523 "actions<playerId>"
8524 ]
8525 },
8526 {
8527 "key": "playerLocal",
8528 "type": "string",
8529 "label": {
8530 "en": "Local variable to store the matched player",
8531 "zh": "儲存玩家的區域變數"
8532 },
8533 "description": {
8534 "en": "The player can be saved in the localVariable, and has the following attributes:\nplayerId, username, name, iconUrl, guest",
8535 "zh": "玩家資料可被暫存在區域變數,並有以上屬性:\nplayerId, username, name, iconUrl, guest"
8536 },
8537 "gridColumns": 6
8538 },
8539 {
8540 "key": "eventType",
8541 "type": "string",
8542 "label": {
8543 "en": "Event Type",
8544 "zh": "觸發時機"
8545 },
8546 "enum": [
8547 "click",
8548 "pointerdown",
8549 "pointerup"
8550 ],
8551 "enumTitles": {
8552 "en": [
8553 "Click",
8554 "Mouse Down",
8555 "Mouse Up"
8556 ],
8557 "zh": [
8558 "點擊滑鼠按鍵(click)",
8559 "按下滑鼠按鍵(down)",
8560 "放開滑鼠按鍵(up)"
8561 ]
8562 }
8563 },
8564 {
8565 "key": "btn",
8566 "type": "number",
8567 "label": {
8568 "en": "Mouse Button",
8569 "zh": "檢查按鈕"
8570 },
8571 "default": {
8572 "en": "0"
8573 },
8574 "description": {
8575 "en": "Check the mouse button type. Only support Left button on touch screen.",
8576 "zh": "檢查滑鼠的按鍵種類。在觸控式螢幕上只支援左鍵。"
8577 },
8578 "enum": [
8579 0,
8580 1,
8581 2,
8582 3,
8583 4
8584 ],
8585 "enumTitles": {
8586 "en": [
8587 "Left",
8588 "Middle",
8589 "Right",
8590 "Backward",
8591 "Forward"
8592 ],
8593 "zh": [
8594 "左鍵",
8595 "中間",
8596 "右鍵",
8597 "倒退鍵",
8598 "前進鍵"
8599 ]
8600 }
8601 },
8602 {
8603 "key": "localMouseX",
8604 "type": "string",
8605 "label": {
8606 "en": "Local variable to store mouseX",
8607 "zh": "儲存滑鼠X座標的區域變數"
8608 },
8609 "description": {
8610 "en": "The local variable to store the current mouse x position",
8611 "zh": "儲存滑鼠X座標的區域變數。"
8612 },
8613 "gridColumns": 6
8614 },
8615 {
8616 "key": "localMouseY",
8617 "type": "string",
8618 "label": {
8619 "en": "Local variable to store mouseY",
8620 "zh": "儲存滑鼠Y座標的區域變數"
8621 },
8622 "description": {
8623 "en": "The local variable to store the current mouse y position",
8624 "zh": "儲存滑鼠Y座標的區域變數。"
8625 },
8626 "gridColumns": 6
8627 },
8628 {
8629 "key": "displayId",
8630 "type": "string",
8631 "format": "string",
8632 "label": {
8633 "en": "ID of the display object for local coords",
8634 "zh": "滑鼠座標的參考顯示物件ID"
8635 },
8636 "description": {
8637 "en": "The DisplayObject that you would like the local coords off (for storing local x,y position)",
8638 "zh": "計算滑鼠座標用的參考顯示物件代碼(儲存滑鼠XY座標用)"
8639 },
8640 "suggest": [
8641 "actions<displayId>"
8642 ]
8643 },
8644 {
8645 "key": "disableAfterTriggered",
8646 "type": "boolean",
8647 "label": {
8648 "en": "Disable after triggered",
8649 "zh": "觸發後停用"
8650 },
8651 "description": {
8652 "en": "If true, this TRIGGER will be disabled after this.trigger() is called.\nThis is useful when the TRIGGER is only meanningful for the first trigger, like detecting when another event is triggered, or detecting when a hero dies.",
8653 "zh": "若為真,則這個觸發將在this.trigger()被呼叫後停用。\n這個設定在只有第一次觸發時有意義的觸發上特別有用,比如偵測其他事件被觸發的時候,或偵測遊戲中某角色死亡的時候。"
8654 }
8655 },
8656 {
8657 "key": "disabled",
8658 "type": "boolean",
8659 "label": {
8660 "en": "Disable",
8661 "zh": "停用"
8662 },
8663 "default": {
8664 "en": "false"
8665 }
8666 }
8667 ]
8668 },
8669 "StageResize": {
8670 "project": "CgEventsLib",
8671 "source": {
8672 "path": "triggers",
8673 "filename": "StageResize.trigger.ts"
8674 },
8675 "tostring": {},
8676 "className": "StageResizeTrigger",
8677 "timestamp": 1606523608383,
8678 "label": {
8679 "en": "Stage Resize",
8680 "zh": "視窗尺寸改變"
8681 },
8682 "description": {
8683 "en": "Description of this trigger in english."
8684 },
8685 "allpaths": {
8686 "en": [
8687 [
8688 "System"
8689 ]
8690 ],
8691 "zh": [
8692 [
8693 "系統"
8694 ]
8695 ]
8696 },
8697 "properties": [
8698 {
8699 "key": "disableAfterTriggered",
8700 "type": "boolean",
8701 "label": {
8702 "en": "Disable after triggered",
8703 "zh": "觸發後停用"
8704 },
8705 "description": {
8706 "en": "If true, this TRIGGER will be disabled after this.trigger() is called.\nThis is useful when the TRIGGER is only meanningful for the first trigger, like detecting when another event is triggered, or detecting when a hero dies.",
8707 "zh": "若為真,則這個觸發將在this.trigger()被呼叫後停用。\n這個設定在只有第一次觸發時有意義的觸發上特別有用,比如偵測其他事件被觸發的時候,或偵測遊戲中某角色死亡的時候。"
8708 }
8709 },
8710 {
8711 "key": "disabled",
8712 "type": "boolean",
8713 "label": {
8714 "en": "Disable",
8715 "zh": "停用"
8716 },
8717 "default": {
8718 "en": "false"
8719 }
8720 }
8721 ]
8722 },
8723 "PhysicsCollision": {
8724 "project": "CgEventsLib",
8725 "source": {
8726 "path": "triggers/physics",
8727 "filename": "PhysicsCollision.trigger.ts"
8728 },
8729 "tostring": {},
8730 "className": "PhysicsCollisionTrigger",
8731 "timestamp": 1606523608383,
8732 "label": {
8733 "en": "Collision",
8734 "zh": "碰撞"
8735 },
8736 "description": {
8737 "en": "Trigger when two physic objects collide.",
8738 "zh": "當兩個物理"
8739 },
8740 "allpaths": {
8741 "en": [
8742 [
8743 "Physics"
8744 ]
8745 ],
8746 "zh": [
8747 [
8748 "物理"
8749 ]
8750 ]
8751 },
8752 "properties": [
8753 {
8754 "key": "timing",
8755 "type": "string",
8756 "label": {
8757 "en": "Trigger Timing",
8758 "zh": "觸發時機"
8759 },
8760 "default": {
8761 "en": "contactBegin"
8762 },
8763 "enum": [
8764 "contactBegin",
8765 "contactEnd"
8766 ],
8767 "enumTitles": {
8768 "en": [
8769 "Contact Begin",
8770 "Contact End"
8771 ],
8772 "zh": [
8773 "雙方接觸開始",
8774 "雙方分開"
8775 ]
8776 }
8777 },
8778 {
8779 "key": "obj1",
8780 "type": "object",
8781 "format": "grid",
8782 "label": {
8783 "en": "Object 1",
8784 "zh": "物件一的ID"
8785 }
8786 },
8787 {
8788 "key": "obj1Id",
8789 "type": "string",
8790 "label": {
8791 "en": "ID of the object 1",
8792 "zh": "物件一的ID"
8793 },
8794 "parent": "obj1",
8795 "suggest": [
8796 "actions<physicsId>"
8797 ]
8798 },
8799 {
8800 "key": "obj1Local",
8801 "type": "string",
8802 "label": {
8803 "en": "Local Variable to store object 1",
8804 "zh": "儲存物件一的事件區域變數"
8805 },
8806 "parent": "obj1"
8807 },
8808 {
8809 "key": "obj2",
8810 "type": "object",
8811 "format": "grid",
8812 "label": {
8813 "en": "Object 2",
8814 "zh": "物件二的ID"
8815 }
8816 },
8817 {
8818 "key": "obj2Id",
8819 "type": "string",
8820 "label": {
8821 "en": "ID of the object 2",
8822 "zh": "物件二的ID"
8823 },
8824 "parent": "obj2",
8825 "suggest": [
8826 "actions<physicsId>"
8827 ]
8828 },
8829 {
8830 "key": "obj2Local",
8831 "type": "string",
8832 "label": {
8833 "en": "Local Variable to store object 2",
8834 "zh": "儲存物件二的事件區域變數"
8835 },
8836 "parent": "obj2"
8837 },
8838 {
8839 "key": "disableAfterTriggered",
8840 "type": "boolean",
8841 "label": {
8842 "en": "Disable after triggered",
8843 "zh": "觸發後停用"
8844 },
8845 "description": {
8846 "en": "If true, this TRIGGER will be disabled after this.trigger() is called.\nThis is useful when the TRIGGER is only meanningful for the first trigger, like detecting when another event is triggered, or detecting when a hero dies.",
8847 "zh": "若為真,則這個觸發將在this.trigger()被呼叫後停用。\n這個設定在只有第一次觸發時有意義的觸發上特別有用,比如偵測其他事件被觸發的時候,或偵測遊戲中某角色死亡的時候。"
8848 }
8849 },
8850 {
8851 "key": "disabled",
8852 "type": "boolean",
8853 "label": {
8854 "en": "Disable",
8855 "zh": "停用"
8856 },
8857 "default": {
8858 "en": "false"
8859 }
8860 }
8861 ]
8862 },
8863 "Manual": {
8864 "project": "CgEventsLib",
8865 "source": {
8866 "path": "triggers",
8867 "filename": "Manual.trigger.ts"
8868 },
8869 "tostring": {},
8870 "className": "ManualTrigger",
8871 "timestamp": 1606523608383,
8872 "label": {
8873 "en": "Manual",
8874 "zh": "手動觸發"
8875 },
8876 "description": {
8877 "en": "A fake trigger that prevents an event triggered by system. Best for library events that are designed to be triggered manually by \"Trigger Event\" actions.",
8878 "zh": "用來防止事件被系統自動觸發的假觸發裝置。當需要一個類似函式庫的事件,只想以「觸發事件」動作手動觸發的時候非常有用。"
8879 },
8880 "allpaths": {
8881 "en": [
8882 [
8883 "System"
8884 ]
8885 ],
8886 "zh": [
8887 [
8888 "系統"
8889 ]
8890 ]
8891 },
8892 "properties": [
8893 {
8894 "key": "disableAfterTriggered",
8895 "type": "boolean",
8896 "label": {
8897 "en": "Disable after triggered",
8898 "zh": "觸發後停用"
8899 },
8900 "description": {
8901 "en": "If true, this TRIGGER will be disabled after this.trigger() is called.\nThis is useful when the TRIGGER is only meanningful for the first trigger, like detecting when another event is triggered, or detecting when a hero dies.",
8902 "zh": "若為真,則這個觸發將在this.trigger()被呼叫後停用。\n這個設定在只有第一次觸發時有意義的觸發上特別有用,比如偵測其他事件被觸發的時候,或偵測遊戲中某角色死亡的時候。"
8903 }
8904 },
8905 {
8906 "key": "disabled",
8907 "type": "boolean",
8908 "label": {
8909 "en": "Disable",
8910 "zh": "停用"
8911 },
8912 "default": {
8913 "en": "false"
8914 }
8915 }
8916 ]
8917 },
8918 "MouseMove": {
8919 "project": "CgEventsLib",
8920 "source": {
8921 "path": "triggers",
8922 "filename": "MouseMove.trigger.ts"
8923 },
8924 "tostring": {},
8925 "className": "MouseMoveTrigger",
8926 "timestamp": 1606523608383,
8927 "label": {
8928 "en": "Mouse Move",
8929 "zh": "滑鼠移動"
8930 },
8931 "description": {
8932 "en": "Trigger when the mouse is moved.",
8933 "zh": "當滑鼠移動時觸發"
8934 },
8935 "allpaths": {
8936 "en": [
8937 [
8938 "Input"
8939 ]
8940 ],
8941 "zh": [
8942 [
8943 "輸入"
8944 ]
8945 ]
8946 },
8947 "properties": [
8948 {
8949 "key": "playerId",
8950 "type": "string",
8951 "format": "string",
8952 "label": {
8953 "en": "ID of the player",
8954 "zh": "玩家的ID"
8955 },
8956 "default": {
8957 "en": "*"
8958 },
8959 "description": {
8960 "en": "The ID of the player who triggers the trigger, use plain string or wrap regexp with /",
8961 "zh": "觸發鍵盤的玩家ID, 使用純文字或在前後加上 / 使用正規表達式"
8962 },
8963 "gridColumns": 6,
8964 "suggest": [
8965 "actions<playerId>"
8966 ]
8967 },
8968 {
8969 "key": "playerLocal",
8970 "type": "string",
8971 "label": {
8972 "en": "Local variable to store the matched player",
8973 "zh": "儲存玩家的區域變數"
8974 },
8975 "description": {
8976 "en": "The player can be saved in the localVariable, and has the following attributes:\nplayerId, username, name, iconUrl, guest",
8977 "zh": "玩家資料可被暫存在區域變數,並有以上屬性:\nplayerId, username, name, iconUrl, guest"
8978 },
8979 "gridColumns": 6
8980 },
8981 {
8982 "key": "btn1",
8983 "type": "number",
8984 "label": {
8985 "en": "Left Button State",
8986 "zh": "左鍵狀態"
8987 },
8988 "default": {
8989 "en": "0"
8990 },
8991 "description": {
8992 "en": "Check the left button state when moved.",
8993 "zh": "檢查左鍵在滑鼠移動時的狀態。"
8994 },
8995 "enum": [
8996 0,
8997 1,
8998 -1
8999 ],
9000 "enumTitles": {
9001 "en": [
9002 "Doesn't Matter",
9003 "Down",
9004 "Up"
9005 ],
9006 "zh": [
9007 "都可以",
9008 "按下",
9009 "放開"
9010 ]
9011 }
9012 },
9013 {
9014 "key": "btn2",
9015 "type": "number",
9016 "label": {
9017 "en": "Right Button State",
9018 "zh": "右鍵狀態"
9019 },
9020 "default": {
9021 "en": "0"
9022 },
9023 "description": {
9024 "en": "Check the right button state when moved.",
9025 "zh": "檢查右鍵在滑鼠移動時的狀態。"
9026 },
9027 "enum": [
9028 0,
9029 1,
9030 -1
9031 ],
9032 "enumTitles": {
9033 "en": [
9034 "Doesn't Matter",
9035 "Down",
9036 "Up"
9037 ],
9038 "zh": [
9039 "都可以",
9040 "按下",
9041 "放開"
9042 ]
9043 }
9044 },
9045 {
9046 "key": "btn3",
9047 "type": "number",
9048 "label": {
9049 "en": "Middle Button State",
9050 "zh": "中鍵狀態"
9051 },
9052 "default": {
9053 "en": "0"
9054 },
9055 "description": {
9056 "en": "Check the middle button state when moved.",
9057 "zh": "檢查中鍵在滑鼠移動時的狀態。"
9058 },
9059 "enum": [
9060 0,
9061 1,
9062 -1
9063 ],
9064 "enumTitles": {
9065 "en": [
9066 "Doesn't Matter",
9067 "Down",
9068 "Up"
9069 ],
9070 "zh": [
9071 "都可以",
9072 "按下",
9073 "放開"
9074 ]
9075 }
9076 },
9077 {
9078 "key": "btn4",
9079 "type": "number",
9080 "label": {
9081 "en": "Back Button State",
9082 "zh": "倒退鍵狀態"
9083 },
9084 "default": {
9085 "en": "0"
9086 },
9087 "description": {
9088 "en": "Check the back button state when moved.",
9089 "zh": "檢查倒退鍵在滑鼠移動時的狀態。"
9090 },
9091 "enum": [
9092 0,
9093 1,
9094 -1
9095 ],
9096 "enumTitles": {
9097 "en": [
9098 "Doesn't Matter",
9099 "Down",
9100 "Up"
9101 ],
9102 "zh": [
9103 "都可以",
9104 "按下",
9105 "放開"
9106 ]
9107 }
9108 },
9109 {
9110 "key": "btn5",
9111 "type": "number",
9112 "label": {
9113 "en": "Forward Button State",
9114 "zh": "前進鍵狀態"
9115 },
9116 "default": {
9117 "en": "0"
9118 },
9119 "description": {
9120 "en": "Check the forward button state when moved.",
9121 "zh": "檢查前進鍵在滑鼠移動時的狀態。"
9122 },
9123 "enum": [
9124 0,
9125 1,
9126 -1
9127 ],
9128 "enumTitles": {
9129 "en": [
9130 "Doesn't Matter",
9131 "Down",
9132 "Up"
9133 ],
9134 "zh": [
9135 "都可以",
9136 "按下",
9137 "放開"
9138 ]
9139 }
9140 },
9141 {
9142 "key": "localMouseX",
9143 "type": "string",
9144 "label": {
9145 "en": "Local variable to store mouseX",
9146 "zh": "儲存滑鼠X座標的區域變數"
9147 },
9148 "description": {
9149 "en": "The local variable to store the current mouse x position",
9150 "zh": "儲存滑鼠X座標的區域變數。"
9151 },
9152 "gridColumns": 6
9153 },
9154 {
9155 "key": "localMouseY",
9156 "type": "string",
9157 "label": {
9158 "en": "Local variable to store mouseY",
9159 "zh": "儲存滑鼠Y座標的區域變數"
9160 },
9161 "description": {
9162 "en": "The local variable to store the current mouse y position",
9163 "zh": "儲存滑鼠Y座標的區域變數。"
9164 },
9165 "gridColumns": 6
9166 },
9167 {
9168 "key": "displayId",
9169 "type": "string",
9170 "format": "string",
9171 "label": {
9172 "en": "ID of the display object for local coords",
9173 "zh": "滑鼠座標的參考顯示物件ID"
9174 },
9175 "description": {
9176 "en": "The DisplayObject that you would like the local coords off (for storing local x,y position)",
9177 "zh": "計算滑鼠座標用的參考顯示物件代碼(儲存滑鼠XY座標用)"
9178 },
9179 "suggest": [
9180 "actions<displayId>"
9181 ]
9182 },
9183 {
9184 "key": "disableAfterTriggered",
9185 "type": "boolean",
9186 "label": {
9187 "en": "Disable after triggered",
9188 "zh": "觸發後停用"
9189 },
9190 "description": {
9191 "en": "If true, this TRIGGER will be disabled after this.trigger() is called.\nThis is useful when the TRIGGER is only meanningful for the first trigger, like detecting when another event is triggered, or detecting when a hero dies.",
9192 "zh": "若為真,則這個觸發將在this.trigger()被呼叫後停用。\n這個設定在只有第一次觸發時有意義的觸發上特別有用,比如偵測其他事件被觸發的時候,或偵測遊戲中某角色死亡的時候。"
9193 }
9194 },
9195 {
9196 "key": "disabled",
9197 "type": "boolean",
9198 "label": {
9199 "en": "Disable",
9200 "zh": "停用"
9201 },
9202 "default": {
9203 "en": "false"
9204 }
9205 }
9206 ]
9207 }
9208 },
9209 "definition": {
9210 "Point": {
9211 "project": "CgEventsLib",
9212 "source": {
9213 "path": "definitions",
9214 "filename": "Point.definition.ts"
9215 },
9216 "tostring": {},
9217 "className": "PointDef",
9218 "timestamp": 1606523608383,
9219 "label": {
9220 "en": "Point",
9221 "zh": "座標"
9222 },
9223 "description": {},
9224 "allpaths": {},
9225 "properties": [
9226 {
9227 "key": "x",
9228 "type": "number",
9229 "format": "string",
9230 "gridColumns": 6
9231 },
9232 {
9233 "key": "y",
9234 "type": "number",
9235 "format": "string",
9236 "gridColumns": 6
9237 }
9238 ],
9239 "format": "grid"
9240 },
9241 "B2Fixture": {
9242 "project": "CgEventsLib",
9243 "source": {
9244 "path": "definitions",
9245 "filename": "B2Fixture.definition.ts"
9246 },
9247 "tostring": {},
9248 "className": "B2FixtureDef",
9249 "timestamp": 1606523608383,
9250 "label": {
9251 "en": "Fixture",
9252 "zh": "組件"
9253 },
9254 "description": {},
9255 "allpaths": {},
9256 "properties": [
9257 {
9258 "key": "shape",
9259 "type": "string",
9260 "label": {
9261 "en": "Shape",
9262 "zh": "形狀"
9263 },
9264 "gridColumns": 12,
9265 "enum": [
9266 "circle",
9267 "box",
9268 "polygon",
9269 "edge"
9270 ],
9271 "enumTitles": {
9272 "en": [
9273 "Circle",
9274 "Box",
9275 "Polygon",
9276 "Edge"
9277 ],
9278 "zh": [
9279 "圓形",
9280 "方形",
9281 "多邊形",
9282 "邊界"
9283 ]
9284 }
9285 },
9286 {
9287 "key": "position",
9288 "type": "#Point",
9289 "label": {
9290 "en": "Center Point",
9291 "zh": "中心點"
9292 },
9293 "gridColumns": 12,
9294 "visible": "\"{shape}\"==\"circle\" | \"{shape}\"==\"box\""
9295 },
9296 {
9297 "key": "radius",
9298 "type": "number",
9299 "format": "string",
9300 "label": {
9301 "en": "Radius",
9302 "zh": "半徑"
9303 },
9304 "gridColumns": 12,
9305 "visible": "\"{shape}\"==\"circle\""
9306 },
9307 {
9308 "key": "width",
9309 "type": "number",
9310 "format": "string",
9311 "label": {
9312 "en": "Width",
9313 "zh": "寬度"
9314 },
9315 "gridColumns": 6,
9316 "visible": "\"{shape}\"==\"box\""
9317 },
9318 {
9319 "key": "height",
9320 "type": "number",
9321 "format": "string",
9322 "label": {
9323 "en": "height",
9324 "zh": "高度"
9325 },
9326 "gridColumns": 6,
9327 "visible": "\"{shape}\"==\"box\""
9328 },
9329 {
9330 "key": "points",
9331 "type": "array",
9332 "format": "table",
9333 "label": {
9334 "en": "Points",
9335 "zh": "頂點"
9336 },
9337 "arrayItem": "#Point",
9338 "gridColumns": 12,
9339 "visible": "\"{shape}\"==\"polygon\" | \"{shape}\"==\"edge\""
9340 },
9341 {
9342 "key": "options",
9343 "type": "#B2FixtureOption",
9344 "label": {
9345 "en": "Options",
9346 "zh": "進階選項"
9347 },
9348 "gridColumns": 12
9349 }
9350 ],
9351 "format": "grid"
9352 },
9353 "B2FixtureOption": {
9354 "project": "CgEventsLib",
9355 "source": {
9356 "path": "definitions",
9357 "filename": "B2FixtureOption.definition.ts"
9358 },
9359 "tostring": {},
9360 "className": "B2FixtureOptionDef",
9361 "timestamp": 1606523608383,
9362 "label": {
9363 "en": "B2FixtureOption",
9364 "zh": "B2FixtureOption"
9365 },
9366 "description": {},
9367 "allpaths": {},
9368 "properties": [
9369 {
9370 "key": "density",
9371 "type": "number",
9372 "format": "string",
9373 "label": {
9374 "en": "Density",
9375 "zh": "密度"
9376 },
9377 "default": {
9378 "en": "0.1"
9379 },
9380 "gridColumns": 3
9381 },
9382 {
9383 "key": "friction",
9384 "type": "number",
9385 "format": "string",
9386 "label": {
9387 "en": "Friction",
9388 "zh": "磨擦力"
9389 },
9390 "gridColumns": 3
9391 },
9392 {
9393 "key": "restitution",
9394 "type": "number",
9395 "format": "string",
9396 "label": {
9397 "en": "Restitution",
9398 "zh": "恢復係數"
9399 },
9400 "default": {
9401 "en": "1"
9402 },
9403 "description": {
9404 "en": "The ratio of the final to initial relative velocity between two objects after they collide.\nequals 1: perfectly elastic collision\nbetween 0 and 1: normal elastic collision\nequals 0: perfectly inelastic collision\n",
9405 "zh": "衡量兩個物體在碰撞後的反彈程度:\n等於1: 彈性碰撞\n介在0與1之間: 非彈性碰撞\n等於0: 完全非彈性碰撞(兩物體碰撞後會貼在一起)"
9406 },
9407 "gridColumns": 3
9408 },
9409 {
9410 "key": "tangentSpeed",
9411 "type": "number",
9412 "format": "string",
9413 "label": {
9414 "en": "Tangent Speed",
9415 "zh": "表面速度"
9416 },
9417 "description": {
9418 "en": "Set the speed of the fixture surface. Useful to simulate conveyor.",
9419 "zh": "設定表面速度。可以用來模擬類似輸送帶的物件。"
9420 },
9421 "gridColumns": 3
9422 },
9423 {
9424 "key": "sensor",
9425 "type": "boolean",
9426 "label": {
9427 "en": "Is Sensor",
9428 "zh": "感應器"
9429 },
9430 "description": {
9431 "en": "Sensor is not a physical instance, but can detect collision.",
9432 "zh": "感應器不是物理實體,但可感應碰撞。"
9433 },
9434 "gridColumns": 12
9435 },
9436 {
9437 "key": "categoryBits",
9438 "type": "number",
9439 "format": "string",
9440 "label": {
9441 "en": "Category Bits",
9442 "zh": "碰撞類別位元"
9443 },
9444 "default": {
9445 "en": "1"
9446 },
9447 "description": {
9448 "en": "Set the category bits of this physics object",
9449 "zh": "設定自己的碰撞位元"
9450 },
9451 "gridColumns": 4
9452 },
9453 {
9454 "key": "maskBits",
9455 "type": "number",
9456 "format": "string",
9457 "label": {
9458 "en": "Mask Bits",
9459 "zh": "碰撞遮罩位元"
9460 },
9461 "default": {
9462 "en": "9007199254740991"
9463 },
9464 "description": {
9465 "en": "Set the mask bit to decide which category can collide with this physics object",
9466 "zh": "設定可與自己碰撞的遮罩位元"
9467 },
9468 "gridColumns": 4
9469 },
9470 {
9471 "key": "groupIndex",
9472 "type": "number",
9473 "format": "string",
9474 "label": {
9475 "en": "Group Index",
9476 "zh": "碰撞群組"
9477 },
9478 "description": {
9479 "en": "The groupIndex flag of a fixture can be used to override the category and mask settings above.\n1. if either fixture has a groupIndex of zero, use the category/mask rules as above\n2. if both groupIndex values are non-zero but different, use the category/mask rules as above\n3. if both groupIndex values are the same and positive, collide\n4. if both groupIndex values are the same and negative, don't collide\n",
9480 "zh": "groupIndex可設定簡易碰播規則,並可覆蓋碰撞位元的設定\n1. 碰撞的其中一方設定 0, 使用碰撞位元設定\n2. 碰撞雙方都設定非0,但不相同的值,使用碰撞位元設定\n3. 碰撞雙方都設定相同的非0值,且為正數,則會正常碰撞\n4. 碰撞雙方都設定相同的非0值,且為負數,則會不會碰撞"
9481 },
9482 "gridColumns": 4
9483 }
9484 ],
9485 "format": "grid"
9486 },
9487 "Size": {
9488 "project": "CgEventsLib",
9489 "source": {
9490 "path": "definitions",
9491 "filename": "Size.definition.ts"
9492 },
9493 "tostring": {},
9494 "className": "SizeDef",
9495 "timestamp": 1606523608383,
9496 "label": {
9497 "en": "Size",
9498 "zh": "平面尺寸"
9499 },
9500 "description": {},
9501 "allpaths": {},
9502 "properties": [
9503 {
9504 "key": "width",
9505 "type": "number",
9506 "format": "string",
9507 "label": {
9508 "zh": "寬"
9509 }
9510 },
9511 {
9512 "key": "height",
9513 "type": "number",
9514 "format": "string",
9515 "label": {
9516 "zh": "高"
9517 }
9518 }
9519 ],
9520 "format": "grid"
9521 },
9522 "Area": {
9523 "project": "CgEventsLib",
9524 "source": {
9525 "path": "definitions",
9526 "filename": "Area.definition.ts"
9527 },
9528 "tostring": {},
9529 "className": "AreaDef",
9530 "timestamp": 1606523608383,
9531 "label": {
9532 "en": "Area",
9533 "zh": "平面區域"
9534 },
9535 "description": {},
9536 "allpaths": {},
9537 "properties": [
9538 {
9539 "key": "defType",
9540 "type": "string",
9541 "format": "string",
9542 "label": {
9543 "en": "Define Type",
9544 "zh": "定義方式"
9545 },
9546 "default": {
9547 "en": "size"
9548 },
9549 "gridColumns": 12,
9550 "enum": [
9551 "size",
9552 "edge"
9553 ],
9554 "enumTitles": {
9555 "en": [
9556 "Define by size",
9557 "Define by edges"
9558 ],
9559 "zh": [
9560 "以範圍大小定義",
9561 "以範圍邊界定義"
9562 ]
9563 }
9564 },
9565 {
9566 "key": "x",
9567 "type": "number",
9568 "format": "string",
9569 "gridColumns": 4
9570 },
9571 {
9572 "key": "width",
9573 "type": "number",
9574 "format": "string",
9575 "label": {
9576 "zh": "寬"
9577 },
9578 "default": {
9579 "en": "1"
9580 },
9581 "gridColumns": 4,
9582 "visible": "\"{defType}\"==\"size\""
9583 },
9584 {
9585 "key": "right",
9586 "type": "number",
9587 "format": "string",
9588 "label": {
9589 "zh": "右邊界"
9590 },
9591 "default": {
9592 "en": "1"
9593 },
9594 "gridColumns": 4,
9595 "visible": "\"{defType}\"==\"edge\""
9596 },
9597 {
9598 "key": "y",
9599 "type": "number",
9600 "format": "string",
9601 "gridColumns": 4
9602 },
9603 {
9604 "key": "height",
9605 "type": "number",
9606 "format": "string",
9607 "label": {
9608 "zh": "高"
9609 },
9610 "default": {
9611 "en": "1"
9612 },
9613 "gridColumns": 4,
9614 "visible": "\"{defType}\"==\"size\""
9615 },
9616 {
9617 "key": "bottom",
9618 "type": "number",
9619 "format": "string",
9620 "label": {
9621 "zh": "底邊界"
9622 },
9623 "default": {
9624 "en": "1"
9625 },
9626 "gridColumns": 4,
9627 "visible": "\"{defType}\"==\"edge\""
9628 }
9629 ],
9630 "format": "grid"
9631 },
9632 "Tween": {
9633 "project": "CgEventsLib",
9634 "source": {
9635 "path": "definitions",
9636 "filename": "Tween.definition.ts"
9637 },
9638 "tostring": {},
9639 "className": "TweenDef",
9640 "timestamp": 1606523608383,
9641 "label": {
9642 "en": "Tween",
9643 "zh": "補間動畫"
9644 },
9645 "description": {},
9646 "allpaths": {},
9647 "properties": [
9648 {
9649 "key": "tweenId",
9650 "type": "string",
9651 "format": "string",
9652 "label": {
9653 "en": "補間動畫ID"
9654 },
9655 "gridColumns": 6
9656 },
9657 {
9658 "key": "duration",
9659 "type": "number",
9660 "format": "string",
9661 "label": {
9662 "en": "Duration",
9663 "zh": "時間"
9664 },
9665 "unit": {
9666 "en": "millisecond",
9667 "zh": "毫秒"
9668 },
9669 "default": {
9670 "en": "500"
9671 },
9672 "gridColumns": 6
9673 },
9674 {
9675 "key": "easing",
9676 "type": "string",
9677 "format": "string",
9678 "label": {
9679 "en": "Easing",
9680 "zh": "補間方式"
9681 },
9682 "gridColumns": 6,
9683 "enum": [
9684 "Linear",
9685 "Quadratic",
9686 "Cubic",
9687 "Quartic",
9688 "Quintic",
9689 "Sinusoidal",
9690 "Exponential",
9691 "Circular",
9692 "Elastic",
9693 "Back",
9694 "Bounce"
9695 ]
9696 },
9697 {
9698 "key": "timing",
9699 "type": "string",
9700 "format": "string",
9701 "label": {
9702 "en": "Easing Timing",
9703 "zh": "補間時機"
9704 },
9705 "gridColumns": 6,
9706 "enum": [
9707 "In",
9708 "InOut",
9709 "Out"
9710 ]
9711 }
9712 ],
9713 "format": "grid"
9714 },
9715 "Variable": {
9716 "project": "CgEventsLib",
9717 "source": {
9718 "path": "definitions",
9719 "filename": "Variable.definition.ts"
9720 },
9721 "tostring": {},
9722 "className": "VariableDef",
9723 "timestamp": 1606523608383,
9724 "label": {
9725 "en": "Variable",
9726 "zh": "變數"
9727 },
9728 "description": {},
9729 "allpaths": {},
9730 "properties": [
9731 {
9732 "key": "key",
9733 "type": "string",
9734 "format": "string",
9735 "label": {
9736 "en": "Name of the variable",
9737 "zh": "變數名稱"
9738 },
9739 "description": {
9740 "en": "Variable name",
9741 "zh": "變數名稱"
9742 },
9743 "required": 1,
9744 "gridColumns": 4
9745 },
9746 {
9747 "key": "valueType",
9748 "type": "string",
9749 "label": {
9750 "en": "Value Type",
9751 "zh": "變數值型別"
9752 },
9753 "gridColumns": 2,
9754 "enum": [
9755 "string",
9756 "integer",
9757 "number",
9758 "boolean"
9759 ],
9760 "enumTitles": {
9761 "en": [
9762 "string",
9763 "integer",
9764 "number",
9765 "boolean"
9766 ],
9767 "zh": [
9768 "字串",
9769 "整數",
9770 "數字",
9771 "布林值"
9772 ]
9773 }
9774 },
9775 {
9776 "key": "value",
9777 "type": "string",
9778 "format": "string",
9779 "label": {
9780 "en": "Value",
9781 "zh": "變數的值"
9782 },
9783 "description": {
9784 "en": "The value to be stored in the variable",
9785 "zh": "變數的值"
9786 },
9787 "gridColumns": 6
9788 }
9789 ],
9790 "format": "grid"
9791 },
9792 "CompareNumber": {
9793 "project": "CgEventsLib",
9794 "source": {
9795 "path": "definitions",
9796 "filename": "CompareNumber.definition.ts"
9797 },
9798 "tostring": {},
9799 "className": "CompareNumberDef",
9800 "timestamp": 1606523608383,
9801 "label": {
9802 "en": ""
9803 },
9804 "description": {},
9805 "allpaths": {},
9806 "properties": [
9807 {
9808 "key": "operator",
9809 "type": "string",
9810 "format": "string",
9811 "label": {
9812 "en": ""
9813 },
9814 "default": {
9815 "en": ">"
9816 },
9817 "gridColumns": 2,
9818 "enum": [
9819 ">",
9820 ">=",
9821 "<",
9822 "<=",
9823 "==",
9824 "!="
9825 ]
9826 },
9827 {
9828 "key": "value",
9829 "type": "number",
9830 "format": "string",
9831 "label": {
9832 "en": ""
9833 },
9834 "default": {
9835 "en": "0"
9836 },
9837 "gridColumns": 10
9838 }
9839 ],
9840 "format": "grid"
9841 },
9842 "Range": {
9843 "project": "CgEventsLib",
9844 "source": {
9845 "path": "definitions",
9846 "filename": "Range.definition.ts"
9847 },
9848 "tostring": {},
9849 "className": "RangeDef",
9850 "timestamp": 1606523608383,
9851 "label": {
9852 "en": "Range",
9853 "zh": "範圍"
9854 },
9855 "description": {},
9856 "allpaths": {},
9857 "properties": [
9858 {
9859 "key": "min",
9860 "type": "number",
9861 "format": "string",
9862 "label": {
9863 "en": "minimum",
9864 "zh": "最小值"
9865 },
9866 "default": {
9867 "en": "0"
9868 }
9869 },
9870 {
9871 "key": "max",
9872 "type": "number",
9873 "format": "string",
9874 "label": {
9875 "en": "maximum",
9876 "zh": "最大值"
9877 },
9878 "default": {
9879 "en": "100"
9880 }
9881 }
9882 ],
9883 "format": "grid,oneRow,fullwidth"
9884 }
9885 }
9886}