Skip to content

Commit

Permalink
Move some extensions to the community list (#1339)
Browse files Browse the repository at this point in the history
- Don't show in the changelog
  • Loading branch information
D8H committed Jul 27, 2024
1 parent 63a73bf commit d3ab56b
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 19 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@
{
"author": "Ulises Freitas <ulises.freitas@gmail.com>",
"category": "General",
"description": "In an expression, use `Choose::RandomString` or `Choose::RandomNumber` and set the values you want to randomize separated by commas.\n\nSee also [Array Tools extension](https://wiki.gdevelop.io/gdevelop5/extensions/array-tools) for more advanced usages.",
"extensionNamespace": "",
"fullName": "Choose a random value",
"fullName": "Choose a random value (deprecated)",
"helpPath": "",
"iconUrl": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0ibWRpLWRpY2UtbXVsdGlwbGUiIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJNMTkuNzgsM0gxMS4yMkMxMC41NSwzIDEwLDMuNTUgMTAsNC4yMlY4SDE2VjE0SDE5Ljc4QzIwLjQ1LDE0IDIxLDEzLjQ1IDIxLDEyLjc4VjQuMjJDMjEsMy41NSAyMC40NSwzIDE5Ljc4LDNNMTIuNDQsNi42N0MxMS43Niw2LjY3IDExLjIxLDYuMTIgMTEuMjEsNS40NEMxMS4yMSw0Ljc2IDExLjc2LDQuMjEgMTIuNDQsN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MzLDE3Ljg4IDEwLjMzLDE4LjU1QzEwLjMzLDE5LjIyIDEwLjg4LDE5Ljc3IDExLjU1LDE5Ljc3QTEuMjIsMS4yMiAwIDAsMCAxMi43NywxOC41NUgxMi43N0MxMi43NywxNy44OCAxMi4yMywxNy4zNCAxMS41NiwxNy4zM0gxMS41NVoiIC8+PC9zdmc+",
"name": "Choose",
"previewIconUrl": "https://resources.gdevelop-app.com/assets/Icons/dice-multiple.svg",
"shortDescription": "Choose a random value in a list of strings or numbers.",
"version": "1.0.0",
"description": [
"In an expression, use `Choose::RandomString` or `Choose::RandomNumber` and set the values you want to randomize separated by commas.",
"",
"This extension is deprecated. Use the [Array Tools extension](https://wiki.gdevelop.io/gdevelop5/extensions/array-tools) to get a random value from an array variable instead."
],
"origin": {
"identifier": "Choose",
"name": "gdevelop-extension-store"
},
"tags": [
"choose",
"random"
Expand All @@ -18,34 +26,37 @@
"ZShmW1xkW7WWl9AkB78VITJMiTw1"
],
"dependencies": [],
"globalVariables": [],
"sceneVariables": [],
"eventsFunctions": [
{
"description": "Choose randomly between comma-separated strings.",
"fullName": "Choose randomly between comma-separated strings",
"functionType": "StringExpression",
"name": "RandomString",
"private": false,
"sentence": "Choose between these values: _PARAM1_",
"events": [
{
"disabled": false,
"folded": false,
"type": "BuiltinCommonInstructions::JsCode",
"inlineCode": "/** @type {string[]} */\nconst choices = eventsFunctionContext.getArgument(\"ChoicesString\").split(',');\neventsFunctionContext.returnValue = choices[Math.floor(Math.random() * choices.length)];\n",
"inlineCode": [
"/** @type {string[]} */",
"const choices = eventsFunctionContext.getArgument(\"ChoicesString\").split(',');",
"eventsFunctionContext.returnValue = choices[Math.floor(Math.random() * choices.length)];",
""
],
"parameterObjects": "",
"useStrict": true,
"eventsSheetExpanded": true
}
],
"expressionType": {
"type": "string"
},
"parameters": [
{
"codeOnly": false,
"defaultValue": "",
"description": "The string containing all options to choose randomly from, separated by commas",
"longDescription": "Example: \"option1,option2,option3\"",
"name": "ChoicesString",
"optional": false,
"supplementaryInformation": "",
"type": "string"
}
],
Expand All @@ -56,33 +67,35 @@
"fullName": "Choose a number randomly between comma-separated numbers",
"functionType": "Expression",
"name": "RandomNumber",
"private": false,
"sentence": "Choose between these values: _PARAM1_",
"events": [
{
"disabled": false,
"folded": false,
"type": "BuiltinCommonInstructions::JsCode",
"inlineCode": "/** @type {string[]} */\nconst choices = eventsFunctionContext.getArgument(\"NumbersChoiceString\").split(',');\neventsFunctionContext.returnValue = parseFloat(choices[Math.floor(Math.random() * choices.length)]);\n",
"inlineCode": [
"/** @type {string[]} */",
"const choices = eventsFunctionContext.getArgument(\"NumbersChoiceString\").split(',');",
"eventsFunctionContext.returnValue = parseFloat(choices[Math.floor(Math.random() * choices.length)]);",
""
],
"parameterObjects": "",
"useStrict": true,
"eventsSheetExpanded": true
}
],
"expressionType": {
"type": "expression"
},
"parameters": [
{
"codeOnly": false,
"defaultValue": "",
"description": "The string containing all numbers to choose randomly from, separated by commas",
"longDescription": "Example: \"10,20,30\"",
"name": "NumbersChoiceString",
"optional": false,
"supplementaryInformation": "",
"type": "string"
}
],
"objectGroups": []
}
],
"eventsBasedBehaviors": []
"eventsBasedBehaviors": [],
"eventsBasedObjects": []
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit d3ab56b

Please sign in to comment.