diff --git a/extensions/community/DoubleKeyPress.json b/extensions/community/DoubleKeyPress.json index 20b37df7..720d7aee 100644 --- a/extensions/community/DoubleKeyPress.json +++ b/extensions/community/DoubleKeyPress.json @@ -8,7 +8,7 @@ "name": "DoubleKeyPress", "previewIconUrl": "https://asset-resources.gdevelop.io/public-resources/Icons/a85f9403cea5bc52457e445d4a200ed226e30c3493c927aa015d0bbdf847df01_keyboard-outline.svg", "shortDescription": "Adds conditions to check for double key presses, similar to double clicks.", - "version": "1.0.1", + "version": "1.0.2", "description": [ "This simple extension enables you to add a system, where a player needs to double press a certain key for an action to happen. ", "For example you can add a sprinting system similar to Minecraft's, where you need to press W twice to start running.", @@ -65,7 +65,7 @@ }, "parameters": [ "", - "\"__DoublePress_\"+key" + "\"__DoublePress_\"+GetArgumentAsString(\"key\")" ] }, { @@ -74,7 +74,7 @@ }, "parameters": [ "", - "\"__DoublePress_\"+key" + "\"__DoublePress_\"+GetArgumentAsString(\"key\")" ] } ] @@ -100,7 +100,7 @@ }, "parameters": [ "\"key\"", - "key" + "GetArgumentAsString(\"key\")" ] }, { @@ -116,7 +116,7 @@ "value": "ToggleSceneVariableAsBoolean" }, "parameters": [ - "__DoublePress[key]" + "__DoublePress[GetArgumentAsString(\"key\")]" ] } ], @@ -141,7 +141,7 @@ "value": "SceneVariableAsBoolean" }, "parameters": [ - "__DoublePress[key]", + "__DoublePress[GetArgumentAsString(\"key\")]", "True" ] } @@ -153,7 +153,7 @@ }, "parameters": [ "", - "\"__DoublePress_\"+key" + "\"__DoublePress_\"+GetArgumentAsString(\"key\")" ] } ] @@ -178,7 +178,7 @@ "value": "SceneVariableAsBoolean" }, "parameters": [ - "__DoublePress[key]", + "__DoublePress[GetArgumentAsString(\"key\")]", "False" ] } @@ -190,7 +190,7 @@ }, "parameters": [ "", - "\"__DoublePress_\"+key" + "\"__DoublePress_\"+GetArgumentAsString(\"key\")" ] }, { @@ -199,7 +199,7 @@ }, "parameters": [ "", - "\"__DoublePress_\"+key" + "\"__DoublePress_\"+GetArgumentAsString(\"key\")" ] }, { @@ -235,9 +235,9 @@ }, "parameters": [ "", - "\"__DoublePress_\"+key", + "\"__DoublePress_\"+GetArgumentAsString(\"key\")", ">=", - "seconds" + "GetArgumentAsNumber(\"seconds\")" ] } ], @@ -248,7 +248,7 @@ }, "parameters": [ "", - "\"__DoublePress_\"+key" + "\"__DoublePress_\"+GetArgumentAsString(\"key\")" ] }, { @@ -257,7 +257,7 @@ }, "parameters": [ "", - "\"__DoublePress_\"+key" + "\"__DoublePress_\"+GetArgumentAsString(\"key\")" ] }, { @@ -265,7 +265,7 @@ "value": "SetSceneVariableAsBoolean" }, "parameters": [ - "__DoublePress[key]", + "__DoublePress[GetArgumentAsString(\"key\")]", "" ] } @@ -496,7 +496,7 @@ "", "\"__DoublePress_Any\"", ">=", - "seconds" + "GetArgumentAsNumber(\"seconds\")" ] } ], @@ -578,7 +578,7 @@ }, "parameters": [ "", - "\"__DoublePress_\"+key" + "\"__DoublePress_\"+GetArgumentAsString(\"key\")" ] }, { @@ -587,7 +587,7 @@ }, "parameters": [ "", - "\"__DoublePress_\"+key" + "\"__DoublePress_\"+GetArgumentAsString(\"key\")" ] } ] @@ -613,7 +613,7 @@ }, "parameters": [ "\"key\"", - "key" + "GetArgumentAsString(\"key\")" ] }, { @@ -629,7 +629,7 @@ "value": "ToggleSceneVariableAsBoolean" }, "parameters": [ - "__DoublePress[key]" + "__DoublePress[GetArgumentAsString(\"key\")]" ] } ], @@ -654,7 +654,7 @@ "value": "SceneVariableAsBoolean" }, "parameters": [ - "__DoublePress[key]", + "__DoublePress[GetArgumentAsString(\"key\")]", "True" ] } @@ -666,7 +666,7 @@ }, "parameters": [ "", - "\"__DoublePress_\"+key" + "\"__DoublePress_\"+GetArgumentAsString(\"key\")" ] } ] @@ -691,7 +691,7 @@ "value": "SceneVariableAsBoolean" }, "parameters": [ - "__DoublePress[key]", + "__DoublePress[GetArgumentAsString(\"key\")]", "False" ] } @@ -703,7 +703,7 @@ }, "parameters": [ "", - "\"__DoublePress_\"+key" + "\"__DoublePress_\"+GetArgumentAsString(\"key\")" ] }, { @@ -712,7 +712,7 @@ }, "parameters": [ "", - "\"__DoublePress_\"+key" + "\"__DoublePress_\"+GetArgumentAsString(\"key\")" ] }, { @@ -748,9 +748,9 @@ }, "parameters": [ "", - "\"__DoublePress_\"+key", + "\"__DoublePress_\"+GetArgumentAsString(\"key\")", ">=", - "seconds" + "GetArgumentAsNumber(\"seconds\")" ] } ], @@ -761,7 +761,7 @@ }, "parameters": [ "", - "\"__DoublePress_\"+key" + "\"__DoublePress_\"+GetArgumentAsString(\"key\")" ] }, { @@ -770,7 +770,7 @@ }, "parameters": [ "", - "\"__DoublePress_\"+key" + "\"__DoublePress_\"+GetArgumentAsString(\"key\")" ] }, { @@ -778,7 +778,7 @@ "value": "SetSceneVariableAsBoolean" }, "parameters": [ - "__DoublePress[key]", + "__DoublePress[GetArgumentAsString(\"key\")]", "" ] }