-
-
Notifications
You must be signed in to change notification settings - Fork 474
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
Add slider menu item, configuring on-screen controls size #3021
base: master
Are you sure you want to change the base?
Conversation
Adds the `ItemSlider` menu item. It allows selecting an integer value between a minimum and a maximum value. It can be used with the left mouse button and the left/right arrow keys. The sound volume, music volume and flash intensity options now utilize a slider. The on-screen controls scale option was added back in "Options" -> "Controls" and utilizes a slider as well. Additionally: * The on-screen controls toggle has also been re-added in "Options" -> "Controls". * The on-screen controls configuration values were changed to allow for broader scale customization. Closes SuperTux#3010.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is ideal for the volume sliders! Just make sure there's a way to specify the step.
What step? |
The step is the interval between values. |
Sure, will make an option for it. |
I haven't tested it yet but... Many of the sliders in UI Frameworks have the option of increasing / decreasing when the user hovers over the slider and uses the mouse wheel. Any plans on implementing that? |
Will do, I forgot they had that. |
Added customizable slider steps and scroll wheel support. |
@Vankata453 Awesome work! Will these features be added to the Android version? |
After this is merged, they will. |
|
Adds the
ItemSlider
menu item. It allows selecting an integer value between a minimum and a maximum value. It can be used with the left mouse button, left/right arrow keys or scroll wheel. The slider step (interval between values when using the arrow keys or scroll wheel) is configurable from "Options" -> "Advanced".The sound volume, music volume and flash intensity options now utilize a slider. The on-screen controls scale option was added back in "Options" -> "Controls" and utilizes a slider as well.
Supertux.Menu.Sliders-1.mp4
Additionally:
Closes #3010.