My Projects
💫 Comet
API
Menu Builder

Menu Builder API

The menu builder allows you to construct context menus using the builder pattern.

Example

Type
const contextMenu = this.menuBuilder()
    .action(
        "Select all items in Workspace", 
        "", 
        () => {
		    this.select(game.Workspace.GetChildren());
	    }
    ) // Example of a functional button
    .seperator()
	.submenu("Misc Methods")
        .action("Do something")
        .action("Do something else");
		.root() // Return back to the root
	.subMenu("More Methods")
		.action("Do yet another thing.");
 
contextMenu.show()