Build six correctly ranged Sliders
Figure 29. A volume Slider uses 0 to 1 with a small step, not a generic 0-to-100 range.
| Element ID | Option key | Minimum / maximum / step |
|---|---|---|
| opt_master | masterVolume | 0 / 1 / 0.01 |
| opt_music | musicVolume | 0 / 1 / 0.01 |
| opt_sfx | sfxVolume | 0 / 1 / 0.01 |
| opt_voice | voiceVolume | 0 / 1 / 0.01 |
| opt_text | textSpeed | 0.1 / 5 / 0.05 |
| opt_font | fontScale | 0.5 / 2.5 / 0.05 |
Place the labels at x = 180 and the Sliders at x = 400. In the sample, the six rows start at y = 160 and are spaced 58 pixels apart. Each Slider is 300 × 34. In Visual Style, start with Border Width 3 and a visible border color; a zero-thickness flat track can leave only the handle visible.
Leave the Slider’s ordinary Variable field blank for this staged example. options_tools reads the control’s value on Apply. A variable named musicVolume is not the same thing as applying the musicVolume runtime option.
