|
| 1 | +# Scrollbar |
| 2 | + |
| 3 | +<img src="https://asset-resources.gdevelop.io/public-resources/Icons/Line Hero Pack/Master/SVG/Interface Elements/c1313ac0735bd1c08d7327fd9a56b4d8cebf1b343f9ba82f1b141358433e1cdb_Interface Elements_interface_ui_scroll_bar_scrollbar.svg" class="extension-icon"></img> |
| 4 | +A scrollbar to help making a scroll view. |
| 5 | + |
| 6 | +**Authors and contributors** to this community extension: [D8H](https://gd.games/D8H), [Jurfix](https://gd.games/Jurfix), [Alios](https://gd.games/Alios). |
| 7 | + |
| 8 | +!!! warning |
| 9 | + This is an extension made by a community member — but not reviewed |
| 10 | + by the GDevelop extension team. As such, we can't guarantee it |
| 11 | + meets all the quality standards of official extensions. In case of |
| 12 | + doubt, contact the author to know more about what the extension |
| 13 | + does or inspect its content before using it. |
| 14 | + |
| 15 | +--- |
| 16 | + |
| 17 | +A scrollbar to help making a scroll view. |
| 18 | + |
| 19 | +!!! tip |
| 20 | + Learn [how to install new extensions](/gdevelop5/extensions/search) by following a step-by-step guide. |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | +## Scrollbar |
| 25 | + |
| 26 | +A scrollbar to help making a scroll view. |
| 27 | + |
| 28 | +### Object actions |
| 29 | + |
| 30 | +**Content length** |
| 31 | +Change the content length of the object. The length of the content to scroll. The scroll bar don't actually scroll the content. You have to do it yourself with camera actions. |
| 32 | + |
| 33 | +**Scroll position** |
| 34 | +Change the scroll position. |
| 35 | + |
| 36 | +### Object conditions |
| 37 | + |
| 38 | +**Content length** |
| 39 | +Compare the content length of the object. The length of the content to scroll. The scroll bar don't actually scroll the content. You have to do it yourself with camera actions. |
| 40 | + |
| 41 | +**Scrolling is required** |
| 42 | +Check if the content is big enough to require scrolling. |
| 43 | + |
| 44 | +**Thumb is dragged** |
| 45 | +Check if the thumb of the scrollbar is dragged. |
| 46 | + |
| 47 | +**Scroll position** |
| 48 | +Compare the scroll position. |
| 49 | + |
| 50 | +### Object expressions |
| 51 | + |
| 52 | +| Expression | Description | | |
| 53 | +|-----|-----|-----| |
| 54 | +| `Object.ContentLength()` | Return the content length of the object. The length of the content to scroll. The scroll bar don't actually scroll the content. You have to do it yourself with camera actions. || |
| 55 | +| `Object.ScrollPosition()` | Return the scroll position. || |
| 56 | + |
| 57 | + |
| 58 | +--- |
| 59 | + |
| 60 | +*This page is an auto-generated reference page about the **Scrollbar** extension, made by the community of [GDevelop, the open-source, cross-platform game engine designed for everyone](https://gdevelop.io/).* Learn more about [all GDevelop community-made extensions here](/gdevelop5/extensions). |
0 commit comments