Open
Description
We currently have a few custom menu widgets for fields like the color and angle pickers. We should consider adding custom menu widgets with sliders for all or almost all blocks that that have numeric inputs, because:
- Having the option to move a slider rather than typing a number can be convenient and more child-friendly
- This would help kids who do not know about negative numbers or about typing the negative sign to solve problems such as making a sprite "go backward" or "get smaller" (see Negative numbers are challenging scratch-gui#483 and Typing/ changing block input values via typing can be slow and error-prone scratch-gui#499)
- The slider could display a marker at 0, and optionally at fixed min and max values to which the value is internally clamped- these clamp points are otherwise invisible to users (!) and can cause confusion.
Here are some examples:
- The "move 10 steps" block would have a slider from (say) -50 to 50.
- The "turn 15 degrees" block would have a slider from (say) -180 to 180.
- The "go to x: 0 y: 0" would have sliders for each axis, with ranges corresponding to the stage size (-180 to 180 and -240 to 240)
- Blocks with time input such as "wait 1 secs" and the "glide" block would have sliders that do not go negative (zero at the left edge), and have a relatively small maximum value (such as 5 seconds). Unlike most other sliders, this would not move in increments of 1 but instead 0.1, so you could set a value like 1.5.
- the "set size" block would also have a minimum of zero, and a relatively low maximum, such as 200% or 250% (this is a tricky case, because as far as I know the maximum scale that will actually work depends on the sprites original size).