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

Allow for setting an "on selection change" action function for scroll and checkbox menus #107

Closed
jwlodek opened this issue Apr 9, 2021 · 0 comments
Assignees
Labels
Core Add for issues having to do with core functions Feature Request Add for a new feature request Widgets Add for issues having to do with widgets
Milestone

Comments

@jwlodek
Copy link
Owner

jwlodek commented Apr 9, 2021

Is your feature request related to a problem? Please describe.
Currently, the best solution to performing an action when a selection is changed in a menu is to unlock the draw loop, and run a function every second or so - this adds lag, and causes the function to run when it shouldn't.

Describe the solution you'd like
Add a method to the MenuImplementation for adding an optional "on selection change" event function that if set is fired with the new selected item as an argument every time the selection is changed.

@jwlodek jwlodek added Feature Request Add for a new feature request Widgets Add for issues having to do with widgets Core Add for issues having to do with core functions labels Apr 9, 2021
@jwlodek jwlodek added this to the v0.1.4 milestone Apr 9, 2021
@jwlodek jwlodek self-assigned this May 20, 2021
@jwlodek jwlodek mentioned this issue Jun 10, 2021
3 tasks
@jwlodek jwlodek closed this as completed Oct 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Core Add for issues having to do with core functions Feature Request Add for a new feature request Widgets Add for issues having to do with widgets
Projects
None yet
Development

No branches or pull requests

1 participant