-
Notifications
You must be signed in to change notification settings - Fork 5
ContextMenu
newk5 edited this page Apr 7, 2020
·
3 revisions
You can attach right click context menus to any GUIElement by using the .contextMenu property.
UI.Editbox({
id = "editBoxID"
Size = VectorScreen(70,20)
Position = VectorScreen(100,40)
contextMenu = {
options = [
{
name = "Option 1",
color = Colour(255,0,0),
onClick = function() {
Console.Print("option1");
}
},
{
name = "Option 2",
onClick = function() {
Console.Print("option2");
}
},
{
name = "Option 3",
onClick = function() {
Console.Print("option3");
}
}
]
}
})