Simple extension to create a scrollable list of items
- Use 1 Sprite for the
ListArea, add to this sprite theDraggablebehavior . - Use 1 Sprite for the
MaskArea. - Use 2 Sprites
Up button,Down button. - Use 1 Panel Sprite ("9-patch") for the
Slider button, and addDraggablebehavior to this Sprite. - Use 1 Panel Sprite ("9-patch") for the
Slider background bar.
- Use 1 Sprite for the
ItemButtonadd to this Sprite the behaviorPinTo. - Use 1 Sprite for the
ItemIconadd to this Sprite the behaviorPinTo. - Use 1 Text for the
ItemTitleadd to this Sprite the behaviorPinTo. - Use 1 Text for the
ItemDescriptionadd to this Sprite the behaviorPinTo.
Scene setup add add 2 Sprites the listArea and the MaskArea
Depending on the ListArea position the UpButton, DownButton, SliderButton and SliderBackground will be created.
- You end with something like this, the
white spriteis theMaskArea. - The
lightblueis theListArea
- Add an empty event select the
ListAreaSprite and look forList Scrollthen selectInit List Scroll
- Then add another action just below the previous and set the
Masked itemsgo toOthe actionsand setList Scroll -> Masked Items
- Source & Documentation https://github.com/UlisesFreitas/Listscroll-gdevelop
- Video Tutorial https://www.youtube.com/watch?v=7p3FD8WvYX4




