clipping for transistions + tab ordering via index + more examples
This commit is contained in:
@@ -59,3 +59,14 @@ function UI.Menu:eventHandler(event)
|
||||
end
|
||||
return UI.Grid.eventHandler(self, event)
|
||||
end
|
||||
|
||||
function UI.Menu.example()
|
||||
return UI.Menu {
|
||||
x = 2, y = 2, height = 3,
|
||||
menuItems = {
|
||||
{ prompt = 'Start', event = 'start' },
|
||||
{ prompt = 'Continue', event = 'continue' },
|
||||
{ prompt = 'Quit', event = 'quit' }
|
||||
}
|
||||
}
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user