possibility to add numbers to the options displayed text & select opt… #269
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This commit adds the possibility to give each option a number, like
"1. Yes sure"
"2. Maybe"
"3. No definitly not"
The numbers are generated automatically for available options, when the
addNumbersToOptions
flag is true.It also adds two methods that can be used to simulate the selection of the options by code. I am using it like this in my project where I have the "New Input System" set up so the user can press 1-5 on the keyboard to select an option. This will not click the buttons, so I need a way to select them by code when the key is pressed. The second method always selects the last displayed option.
If this is a change you would accept, I will also write the required tests, docs etc, before you actually merge it, of course.
Just want to make sure the feature itself (and its implementation) is acceptable before I go through that :-)
regards,
Michael