Skip to content
Open
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
247 changes: 247 additions & 0 deletions extensions/community/SimplifiedScrolling.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,247 @@
{
"author": "",
"category": "User interface",
"extensionNamespace": "",
"fullName": "SimplifiedScrolling",
"gdevelopVersion": "",
"helpPath": "",
"iconUrl": "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0ibWRpLWdlc3R1cmUtc3dpcGUtdXAiIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJNMTAsOUExLDEgMCAwLDEgMTEsOEExLDEgMCAwLDEgMTIsOVYxMy40N0wxMy4yMSwxMy42TDE4LjE1LDE1Ljc5QzE4LjY4LDE2LjAzIDE5LDE2LjU2IDE5LDE3LjE0VjIxLjVDMTguOTcsMjIuMzIgMTguMzIsMjIuOTcgMTcuNSwyM0gxMUMxMC42MiwyMyAxMC4yNiwyMi44NSAxMCwyMi41N0w1LjEsMTguMzdMNS44NCwxNy42QzYuMDMsMTcuMzkgNi4zLDE3LjI4IDYuNTgsMTcuMjhINi44TDEwLDE5VjlNNyw2TDQsM0wxLDZIM1YxMkg1VjZIN1oiIC8+PC9zdmc+",
"name": "SimplifiedScrolling",
"previewIconUrl": "https://asset-resources.gdevelop.io/public-resources/Icons/0c46dda9851609592bdda1e76284a5064a6eaf709c25568287331edfdca8c9bd_gesture-swipe-up.svg",
"shortDescription": "Effortless scrolling for menus, inventories, shops.",
"version": "1.0.0",
"description": "Simplified Scrolling adds effortless, interactive scrolling for menus, inventories, shops, and long content. Supports vertical and horizontal layers, saving time while improving user experience. Requires the DragCameraWithPointer extension to work.",
"tags": [],
"authorIds": [
"KPIbi138jTTJkK5bfaqtq4FE1Ko1"
],
"dependencies": [],
"globalVariables": [],
"sceneVariables": [],
"eventsFunctions": [
{
"description": "Put everything you want scrollable on one layer, then go ahead.",
"fullName": "Horizontal scroll",
"functionType": "Action",
"group": "Horizontal",
"name": "Horizontal",
"sentence": "Scroll the layer _PARAM1_ in _PARAM2_ Lowest amount _PARAM3_ highest amount",
"events": [
{
"type": "BuiltinCommonInstructions::Standard",
"conditions": [],
"actions": [
{
"type": {
"value": "DragCameraWithPointer::DragCameraWithPointer"
},
"parameters": [
"",
"0",
"Layer",
"\"horizontal\"",
"Left",
""
]
}
],
"events": [
{
"type": "BuiltinCommonInstructions::Standard",
"conditions": [
{
"type": {
"value": "CameraCenterX"
},
"parameters": [
"",
"<",
"Lowest",
"Layer",
"0"
]
}
],
"actions": [
{
"type": {
"value": "SetCameraCenterX"
},
"parameters": [
"",
"=",
"Lowest",
"Layer",
"0"
]
}
]
},
{
"type": "BuiltinCommonInstructions::Standard",
"conditions": [
{
"type": {
"value": "CameraCenterX"
},
"parameters": [
"",
">",
"Highest",
"Layer",
"0"
]
}
],
"actions": [
{
"type": {
"value": "SetCameraCenterX"
},
"parameters": [
"",
"=",
"Highest",
"Layer",
"0"
]
}
]
}
]
}
],
"parameters": [
{
"description": "Select the layer you want to have the scroll effect",
"name": "Layer",
"type": "layer"
},
{
"description": "What's the lowest amount you it to go sideways?",
"name": "Lowest",
"type": "expression"
},
{
"description": "What's the highest amount you it to go sideways?",
"name": "Highest",
"type": "expression"
}
],
"objectGroups": []
},
{
"description": "Put everything you want scrollable on one layer, then go ahead.",
"fullName": "Vertical scroll",
"functionType": "Action",
"group": "Vertical",
"name": "Vertical",
"sentence": "Scroll the layer _PARAM1_ in _PARAM2_ Lowest amount _PARAM3_ highest amount",
"events": [
{
"type": "BuiltinCommonInstructions::Standard",
"conditions": [],
"actions": [
{
"type": {
"value": "DragCameraWithPointer::DragCameraWithPointer"
},
"parameters": [
"",
"0",
"Layer",
"\"vertical\"",
"Left",
""
]
}
],
"events": [
{
"type": "BuiltinCommonInstructions::Standard",
"conditions": [
{
"type": {
"value": "CameraCenterY"
},
"parameters": [
"",
"<",
"Lowest",
"Layer",
""
]
}
],
"actions": [
{
"type": {
"value": "SetCameraCenterY"
},
"parameters": [
"",
"=",
"Lowest",
"Layer",
"0"
]
}
]
},
{
"type": "BuiltinCommonInstructions::Standard",
"conditions": [
{
"type": {
"value": "CameraCenterY"
},
"parameters": [
"",
">",
"Highest",
"Layer",
""
]
}
],
"actions": [
{
"type": {
"value": "SetCameraCenterY"
},
"parameters": [
"",
"=",
"Highest",
"Layer",
"0"
]
}
]
}
]
}
],
"parameters": [
{
"description": "Select the layer you want to have the scroll effect",
"name": "Layer",
"type": "layer"
},
{
"description": "What's the lowest amount you it to go?",
"name": "Lowest",
"type": "expression"
},
{
"description": "What's the highest amount you it to go?",
"name": "Highest",
"type": "expression"
}
],
"objectGroups": []
}
],
"eventsBasedBehaviors": [],
"eventsBasedObjects": []
}