Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved menus in ui #61

Open
skluttrell opened this issue Mar 23, 2021 · 0 comments
Open

Improved menus in ui #61

skluttrell opened this issue Mar 23, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@skluttrell
Copy link

I was poking around the Menu classes. It seems there could be some improvements in the modularity. I re-wrote the class on my own fork so that the base Menu class can be plugged into any custom menu object, and moved all the interface functions into their own methods that can be overrided with any custom code. I then wrote menus for MenuExtended (same as menu2), a SimpleQuestion (same as YesNoMenu, but the lables can be changed from yes/no to anything), FileMenu (a basic file/directory selector), and PopDialog (a message box with a confirm button) all using the base Menu class. I added some more functionality to the MenuItem object too. You can now add an optional audio file to the item to be played instead of just the TTS name. There's also a new function parameter so the user can change the behavior of the item: my use case for this is adding sliders for something like audio volume.

@skluttrell skluttrell added the enhancement New feature or request label Mar 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant