Skip to content

Commit 4d5b26b

Browse files
authored
[Experimental] [Object picking] Only keep unpick all (#2066)
- Don’t show in changelog
1 parent 2665c05 commit 4d5b26b

1 file changed

Lines changed: 21 additions & 22 deletions

File tree

extensions/community/ObjectPickingTools.json

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,29 @@
11
{
22
"author": "",
33
"category": "Advanced",
4+
"dimension": "",
45
"extensionNamespace": "",
6+
"fullName": "Unpicks all instances",
57
"gdevelopVersion": ">=5.5.222",
6-
"fullName": "Object picking tools",
78
"helpPath": "",
89
"iconUrl": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0ibWRpLXNlbGVjdGlvbi1lbGxpcHNlLWFycm93LWluc2lkZSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGQ9Ik0xMS4yIDRDOS45NCA0LjEyIDguNzIgNC41MyA3LjY0IDUuMkw2LjY0IDMuNDdDNy45NSAyLjY0IDkuNDUgMi4xMyAxMSAyTTE3LjUzIDYuMjVDMTYuNjIgNS4zOSAxNS41MyA0LjczIDE0LjM0IDQuMzNMMTUgMi4zOUMxNi41IDIuODQgMTcuODkgMy42NiAxOSA0Ljc4TTUuMzQgNy40MUM0LjY0IDguNDQgNC4xOSA5LjYgNCAxMC44M0wyIDEwLjU1QzIuMiA5IDIuNzkgNy41IDMuNyA2LjIzTTIyIDEyVjEyLjY2TDIwIDEyLjVWMTJDMjAgMTAuOTIgMTkuODEgOS44NiAxOS4zOSA4Ljg2TDIxLjIyIDguMDZDMjEuNzUgOS4zMSAyMiAxMC42NSAyMiAxMk02IDE3LjNMNC41IDE4LjYxQzMuNDcgMTcuNDMgMi43MiAxNi4wNCAyLjMgMTQuNTNMNC4xNyAxNEM0LjUzIDE1LjIyIDUuMTYgMTYuMzUgNiAxNy4zTTEyLjE0IDIySDEyQzEwLjUgMjIgOSAyMS42OCA3LjY0IDIxLjA3TDguNTMgMTkuMjRDOS42MiAxOS43NSAxMC44IDIwIDEyIDIwSDEyLjE5TTE3IDIxSDE1VjE1SDIxVjE3SDE4LjQyTDIxLjE0IDE5Ljc2TDE5LjczIDIxLjE3TDE3IDE4LjUiIC8+PC9zdmc+",
910
"name": "ObjectPickingTools",
1011
"previewIconUrl": "https://resources.gdevelop-app.com/assets/Icons/selection-ellipse-arrow-inside.svg",
11-
"shortDescription": "Pick object instances by highest or lowest variable value, z-order, and more.",
12-
"version": "2.1.0",
13-
"description": [
14-
"Adds various actions and conditions for advanced object selection. Includes picking objects with the highest or lowest Z-order (for 2D objects), an object variable, and the ability to unpick all objects.",
15-
"",
16-
"If multiple instances have the highest/lowest Z-order, all of these instances will be picked."
17-
],
12+
"shortDescription": "Unpick all instances of an object.",
13+
"version": "2.2.0",
14+
"description": "Unpick all instances of an object to only pick objects created by following actions.",
1815
"origin": {
1916
"identifier": "ObjectPickingTools",
2017
"name": "gdevelop-extension-store"
2118
},
22-
"tags": [
23-
"object",
24-
"picking",
25-
"instance",
26-
"pick",
27-
"unpick",
28-
"select",
29-
"deselect"
30-
],
19+
"tags": [],
3120
"authorIds": [
3221
"ZgrsWuRTAkXgeuPV9bo0zuEcA2w1",
3322
"gqDaZjCfevOOxBYkK6zlhtZnXCg1"
3423
],
3524
"dependencies": [],
25+
"globalVariables": [],
26+
"sceneVariables": [],
3627
"eventsFunctions": [
3728
{
3829
"description": "Unpicks all instances of an object.",
@@ -44,7 +35,7 @@
4435
{
4536
"type": "BuiltinCommonInstructions::JsCode",
4637
"inlineCode": [
47-
"const lists = eventsFunctionContext.getObjectsLists(\"object\").items;",
38+
"const lists = eventsFunctionContext.getObjectsLists(\"Object\").items;",
4839
"for (const listName in lists)",
4940
" lists[listName].length = 0;",
5041
""
@@ -57,7 +48,7 @@
5748
"parameters": [
5849
{
5950
"description": "The object to unpick all instances from",
60-
"name": "object",
51+
"name": "Object",
6152
"type": "objectList"
6253
}
6354
],
@@ -73,7 +64,7 @@
7364
{
7465
"type": "BuiltinCommonInstructions::JsCode",
7566
"inlineCode": [
76-
"const lists = eventsFunctionContext.getObjectsLists(\"object\").items;",
67+
"const lists = eventsFunctionContext.getObjectsLists(\"Object\").items;",
7768
"for (const listName in lists)",
7869
" lists[listName].length = 0;",
7970
""
@@ -100,7 +91,7 @@
10091
"parameters": [
10192
{
10293
"description": "The object to unpick all instances from",
103-
"name": "object",
94+
"name": "Object",
10495
"type": "objectList"
10596
}
10697
],
@@ -111,6 +102,7 @@
111102
"fullName": "Pick objects with lowest Z-order",
112103
"functionType": "Action",
113104
"name": "PickLowestZAction",
105+
"private": true,
114106
"sentence": "Pick _PARAM1_ with the lowest Z-order",
115107
"events": [
116108
{
@@ -168,6 +160,7 @@
168160
"fullName": "Pick objects with lowest Z-order",
169161
"functionType": "Condition",
170162
"name": "PickLowestZCondition",
163+
"private": true,
171164
"sentence": "Pick _PARAM1_ with the lowest Z-order",
172165
"events": [
173166
{
@@ -239,6 +232,7 @@
239232
"fullName": "Pick objects with highest Z-order",
240233
"functionType": "Action",
241234
"name": "PickHighestZAction",
235+
"private": true,
242236
"sentence": "Pick _PARAM1_ with the highest Z-order",
243237
"events": [
244238
{
@@ -301,6 +295,7 @@
301295
"fullName": "Pick objects with highest Z-order",
302296
"functionType": "Condition",
303297
"name": "PickHighestZCondition",
298+
"private": true,
304299
"sentence": "Pick _PARAM1_ with the highest Z-order",
305300
"events": [
306301
{
@@ -372,6 +367,7 @@
372367
"fullName": "Pick objects with lowest variable value",
373368
"functionType": "Action",
374369
"name": "PickLowestVariableValueAction",
370+
"private": true,
375371
"sentence": "Pick _PARAM1_ with the lowest value of variable _PARAM2_",
376372
"events": [
377373
{
@@ -442,6 +438,7 @@
442438
"fullName": "Pick objects with lowest variable value",
443439
"functionType": "Condition",
444440
"name": "PickLowestVariableValueCondition",
441+
"private": true,
445442
"sentence": "Pick _PARAM1_ with the lowest value of variable _PARAM2_",
446443
"events": [
447444
{
@@ -521,6 +518,7 @@
521518
"fullName": "Pick objects with highest variable value",
522519
"functionType": "Action",
523520
"name": "PickHighestVariableValueAction",
521+
"private": true,
524522
"sentence": "Pick _PARAM1_ with the highest value of variable _PARAM2_",
525523
"events": [
526524
{
@@ -591,6 +589,7 @@
591589
"fullName": "Pick objects with highest variable value",
592590
"functionType": "Condition",
593591
"name": "PickHighestVariableValueCondition",
592+
"private": true,
594593
"sentence": "Pick _PARAM1_ with the highest value of variable _PARAM2_",
595594
"events": [
596595
{
@@ -954,4 +953,4 @@
954953
],
955954
"eventsBasedBehaviors": [],
956955
"eventsBasedObjects": []
957-
}
956+
}

0 commit comments

Comments
 (0)