Connect a slider and a checkbox
IMAGES, CAROUSELS AND CONTROLS 0.86.4.1 / HOTFIX 1
EDITION UPDATE
A settings screen needs to show what the player has chosen and still allow Cancel. Give each control a two-way preference draft.
Assign Apply to a regular button on the same GUI as the controls that edited the draft.
01. Set the value range
Select a music slider. Set its minimum to 0, maximum to 1 and step to 0.01. Link Value to option.draft musicVolume. Choose two_way and leave Convert at none. Use a separate label with a one-way percent conversion for display.
02. Connect a true/false setting
On a checkbox, link Checked to option.draft subtitles using two_way. When binding any editable control to game.variable instead, use a variable whose initial type matches the control.
03. Try the whole menu
Use the Preferences button roles for Apply and Cancel on the same GUI. Drag the slider and toggle subtitles, then Cancel. Reopen and compare both values. Repeat and Apply. If a carousel also has focus, enter it with Accept and step through its images, then Back out.
A DRAFT CAN BE EDITED
option.current displays the active preference. option.draft records a proposed change. Two-way editing needs a compatible widget, a writable source and no conversion.
PCA 3D ADVENTURE STUDIO Images, carousels and controls / 52
