Posted 19 December 2018 - 01:35 PM
MENU API Version 2.0.0
I never published version 1.0, but this version is a LOT better. I won't write too much here as most of the information
about this program is in the demo program. Create menu's with this program is really easy, you can type something like this:
os.loadAPI("menu")
local m = menu.new()
m:addScreen("MainMenu",
[[
This is the main menu.
You can't select this test cause there isn't a tag
Look at the games @games
]])
m:addScreen("games",
[[
Play a game of snake @snake
]])
m:addFunc("snake", shell.run, "worm")
m:displayScreen("MainMenu")()
Try out the demo: pastebin run ZNYdQzaR
The API code is here: https://pastebin.com/B1N0C6Ua