Add slider menu item, configuring on-screen controls size#3021
Add slider menu item, configuring on-screen controls size#3021provigz wants to merge 12 commits intoSuperTux:masterfrom
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.
MatusGuy
left a comment
There was a problem hiding this comment.
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. |
|
MatusGuy
left a comment
There was a problem hiding this comment.
Will test this pretty soon.
MatusGuy
left a comment
There was a problem hiding this comment.
I really don't like the step option in the config menu. First time mobile port users will be extremely confused when they see the slider going from min to max instantly when using the left/right buttons because they don't know what a "slider step" is (and they're not supposed to).
When using the slider with the mouse on the volume controls, it lags the game. If you want I will investigate this.
I gotta say. I really like how the mouse can be used for precision and the arrows can be used for bringing up quick values. But I think the roles should be switched. When using the mouse, the value should be snapped to the defined step, and the arrow keys should be used for precision values, because if the mouse is somewhat defective, that "precision" is lost.
I'm excited for this!
|
Moving to 0.7.1 |
|
Why? |
|
This isn't crucial for 0.7.0 |
|
@provigz Please rebase. |
But it works, and it's pretty harmless. What is the problem? |
Adds the
ItemSlidermenu 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.
Closes #3033.