Skip to content

[Reviewed] [Slider] Add a condition to check when the slider is dragged #777

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 9, 2023
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
75 changes: 73 additions & 2 deletions extensions/reviewed/PanelSpriteSlider.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"name": "PanelSpriteSlider",
"previewIconUrl": "https://asset-resources.gdevelop.io/public-resources/Icons/Line Hero Pack/Master/SVG/UI Essentials/1678c39a3b2bd3df4f82a8a293770db4986a6bcfd3f78e738ddfc86e39176423_UI Essentials_sliders_options.svg",
"shortDescription": "A draggable slider that users can move to select a numerical value.",
"version": "1.3.2",
"version": "1.4.0",
"description": [
"A draggable slider that users can move to select a numerical value. The slider can be customized with sprites.",
"",
Expand Down Expand Up @@ -2410,6 +2410,77 @@
],
"objectGroups": []
},
{
"description": "Check if the slider is being dragged.",
"fullName": "Being dragged",
"functionType": "Condition",
"group": "Slider",
"name": "IsBeingDragged",
"sentence": "_PARAM0_ is being dragged",
"events": [
{
"type": "BuiltinCommonInstructions::Standard",
"conditions": [
{
"type": {
"value": "BuiltinCommonInstructions::Or"
},
"parameters": [],
"subInstructions": [
{
"type": {
"value": "DraggableBehavior::Dragged"
},
"parameters": [
"Thumb",
"Draggable"
]
},
{
"type": {
"value": "PanelSpriteSlider::ButtonFSM::IsPressed"
},
"parameters": [
"Background",
"ButtonFSM",
""
]
},
{
"type": {
"value": "PanelSpriteSlider::ButtonFSM::IsPressedOutside"
},
"parameters": [
"Background",
"ButtonFSM",
""
]
}
]
}
],
"actions": [
{
"type": {
"value": "SetReturnBoolean"
},
"parameters": [
"True"
]
}
]
}
],
"parameters": [
{
"description": "Object",
"name": "Object",
"supplementaryInformation": "PanelSpriteSlider::PanelSpriteSlider",
"type": "object"
}
],
"objectGroups": []
},
{
"description": "the value of the slider.",
"fullName": "Value",
Expand Down Expand Up @@ -3370,7 +3441,7 @@
"objectGroups": []
},
{
"description": "Check if interactions are activated on the button.",
"description": "Check if the slider allows interactions.",
"fullName": "Interactions activated",
"functionType": "Condition",
"name": "IsActivated",
Expand Down