Skip to content

Commit c989227

Browse files
committed
Updated extension
1 parent 94e5e2b commit c989227

File tree

1 file changed

+281
-2
lines changed

1 file changed

+281
-2
lines changed

extensions/community/SimplifiedScrolling.json

Lines changed: 281 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,25 @@
99
"name": "SimplifiedScrolling",
1010
"previewIconUrl": "https://asset-resources.gdevelop.io/public-resources/Icons/0c46dda9851609592bdda1e76284a5064a6eaf709c25568287331edfdca8c9bd_gesture-swipe-up.svg",
1111
"shortDescription": "Effortless scrolling for menus, inventories, shops.",
12-
"version": "1.0.0",
12+
"version": "1.0.1",
1313
"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.",
1414
"tags": [],
1515
"authorIds": [
1616
"KPIbi138jTTJkK5bfaqtq4FE1Ko1"
1717
],
1818
"dependencies": [],
19-
"globalVariables": [],
19+
"globalVariables": [
20+
{
21+
"name": "HorizomtalHAmountReached",
22+
"type": "number",
23+
"value": 0
24+
},
25+
{
26+
"name": "VerticalHAmountReached",
27+
"type": "number",
28+
"value": 0
29+
}
30+
],
2031
"sceneVariables": [],
2132
"eventsFunctions": [
2233
{
@@ -75,6 +86,24 @@
7586
"0"
7687
]
7788
}
89+
],
90+
"events": [
91+
{
92+
"type": "BuiltinCommonInstructions::Standard",
93+
"conditions": [],
94+
"actions": [
95+
{
96+
"type": {
97+
"value": "SetNumberVariable"
98+
},
99+
"parameters": [
100+
"HorizomtalHAmountReached",
101+
"=",
102+
"0"
103+
]
104+
}
105+
]
106+
}
78107
]
79108
},
80109
{
@@ -106,6 +135,24 @@
106135
"0"
107136
]
108137
}
138+
],
139+
"events": [
140+
{
141+
"type": "BuiltinCommonInstructions::Standard",
142+
"conditions": [],
143+
"actions": [
144+
{
145+
"type": {
146+
"value": "SetNumberVariable"
147+
},
148+
"parameters": [
149+
"HorizomtalHAmountReached",
150+
"=",
151+
"1"
152+
]
153+
}
154+
]
155+
}
109156
]
110157
}
111158
]
@@ -186,6 +233,24 @@
186233
"0"
187234
]
188235
}
236+
],
237+
"events": [
238+
{
239+
"type": "BuiltinCommonInstructions::Standard",
240+
"conditions": [],
241+
"actions": [
242+
{
243+
"type": {
244+
"value": "SetNumberVariable"
245+
},
246+
"parameters": [
247+
"VerticalHAmountReached",
248+
"=",
249+
"0"
250+
]
251+
}
252+
]
253+
}
189254
]
190255
},
191256
{
@@ -217,6 +282,24 @@
217282
"0"
218283
]
219284
}
285+
],
286+
"events": [
287+
{
288+
"type": "BuiltinCommonInstructions::Standard",
289+
"conditions": [],
290+
"actions": [
291+
{
292+
"type": {
293+
"value": "SetNumberVariable"
294+
},
295+
"parameters": [
296+
"VerticalHAmountReached",
297+
"=",
298+
"1"
299+
]
300+
}
301+
]
302+
}
220303
]
221304
}
222305
]
@@ -240,6 +323,202 @@
240323
}
241324
],
242325
"objectGroups": []
326+
},
327+
{
328+
"description": "Checks if the maximum scroll amount has been reached.",
329+
"fullName": "Maximum vertical scroll reached",
330+
"functionType": "Condition",
331+
"group": "Vertical",
332+
"name": "ReachedHigestPositionV",
333+
"sentence": "This checks whether the maximum scroll amount has been reached.",
334+
"events": [
335+
{
336+
"type": "BuiltinCommonInstructions::Standard",
337+
"conditions": [
338+
{
339+
"type": {
340+
"value": "NumberVariable"
341+
},
342+
"parameters": [
343+
"VerticalHAmountReached",
344+
"=",
345+
"0"
346+
]
347+
}
348+
],
349+
"actions": [
350+
{
351+
"type": {
352+
"value": "SetReturnBoolean"
353+
},
354+
"parameters": [
355+
"False"
356+
]
357+
}
358+
]
359+
},
360+
{
361+
"type": "BuiltinCommonInstructions::Standard",
362+
"conditions": [
363+
{
364+
"type": {
365+
"value": "NumberVariable"
366+
},
367+
"parameters": [
368+
"VerticalHAmountReached",
369+
"=",
370+
"1"
371+
]
372+
}
373+
],
374+
"actions": [
375+
{
376+
"type": {
377+
"value": "SetReturnBoolean"
378+
},
379+
"parameters": [
380+
"True"
381+
]
382+
}
383+
]
384+
}
385+
],
386+
"parameters": [],
387+
"objectGroups": []
388+
},
389+
{
390+
"description": "Checks if the maximum scroll amount has been reached.",
391+
"fullName": "Maximum Horizontal scroll reached",
392+
"functionType": "Condition",
393+
"group": "Horizontal",
394+
"name": "ReachedHigestPositionH",
395+
"sentence": "This checks whether the maximum scroll amount has been reached.",
396+
"events": [
397+
{
398+
"type": "BuiltinCommonInstructions::Standard",
399+
"conditions": [
400+
{
401+
"type": {
402+
"value": "NumberVariable"
403+
},
404+
"parameters": [
405+
"HorizomtalHAmountReached",
406+
"=",
407+
"0"
408+
]
409+
}
410+
],
411+
"actions": [
412+
{
413+
"type": {
414+
"value": "SetReturnBoolean"
415+
},
416+
"parameters": [
417+
"False"
418+
]
419+
}
420+
]
421+
},
422+
{
423+
"type": "BuiltinCommonInstructions::Standard",
424+
"conditions": [
425+
{
426+
"type": {
427+
"value": "NumberVariable"
428+
},
429+
"parameters": [
430+
"HorizomtalHAmountReached",
431+
"=",
432+
"1"
433+
]
434+
}
435+
],
436+
"actions": [
437+
{
438+
"type": {
439+
"value": "SetReturnBoolean"
440+
},
441+
"parameters": [
442+
"True"
443+
]
444+
}
445+
]
446+
}
447+
],
448+
"parameters": [],
449+
"objectGroups": []
450+
},
451+
{
452+
"description": "This triggers a vertical reset when the maximum scroll limit is reached.",
453+
"fullName": "Vertical Reset Trigger",
454+
"functionType": "Action",
455+
"group": "Vertical",
456+
"name": "ResetV",
457+
"sentence": "Triggers a reset when the vertical scroll reaches its limit.",
458+
"events": [
459+
{
460+
"type": "BuiltinCommonInstructions::Standard",
461+
"conditions": [],
462+
"actions": [
463+
{
464+
"type": {
465+
"value": "SetNumberVariable"
466+
},
467+
"parameters": [
468+
"VerticalHAmountReached",
469+
"=",
470+
"0"
471+
]
472+
},
473+
{
474+
"type": {
475+
"value": "Wait"
476+
},
477+
"parameters": [
478+
"0.1"
479+
]
480+
}
481+
]
482+
}
483+
],
484+
"parameters": [],
485+
"objectGroups": []
486+
},
487+
{
488+
"description": "This triggers a Horizontal reset when the maximum scroll limit is reached.",
489+
"fullName": "Horizontal Reset Trigger",
490+
"functionType": "Action",
491+
"group": "Horizontal",
492+
"name": "ResetH",
493+
"sentence": "Triggers a reset when the Horizontal scroll reaches its limit.",
494+
"events": [
495+
{
496+
"type": "BuiltinCommonInstructions::Standard",
497+
"conditions": [],
498+
"actions": [
499+
{
500+
"type": {
501+
"value": "SetNumberVariable"
502+
},
503+
"parameters": [
504+
"HorizomtalHAmountReached",
505+
"=",
506+
"0"
507+
]
508+
},
509+
{
510+
"type": {
511+
"value": "Wait"
512+
},
513+
"parameters": [
514+
"0.1"
515+
]
516+
}
517+
]
518+
}
519+
],
520+
"parameters": [],
521+
"objectGroups": []
243522
}
244523
],
245524
"eventsBasedBehaviors": [],

0 commit comments

Comments
 (0)