replace volume setting with slider control

This commit is contained in:
kepler155c@gmail.com
2019-07-12 12:48:36 -06:00
parent a421c78a0c
commit d1bac2b309

View File

@@ -23,14 +23,13 @@ local wizardPage = UI.WizardPage {
form = UI.Form { form = UI.Form {
x = 2, ex = -2, y = 3, ey = -2, x = 2, ex = -2, y = 3, ey = -2,
manualControls = true, manualControls = true,
volume = UI.TextEntry { volume = UI.Slider {
formLabel = 'Volume', formKey = 'volume', formLabel = 'Volume', formKey = 'volume',
width = 5, limit = 3, min = 0, max = 1,
validate = 'numeric', help = 'Volume setting',
help = 'A value from 0 (mute) to 1 (loud)',
}, },
testSound = UI.Button { testSound = UI.Button {
x = 15, y = 2, x = 15, y = 3,
text = 'Test', event = 'test_sound', text = 'Test', event = 'test_sound',
help = 'Test sound volume', help = 'Test sound volume',
}, },