Skip to reading
Images, Carousels & Choice Controls

21. Choose the right event timing

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView PDF page

A pointer Click event and a control’s completed value change are not the same moment. In this build, a general Click event can run on mouse press. A Check Box or Radio Button finishes its toggle later, when the normal button interaction completes.

Source table from 21. Choose the right event timing, page 40
InteractionReliable place to read the final choice
Check or uncheck a boxA separate Apply / Continue Button after the click finishes.
Choose a radio optionA separate confirmation Button, or its completed Boolean variable binding.
Drag a sliderRead its live value from Apply, or use its changing numeric variable binding.
Browse a carouselRead its current entry from a separate confirmation Button.

In the test screen, the Hints box’s Click script saw false at the start of the press, while the finished click left its bound show_hints variable true. Both results describe different moments of the same interaction.

For a settings screen, use the simple pattern: change the controls, then press Apply. For a live setting, use the supported value binding and the game system that consumes that variable.

The typed GUI Events tab does not provide a general On Value Changed or On Toggled action slot for these controls. Do not substitute the mouse Click event and assume it is a release or drag-finished event.

Keep Clicked Image feedback temporary too. It can acknowledge a press, but it should not be used as the data record of a selected mode or checked option.

Page 40 of 52Permalink
Go to page