nut.menu
Library functions for nut.menu.
nut.menu is the interaction menu that appears when interacting with NS entities and characters.
Functions
nut.menu.add (options, position, onRemove)
nut.menu.add
Adds a new menu to the list of drawn menus.
Parameters:
table options Table of button text as keys and their callbacks as valuesvararg position If Vector: Menu position, otherwise if Entiy: entity to position menu on
function
onRemove
optional
Function to call after menu fades out