Skip to content

Commit 035a3eb

Browse files
Updates script libraries.
1 parent dc321f9 commit 035a3eb

17 files changed

+981
-18
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"id": "56ec5135-b5ef-4b71-81d6-29de39f846d3",
3+
"sceneType": "PREFAB",
4+
"settings": {
5+
"exportClass": true,
6+
"autoImport": true,
7+
"prefabObjDisplayFmt": "Add object to \"${parentContainer}\"",
8+
"displayName": "Add To Parent Action",
9+
"preloadMethodName": "",
10+
"preloadPackFiles": [],
11+
"createMethodName": "",
12+
"compilerOutputLanguage": "TYPE_SCRIPT",
13+
"borderWidth": 1280,
14+
"borderHeight": 720
15+
},
16+
"displayList": [
17+
{
18+
"type": "ScriptNode",
19+
"id": "40495f9a-b22e-45c6-82bf-f38c6b258602",
20+
"label": "scriptnode_1"
21+
}
22+
],
23+
"plainObjects": [],
24+
"meta": {
25+
"app": "Phaser Editor 2D - Scene Editor",
26+
"url": "https://phasereditor2d.com",
27+
"contentType": "phasereditor2d.core.scene.SceneContentType",
28+
"version": 5
29+
},
30+
"prefabProperties": [
31+
{
32+
"name": "parentContainer",
33+
"label": "Parent Container",
34+
"tooltip": "",
35+
"defValue": "",
36+
"customDefinition": false,
37+
"type": {
38+
"id": "object-var",
39+
"expressionType": "Phaser.GameObjects.Container | Phaser.GameObjects.Layer"
40+
}
41+
}
42+
]
43+
}
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
{
2+
"components": [
3+
{
4+
"name": "ActionTargetComp",
5+
"displayName": "Action Target Config",
6+
"baseClass": "",
7+
"gameObjectType": "any",
8+
"properties": [
9+
{
10+
"name": "target",
11+
"label": "Target",
12+
"tooltip": "The target object of the action.",
13+
"defValue": "GAME_OBJECT",
14+
"customDefinition": false,
15+
"type": {
16+
"id": "option",
17+
"options": [
18+
"GAME_OBJECT",
19+
"ARG_1",
20+
"ARG_2",
21+
"ARG_3",
22+
"ARG_4",
23+
"ARG_5",
24+
"ARG_6",
25+
"ARG_7",
26+
"ARG_8"
27+
]
28+
}
29+
},
30+
{
31+
"name": "targetName",
32+
"label": "Target Name",
33+
"tooltip": "A display name for the target.",
34+
"defValue": "",
35+
"customDefinition": false,
36+
"type": {
37+
"id": "string"
38+
}
39+
}
40+
]
41+
},
42+
{
43+
"name": "AssignOpComp",
44+
"displayName": "Assignment Operator",
45+
"objectDisplayFormat": "[${operator}]",
46+
"baseClass": "",
47+
"gameObjectType": "any",
48+
"properties": [
49+
{
50+
"name": "operator",
51+
"label": "Operator",
52+
"tooltip": "",
53+
"defValue": "=",
54+
"customDefinition": false,
55+
"type": {
56+
"id": "option",
57+
"options": [
58+
"=",
59+
"+=",
60+
"*="
61+
]
62+
}
63+
}
64+
]
65+
}
66+
],
67+
"meta": {
68+
"app": "Phaser Editor 2D - User Components Editor",
69+
"url": "https://phasereditor2d.com",
70+
"contentType": "phasereditor2d.core.scene.UserComponents"
71+
},
72+
"outputLang": "TYPE_SCRIPT",
73+
"exportClass": true,
74+
"autoImport": true
75+
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"id": "457af5d2-ff70-4d8d-b29e-b524bf485778",
3+
"sceneType": "PREFAB",
4+
"settings": {
5+
"exportClass": true,
6+
"autoImport": true,
7+
"prefabObjDisplayFmt": "Exec children",
8+
"displayName": "Exec Children Action",
9+
"preloadMethodName": "",
10+
"preloadPackFiles": [],
11+
"createMethodName": "",
12+
"compilerOutputLanguage": "TYPE_SCRIPT",
13+
"borderWidth": 360,
14+
"borderHeight": 320
15+
},
16+
"displayList": [
17+
{
18+
"type": "ScriptNode",
19+
"id": "f81894b7-cfcd-4c5e-a12b-59e9b7569578",
20+
"label": "scriptnode_1"
21+
}
22+
],
23+
"plainObjects": [],
24+
"meta": {
25+
"app": "Phaser Editor 2D - Scene Editor",
26+
"url": "https://phasereditor2d.com",
27+
"contentType": "phasereditor2d.core.scene.SceneContentType",
28+
"version": 5
29+
}
30+
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"id": "d252ccdd-bf5d-4a3b-8506-911fafafdb5b",
3+
"sceneType": "PREFAB",
4+
"settings": {
5+
"exportClass": true,
6+
"autoImport": true,
7+
"prefabObjDisplayFmt": "Exec random action",
8+
"displayName": "Exec Random Action",
9+
"preloadMethodName": "",
10+
"preloadPackFiles": [],
11+
"createMethodName": "",
12+
"compilerOutputLanguage": "TYPE_SCRIPT",
13+
"borderWidth": 360,
14+
"borderHeight": 240
15+
},
16+
"displayList": [
17+
{
18+
"type": "ScriptNode",
19+
"id": "4c768a79-a114-4186-b2b7-00ae26834c38",
20+
"label": "scriptnode_1"
21+
}
22+
],
23+
"plainObjects": [],
24+
"meta": {
25+
"app": "Phaser Editor 2D - Scene Editor",
26+
"url": "https://phasereditor2d.com",
27+
"contentType": "phasereditor2d.core.scene.SceneContentType",
28+
"version": 5
29+
}
30+
}
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"id": "8617eff9-bbfd-4525-a6c1-4b9ce4072c10",
3+
"sceneType": "PREFAB",
4+
"settings": {
5+
"exportClass": true,
6+
"autoImport": true,
7+
"prefabObjDisplayFmt": "Flip #{horizontal} #{vertical}",
8+
"displayName": "Flip Action",
9+
"preloadMethodName": "",
10+
"preloadPackFiles": [],
11+
"createMethodName": "",
12+
"compilerOutputLanguage": "TYPE_SCRIPT",
13+
"borderWidth": 360,
14+
"borderHeight": 320
15+
},
16+
"displayList": [
17+
{
18+
"type": "ScriptNode",
19+
"id": "2509f66c-3a2a-448d-b7b5-0aab02a3702e",
20+
"label": "scriptnode_1"
21+
}
22+
],
23+
"plainObjects": [],
24+
"meta": {
25+
"app": "Phaser Editor 2D - Scene Editor",
26+
"url": "https://phasereditor2d.com",
27+
"contentType": "phasereditor2d.core.scene.SceneContentType",
28+
"version": 5
29+
},
30+
"prefabProperties": [
31+
{
32+
"name": "horizontal",
33+
"label": "Horizontal",
34+
"tooltip": "",
35+
"defValue": false,
36+
"customDefinition": false,
37+
"type": {
38+
"id": "boolean"
39+
}
40+
},
41+
{
42+
"name": "vertical",
43+
"label": "Vertical",
44+
"tooltip": "",
45+
"defValue": false,
46+
"customDefinition": false,
47+
"type": {
48+
"id": "boolean"
49+
}
50+
}
51+
]
52+
}
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"id": "7811fa03-7658-4947-8fb1-d8d8e4bc6cd3",
3+
"sceneType": "PREFAB",
4+
"settings": {
5+
"exportClass": true,
6+
"autoImport": true,
7+
"prefabObjDisplayFmt": "Play \"${animationKey}\"",
8+
"displayName": "Play Sprite Animation Action",
9+
"preloadMethodName": "",
10+
"preloadPackFiles": [],
11+
"createMethodName": "",
12+
"compilerOutputLanguage": "TYPE_SCRIPT",
13+
"borderWidth": 360,
14+
"borderHeight": 240
15+
},
16+
"displayList": [
17+
{
18+
"type": "ScriptNode",
19+
"id": "75a09015-2edf-4287-972f-a19a30873c43",
20+
"label": "scriptnode_1"
21+
}
22+
],
23+
"plainObjects": [],
24+
"meta": {
25+
"app": "Phaser Editor 2D - Scene Editor",
26+
"url": "https://phasereditor2d.com",
27+
"contentType": "phasereditor2d.core.scene.SceneContentType",
28+
"version": 5
29+
},
30+
"prefabProperties": [
31+
{
32+
"name": "animationKey",
33+
"label": "Animation Key",
34+
"tooltip": "The animation key.",
35+
"defValue": "",
36+
"customDefinition": false,
37+
"type": {
38+
"id": "animation-key"
39+
}
40+
},
41+
{
42+
"name": "ignoreIfPlaying",
43+
"label": "Ignore If Playing",
44+
"tooltip": "If an animation is already playing then ignore this call.",
45+
"defValue": false,
46+
"customDefinition": false,
47+
"type": {
48+
"id": "boolean"
49+
}
50+
}
51+
]
52+
}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"id": "362f876f-e61f-4575-844e-4ecabae571fa",
3+
"sceneType": "PREFAB",
4+
"settings": {
5+
"exportClass": true,
6+
"autoImport": true,
7+
"prefabObjDisplayFmt": "Set angle to \"${angle}\"",
8+
"displayName": "Set Angle Action",
9+
"preloadMethodName": "",
10+
"preloadPackFiles": [],
11+
"createMethodName": "",
12+
"compilerOutputLanguage": "TYPE_SCRIPT",
13+
"borderWidth": 360,
14+
"borderHeight": 240
15+
},
16+
"displayList": [
17+
{
18+
"type": "ScriptNode",
19+
"id": "0e13d1fc-f90e-4d8a-b404-01d07b3239de",
20+
"label": "scriptnode_1"
21+
}
22+
],
23+
"plainObjects": [],
24+
"meta": {
25+
"app": "Phaser Editor 2D - Scene Editor",
26+
"url": "https://phasereditor2d.com",
27+
"contentType": "phasereditor2d.core.scene.SceneContentType",
28+
"version": 5
29+
},
30+
"prefabProperties": [
31+
{
32+
"name": "angle",
33+
"label": "Angle",
34+
"tooltip": "",
35+
"defValue": 0,
36+
"customDefinition": false,
37+
"type": {
38+
"id": "number"
39+
}
40+
}
41+
]
42+
}
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"id": "abc52dda-ca85-4e23-ad3c-48081272a0d3",
3+
"sceneType": "PREFAB",
4+
"settings": {
5+
"exportClass": true,
6+
"autoImport": true,
7+
"prefabObjDisplayFmt": "Set scale X to \"${scaleX}\"",
8+
"displayName": "Set Scale X Action",
9+
"preloadMethodName": "",
10+
"preloadPackFiles": [],
11+
"createMethodName": "",
12+
"compilerOutputLanguage": "TYPE_SCRIPT",
13+
"borderWidth": 360,
14+
"borderHeight": 240
15+
},
16+
"displayList": [
17+
{
18+
"type": "ScriptNode",
19+
"id": "9689486c-4990-4b0f-88bf-b3e81a0434ff",
20+
"label": "scriptnode_1"
21+
}
22+
],
23+
"plainObjects": [],
24+
"meta": {
25+
"app": "Phaser Editor 2D - Scene Editor",
26+
"url": "https://phasereditor2d.com",
27+
"contentType": "phasereditor2d.core.scene.SceneContentType",
28+
"version": 5
29+
},
30+
"prefabProperties": [
31+
{
32+
"name": "scaleX",
33+
"label": "Scale X",
34+
"tooltip": "",
35+
"defValue": 1,
36+
"customDefinition": false,
37+
"type": {
38+
"id": "number"
39+
}
40+
}
41+
]
42+
}

0 commit comments

Comments
 (0)