Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 21 additions & 22 deletions extensions/community/ObjectPickingTools.json
Original file line number Diff line number Diff line change
@@ -1,38 +1,29 @@
{
"author": "",
"category": "Advanced",
"dimension": "",
"extensionNamespace": "",
"fullName": "Unpicks all instances",
"gdevelopVersion": ">=5.5.222",
"fullName": "Object picking tools",
"helpPath": "",
"iconUrl": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0ibWRpLXNlbGVjdGlvbi1lbGxpcHNlLWFycm93LWluc2lkZSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiPjxwYXRoIGQ9Ik0xMS4yIDRDOS45NCA0LjEyIDguNzIgNC41MyA3LjY0IDUuMkw2LjY0IDMuNDdDNy45NSAyLjY0IDkuNDUgMi4xMyAxMSAyTTE3LjUzIDYuMjVDMTYuNjIgNS4zOSAxNS41MyA0LjczIDE0LjM0IDQuMzNMMTUgMi4zOUMxNi41IDIuODQgMTcuODkgMy42NiAxOSA0Ljc4TTUuMzQgNy40MUM0LjY0IDguNDQgNC4xOSA5LjYgNCAxMC44M0wyIDEwLjU1QzIuMiA5IDIuNzkgNy41IDMuNyA2LjIzTTIyIDEyVjEyLjY2TDIwIDEyLjVWMTJDMjAgMTAuOTIgMTkuODEgOS44NiAxOS4zOSA4Ljg2TDIxLjIyIDguMDZDMjEuNzUgOS4zMSAyMiAxMC42NSAyMiAxMk02IDE3LjNMNC41IDE4LjYxQzMuNDcgMTcuNDMgMi43MiAxNi4wNCAyLjMgMTQuNTNMNC4xNyAxNEM0LjUzIDE1LjIyIDUuMTYgMTYuMzUgNiAxNy4zTTEyLjE0IDIySDEyQzEwLjUgMjIgOSAyMS42OCA3LjY0IDIxLjA3TDguNTMgMTkuMjRDOS42MiAxOS43NSAxMC44IDIwIDEyIDIwSDEyLjE5TTE3IDIxSDE1VjE1SDIxVjE3SDE4LjQyTDIxLjE0IDE5Ljc2TDE5LjczIDIxLjE3TDE3IDE4LjUiIC8+PC9zdmc+",
"name": "ObjectPickingTools",
"previewIconUrl": "https://resources.gdevelop-app.com/assets/Icons/selection-ellipse-arrow-inside.svg",
"shortDescription": "Pick object instances by highest or lowest variable value, z-order, and more.",
"version": "2.1.0",
"description": [
"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.",
"",
"If multiple instances have the highest/lowest Z-order, all of these instances will be picked."
],
"shortDescription": "Unpick all instances of an object.",
"version": "2.2.0",
"description": "Unpick all instances of an object to only pick objects created by following actions.",
"origin": {
"identifier": "ObjectPickingTools",
"name": "gdevelop-extension-store"
},
"tags": [
"object",
"picking",
"instance",
"pick",
"unpick",
"select",
"deselect"
],
"tags": [],
"authorIds": [
"ZgrsWuRTAkXgeuPV9bo0zuEcA2w1",
"gqDaZjCfevOOxBYkK6zlhtZnXCg1"
],
"dependencies": [],
"globalVariables": [],
"sceneVariables": [],
"eventsFunctions": [
{
"description": "Unpicks all instances of an object.",
Expand All @@ -44,7 +35,7 @@
{
"type": "BuiltinCommonInstructions::JsCode",
"inlineCode": [
"const lists = eventsFunctionContext.getObjectsLists(\"object\").items;",
"const lists = eventsFunctionContext.getObjectsLists(\"Object\").items;",
"for (const listName in lists)",
" lists[listName].length = 0;",
""
Expand All @@ -57,7 +48,7 @@
"parameters": [
{
"description": "The object to unpick all instances from",
"name": "object",
"name": "Object",
"type": "objectList"
}
],
Expand All @@ -73,7 +64,7 @@
{
"type": "BuiltinCommonInstructions::JsCode",
"inlineCode": [
"const lists = eventsFunctionContext.getObjectsLists(\"object\").items;",
"const lists = eventsFunctionContext.getObjectsLists(\"Object\").items;",
"for (const listName in lists)",
" lists[listName].length = 0;",
""
Expand All @@ -100,7 +91,7 @@
"parameters": [
{
"description": "The object to unpick all instances from",
"name": "object",
"name": "Object",
"type": "objectList"
}
],
Expand All @@ -111,6 +102,7 @@
"fullName": "Pick objects with lowest Z-order",
"functionType": "Action",
"name": "PickLowestZAction",
"private": true,
"sentence": "Pick _PARAM1_ with the lowest Z-order",
"events": [
{
Expand Down Expand Up @@ -168,6 +160,7 @@
"fullName": "Pick objects with lowest Z-order",
"functionType": "Condition",
"name": "PickLowestZCondition",
"private": true,
"sentence": "Pick _PARAM1_ with the lowest Z-order",
"events": [
{
Expand Down Expand Up @@ -239,6 +232,7 @@
"fullName": "Pick objects with highest Z-order",
"functionType": "Action",
"name": "PickHighestZAction",
"private": true,
"sentence": "Pick _PARAM1_ with the highest Z-order",
"events": [
{
Expand Down Expand Up @@ -301,6 +295,7 @@
"fullName": "Pick objects with highest Z-order",
"functionType": "Condition",
"name": "PickHighestZCondition",
"private": true,
"sentence": "Pick _PARAM1_ with the highest Z-order",
"events": [
{
Expand Down Expand Up @@ -372,6 +367,7 @@
"fullName": "Pick objects with lowest variable value",
"functionType": "Action",
"name": "PickLowestVariableValueAction",
"private": true,
"sentence": "Pick _PARAM1_ with the lowest value of variable _PARAM2_",
"events": [
{
Expand Down Expand Up @@ -442,6 +438,7 @@
"fullName": "Pick objects with lowest variable value",
"functionType": "Condition",
"name": "PickLowestVariableValueCondition",
"private": true,
"sentence": "Pick _PARAM1_ with the lowest value of variable _PARAM2_",
"events": [
{
Expand Down Expand Up @@ -521,6 +518,7 @@
"fullName": "Pick objects with highest variable value",
"functionType": "Action",
"name": "PickHighestVariableValueAction",
"private": true,
"sentence": "Pick _PARAM1_ with the highest value of variable _PARAM2_",
"events": [
{
Expand Down Expand Up @@ -591,6 +589,7 @@
"fullName": "Pick objects with highest variable value",
"functionType": "Condition",
"name": "PickHighestVariableValueCondition",
"private": true,
"sentence": "Pick _PARAM1_ with the highest value of variable _PARAM2_",
"events": [
{
Expand Down Expand Up @@ -954,4 +953,4 @@
],
"eventsBasedBehaviors": [],
"eventsBasedObjects": []
}
}
Loading