Skip to content

Commit

Permalink
Use seconds instead of ms.
Browse files Browse the repository at this point in the history
  • Loading branch information
D8H committed Nov 28, 2023
1 parent 29ed47e commit 595768a
Showing 1 changed file with 57 additions and 4 deletions.
61 changes: 57 additions & 4 deletions extensions/reviewed/CancellableDraggable.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"name": "CancellableDraggable",
"previewIconUrl": "https://resources.gdevelop-app.com/assets/Icons/step-backward.svg",
"shortDescription": "Allow to cancel the drag of an object (having the Draggable behavior) and return it smoothly to its previous position.",
"version": "0.2.0",
"version": "0.1.1",
"description": [
"Add this behavior on an object with the Draggable behavior and the Tween behavior. ",
"Use then the action to cancel the drag, and the behavior will smoothly animate the object back to its original position, using a tween animation."
Expand Down Expand Up @@ -162,10 +162,63 @@
},
{
"description": "Cancel last drag.",
"fullName": "Cancel drag",
"fullName": "Cancel drag (deprecated)",
"functionType": "Action",
"name": "CancelLastDragging",
"private": true,
"sentence": "Cancel last dragging of _PARAM0_ in _PARAM2_ ms with easing _PARAM3_",
"events": [
{
"type": "BuiltinCommonInstructions::Standard",
"conditions": [],
"actions": [
{
"type": {
"value": "CancellableDraggable::CancellableDraggable::CancelLastDraggingS"
},
"parameters": [
"Object",
"Behavior",
"Duration / 1000",
"Easing",
""
]
}
]
}
],
"parameters": [
{
"description": "Object",
"name": "Object",
"type": "object"
},
{
"description": "Behavior",
"name": "Behavior",
"supplementaryInformation": "CancellableDraggable::CancellableDraggable",
"type": "behavior"
},
{
"description": "Duration in milliseconds",
"name": "Duration",
"type": "expression"
},
{
"description": "Easing",
"name": "Easing",
"supplementaryInformation": "[\"linear\",\"easeInQuad\",\"easeOutQuad\",\"easeInOutQuad\",\"easeInCubic\",\"easeOutCubic\",\"easeInOutCubic\",\"easeInQuart\",\"easeOutQuart\",\"easeInOutQuart\",\"easeInQuint\",\"easeOutQuint\",\"easeInOutQuint\",\"easeInOutSine\",\"easeInExpo\",\"easeOutExpo\",\"easeInOutExpo\",\"easeInCirc\",\"easeOutCirc\",\"easeInOutCirc\",\"easeOutBounce\",\"easeInBack\",\"easeOutBack\",\"easeInOutBack\",\"elastic\",\"swingFromTo\",\"swingFrom\",\"swingTo\",\"bounce\",\"bouncePast\",\"easeFromTo\",\"easeFrom\",\"easeTo\"]",
"type": "stringWithSelector"
}
],
"objectGroups": []
},
{
"description": "Cancel last drag.",
"fullName": "Cancel drag",
"functionType": "Action",
"name": "CancelLastDraggingS",
"sentence": "Cancel last dragging of _PARAM0_ with easing _PARAM3_ in _PARAM2_ seconds",
"events": [
{
"type": "BuiltinCommonInstructions::Comment",
Expand Down Expand Up @@ -196,7 +249,7 @@
"actions": [
{
"type": {
"value": "Tween::AddObjectPositionTween"
"value": "Tween::TweenBehavior::AddObjectPositionTween2"
},
"parameters": [
"Object",
Expand Down Expand Up @@ -235,7 +288,7 @@
"type": "behavior"
},
{
"description": "Duration in milliseconds",
"description": "Duration in seconds",
"name": "Duration",
"type": "expression"
},
Expand Down

0 comments on commit 595768a

Please sign in to comment.