Skip to content

Conversation

@casper91
Copy link
Contributor

Possible to create a MenuItem from a string.

Usage:

menu = Menu.new
menu.font_item('New Game') { puts 'new game' }
menu.font_item('High Score') { puts 'high score' }
menu.font_item('Exit Game') { puts 'exit game' }
menu.align_items_vertically(25)
add menu, 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant