This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
boudragon's profile picture

fs.list to menu?

Started by boudragon, 10 July 2013 - 04:48 PM
boudragon #1
Posted 10 July 2013 - 06:48 PM
I've been trying ot think of an easy-ish way to take a list and convert it into a menu with options. Example:

fs.list(DIR HERE)

It then displays the list but you can select a file from the list. Any ideas on how I could do this?
Lyqyd #2
Posted 10 July 2013 - 08:03 PM
Just use a menu script that's based on a provided table of options. A relatively simple example can be found on my github.
boudragon #3
Posted 11 July 2013 - 12:45 AM
I'll check it out. I try to work these things out in my head before I do them or ask others for help and I just can't see it LOL So I will get back to ya if this works out for me :)/>