Use a variable as a widget’s source
VARIABLE DESIGNER 0.86.4.1 / HOTFIX 1
EDITION UPDATE
When more than one widget shows the same information, store it once in a variable and connect both displays to that value.
A numeric game variable drives the example progress bar. A binding also works on a GUI with fixed layout and ordinary mouse controls.
01. Pick a value type that fits the control
Use a number for a bar or slider, a true/false value for a checkbox, and text for a text box. Use the variable’s ID in the picker. A label can format a numeric source into text.
02. Choose who can change it
Bind a bar one_way so gameplay controls it. For a player-editable slider bind Value to game.variable with two_way and Convert none. Put the slider and bar on screen together. Moving the slider should move the bar.
03. Send the normal change notification
The standard variable actions notify the Runner. If native GDScript edits the runtime variables dictionary directly, call Runtime.state_changed() after the batch. A binding should then see the new value on the next update.
GAMEPLAY DATA OR A PREFERENCE?
Use a game variable for puzzle progress or a character name. Use option.draft for a preference such as music volume that the player may cancel before applying.
PCA 3D ADVENTURE STUDIO Variable Designer / 37
