Skip to content

Menu API Documentation

DetectiveSmith edited this page Apr 6, 2015 · 3 revisions

Menu.drawMenuBox()

Menu.Write()

Menu.newInterface( string interfaceName, function newInterface)

Creates a new interface for blocks and other stuff to have. The arguments passed to the function will be a table of events. ( i.e. {os.pullEvent()} )

Menu.getInterface( string interfaceName )

Return Value: function interface

Returns an interface, which is ran by passing a table of events to it. Crafting = Menu.getInterface("Crafting") Crafting({os.pullEvent}) Used mainly by the game loop.

Clone this wiki locally