So, the usual excuse for not posting here busy and all that…although I’ve been building quite a bit just forgot to upload any of it!
Anyhow to the point, I’ve begun rewriting one of my early lua games using the LOVE game framework called CodeCopy. The original code is pretty rough, and so I’ve been rewriting to make use of objects and make most of it a lot more reusable. As well as adding level editor and some other nice features.
One of the components I’ve built during this is a paged list, you give it a function that returns an array of rows and it then displays by default 4 rows on each page and the next/back buttons with each row having a title, as well as an associated image/alternative image. By passing in a callback function you get notice when a row was selected and can do what you want there. Any of the default options can be overridden by passing in overriding values.
The code is here as well as an example of how it can be used and below is a picture of it in CodeCopy being used as a level select screen.
Let me know if there are any issues or questions!