Skip to content

Commit 847a10c

Browse files
committed
Automated Extension submission for issue #2270
1 parent 6e0bba8 commit 847a10c

1 file changed

Lines changed: 131 additions & 0 deletions

File tree

‎extensions/community/Signals.json‎

Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
{
2+
"author": "",
3+
"category": "General",
4+
"dimension": "",
5+
"extensionNamespace": "",
6+
"fullName": "Signals",
7+
"gdevelopVersion": "",
8+
"helpPath": "",
9+
"iconUrl": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0ibWRpLXNpZ25hbC12YXJpYW50IiB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZD0iTTQsNlY0SDQuMUMxMi45LDQgMjAsMTEuMSAyMCwxOS45VjIwSDE4VjE5LjlDMTgsMTIuMiAxMS44LDYgNCw2TTQsMTBWOEExMiwxMiAwIDAsMSAxNiwyMEgxNEExMCwxMCAwIDAsMCA0LDEwTTQsMTRWMTJBOCw4IDAgMCwxIDEyLDIwSDEwQTYsNiAwIDAsMCA0LDE0TTQsMTZBNCw0IDAgMCwxIDgsMjBINFYxNloiIC8+PC9zdmc+",
10+
"name": "Signals",
11+
"previewIconUrl": "https://asset-resources.gdevelop.io/public-resources/Icons/a422fe56b8214e5d8b8e5ca6ad8f6b9598f89e6bd3af47c9e25d1777c2534c63_signal-variant.svg",
12+
"shortDescription": "Adds Call Signal as an action and On Signal Call as a condition, allowing re-use of multiple actions easily.",
13+
"version": "1.0.1",
14+
"description": [
15+
"Allows for calling and on call signals within the Action Sheet. ",
16+
"Useful for re-use of the same actions for different calls of the same signal. ",
17+
" ",
18+
"Write \"On Signal Call\" then use \"Call Signal\" in your program for use. ",
19+
"Either can be used in front of another, On Signal Call can appear before Call Signal in the action sheet, and vice versa. "
20+
],
21+
"tags": [
22+
"functions",
23+
"general",
24+
"signal",
25+
"calls"
26+
],
27+
"authorIds": [
28+
"9AJFDUCQG2hiUqekfo0Y9HVSiRX2"
29+
],
30+
"dependencies": [],
31+
"globalVariables": [],
32+
"sceneVariables": [],
33+
"eventsFunctions": [
34+
{
35+
"description": "Calls Signal for use with On Signal Call.",
36+
"fullName": "Call Signal",
37+
"functionType": "Action",
38+
"name": "CallSignal",
39+
"sentence": "Call Signal _PARAM1_",
40+
"events": [
41+
{
42+
"type": "BuiltinCommonInstructions::JsCode",
43+
"inlineCode": [
44+
"const extName = \"Signals\";",
45+
"globalThis[extName] = globalThis[extName] || { activeCalls: new Set(), incomingCalls: new Set() };",
46+
"const sigName = eventsFunctionContext.getArgument(\"SignalName\");",
47+
"globalThis[extName].incomingCalls.add(sigName);"
48+
],
49+
"parameterObjects": "",
50+
"useStrict": true,
51+
"eventsSheetExpanded": false
52+
}
53+
],
54+
"parameters": [
55+
{
56+
"description": "Signal Name",
57+
"name": "SignalName",
58+
"supplementaryInformation": "TextObject::Text",
59+
"type": "string"
60+
}
61+
],
62+
"objectGroups": []
63+
},
64+
{
65+
"description": "Reacts to a Signal Call made by Call Signal with the same Signal Name.",
66+
"fullName": "On Signal Call",
67+
"functionType": "Condition",
68+
"name": "OnSignalCall",
69+
"sentence": "Signal _PARAM1_ is called",
70+
"events": [
71+
{
72+
"type": "BuiltinCommonInstructions::JsCode",
73+
"inlineCode": [
74+
"const extName = \"Signals\";",
75+
"const sigName = eventsFunctionContext.getArgument(\"SignalName\");",
76+
"eventsFunctionContext.returnValue = !!globalThis[extName].activeCalls.has(sigName);"
77+
],
78+
"parameterObjects": "",
79+
"useStrict": true,
80+
"eventsSheetExpanded": false
81+
}
82+
],
83+
"parameters": [
84+
{
85+
"description": "Signal Name",
86+
"name": "SignalName",
87+
"type": "string"
88+
}
89+
],
90+
"objectGroups": []
91+
},
92+
{
93+
"fullName": "",
94+
"functionType": "Action",
95+
"name": "onScenePreEvents",
96+
"sentence": "",
97+
"events": [
98+
{
99+
"type": "BuiltinCommonInstructions::JsCode",
100+
"inlineCode": [
101+
"const extName = \"Signals\";",
102+
"globalThis[extName] = globalThis[extName] || { activeCalls: new Set(), incomingCalls: new Set() };",
103+
"globalThis[extName].activeCalls = new Set(globalThis[extName].incomingCalls);",
104+
"globalThis[extName].incomingCalls.clear();"
105+
],
106+
"parameterObjects": "",
107+
"useStrict": true,
108+
"eventsSheetExpanded": false
109+
}
110+
],
111+
"parameters": [],
112+
"objectGroups": []
113+
}
114+
],
115+
"eventsFunctionsFolderStructure": {
116+
"folderName": "__ROOT",
117+
"children": [
118+
{
119+
"functionName": "CallSignal"
120+
},
121+
{
122+
"functionName": "OnSignalCall"
123+
},
124+
{
125+
"functionName": "onScenePreEvents"
126+
}
127+
]
128+
},
129+
"eventsBasedBehaviors": [],
130+
"eventsBasedObjects": []
131+
}

0 commit comments

Comments
 (0)