Skip to content

Commit 53db662

Browse files
authored
[Reviewed] [Slider] Add a condition to check when the slider is dragged (#777)
1 parent 5fbb69f commit 53db662

File tree

1 file changed

+73
-2
lines changed

1 file changed

+73
-2
lines changed

extensions/reviewed/PanelSpriteSlider.json

Lines changed: 73 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"name": "PanelSpriteSlider",
99
"previewIconUrl": "https://asset-resources.gdevelop.io/public-resources/Icons/Line Hero Pack/Master/SVG/UI Essentials/1678c39a3b2bd3df4f82a8a293770db4986a6bcfd3f78e738ddfc86e39176423_UI Essentials_sliders_options.svg",
1010
"shortDescription": "A draggable slider that users can move to select a numerical value.",
11-
"version": "1.3.2",
11+
"version": "1.4.0",
1212
"description": [
1313
"A draggable slider that users can move to select a numerical value. The slider can be customized with sprites.",
1414
"",
@@ -2410,6 +2410,77 @@
24102410
],
24112411
"objectGroups": []
24122412
},
2413+
{
2414+
"description": "Check if the slider is being dragged.",
2415+
"fullName": "Being dragged",
2416+
"functionType": "Condition",
2417+
"group": "Slider",
2418+
"name": "IsBeingDragged",
2419+
"sentence": "_PARAM0_ is being dragged",
2420+
"events": [
2421+
{
2422+
"type": "BuiltinCommonInstructions::Standard",
2423+
"conditions": [
2424+
{
2425+
"type": {
2426+
"value": "BuiltinCommonInstructions::Or"
2427+
},
2428+
"parameters": [],
2429+
"subInstructions": [
2430+
{
2431+
"type": {
2432+
"value": "DraggableBehavior::Dragged"
2433+
},
2434+
"parameters": [
2435+
"Thumb",
2436+
"Draggable"
2437+
]
2438+
},
2439+
{
2440+
"type": {
2441+
"value": "PanelSpriteSlider::ButtonFSM::IsPressed"
2442+
},
2443+
"parameters": [
2444+
"Background",
2445+
"ButtonFSM",
2446+
""
2447+
]
2448+
},
2449+
{
2450+
"type": {
2451+
"value": "PanelSpriteSlider::ButtonFSM::IsPressedOutside"
2452+
},
2453+
"parameters": [
2454+
"Background",
2455+
"ButtonFSM",
2456+
""
2457+
]
2458+
}
2459+
]
2460+
}
2461+
],
2462+
"actions": [
2463+
{
2464+
"type": {
2465+
"value": "SetReturnBoolean"
2466+
},
2467+
"parameters": [
2468+
"True"
2469+
]
2470+
}
2471+
]
2472+
}
2473+
],
2474+
"parameters": [
2475+
{
2476+
"description": "Object",
2477+
"name": "Object",
2478+
"supplementaryInformation": "PanelSpriteSlider::PanelSpriteSlider",
2479+
"type": "object"
2480+
}
2481+
],
2482+
"objectGroups": []
2483+
},
24132484
{
24142485
"description": "the value of the slider.",
24152486
"fullName": "Value",
@@ -3370,7 +3441,7 @@
33703441
"objectGroups": []
33713442
},
33723443
{
3373-
"description": "Check if interactions are activated on the button.",
3444+
"description": "Check if the slider allows interactions.",
33743445
"fullName": "Interactions activated",
33753446
"functionType": "Condition",
33763447
"name": "IsActivated",

0 commit comments

Comments
 (0)