|
9 | 9 | "name": "SimplifiedScrolling", |
10 | 10 | "previewIconUrl": "https://asset-resources.gdevelop.io/public-resources/Icons/0c46dda9851609592bdda1e76284a5064a6eaf709c25568287331edfdca8c9bd_gesture-swipe-up.svg", |
11 | 11 | "shortDescription": "Effortless scrolling for menus, inventories, shops.", |
12 | | - "version": "1.0.0", |
| 12 | + "version": "1.0.1", |
13 | 13 | "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.", |
14 | 14 | "tags": [], |
15 | 15 | "authorIds": [ |
16 | 16 | "KPIbi138jTTJkK5bfaqtq4FE1Ko1" |
17 | 17 | ], |
18 | 18 | "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 | + ], |
20 | 31 | "sceneVariables": [], |
21 | 32 | "eventsFunctions": [ |
22 | 33 | { |
|
75 | 86 | "0" |
76 | 87 | ] |
77 | 88 | } |
| 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 | + } |
78 | 107 | ] |
79 | 108 | }, |
80 | 109 | { |
|
106 | 135 | "0" |
107 | 136 | ] |
108 | 137 | } |
| 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 | + } |
109 | 156 | ] |
110 | 157 | } |
111 | 158 | ] |
|
186 | 233 | "0" |
187 | 234 | ] |
188 | 235 | } |
| 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 | + } |
189 | 254 | ] |
190 | 255 | }, |
191 | 256 | { |
|
217 | 282 | "0" |
218 | 283 | ] |
219 | 284 | } |
| 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 | + } |
220 | 303 | ] |
221 | 304 | } |
222 | 305 | ] |
|
240 | 323 | } |
241 | 324 | ], |
242 | 325 | "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": [] |
243 | 522 | } |
244 | 523 | ], |
245 | 524 | "eventsBasedBehaviors": [], |
|
0 commit comments