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

Feature request: slider control for a user-settable numerical value #776

Open
johnnylam88 opened this issue Dec 27, 2020 · 1 comment
Open

Comments

@johnnylam88
Copy link
Contributor

It would be nice to have a slider control to allow the user to set a numerical value to pass into the script.

Example for a slider with minimum value of 0, maximum value of 100, step size of 10, and defaulting to 60.

AddSlider(pool_threshold 0 100 step=10 default=60)

AddIcon { if (Energy() > Slider(pool_threshold)) Spell(backstab) }

The names aren't set in stone! Slider() doesn't sound that great to me. Perhaps AddNumericInput() and NumericInput()?

@Sidoine
Copy link
Owner

Sidoine commented Jan 4, 2021

Good idea

@Sidoine Sidoine added this to To Do in Features Jan 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

2 participants